Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
erp-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
erp-service
Commits
b05c96e2
Commit
b05c96e2
authored
Nov 23, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
看板接口完成、完工入库接口调整
parent
bdf58a0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
MoctaDao.java
...ain/java/com/topsunit/scanservice/ximai/dao/MoctaDao.java
+6
-6
No files found.
src/main/java/com/topsunit/scanservice/ximai/dao/MoctaDao.java
View file @
b05c96e2
...
...
@@ -24,7 +24,7 @@ public interface MoctaDao extends JpaRepository<Mocta, MoctaId>, JpaSpecificatio
* @return
*/
@Query
(
value
=
"select sum(b.TB004) denominator,sum(b.TB005) numerator from MOCTA a left join MOCTB b on a.TA001 = b.TB001 and a.TA002 = b.TB002 "
+
"where a.TA009 > :start and a.TA009 < :end"
,
nativeQuery
=
true
)
"where a.TA009 >
=
:start and a.TA009 < :end"
,
nativeQuery
=
true
)
Optional
<
StockInCompleteRatio
>
statStockInCompleteRatio
(
@Param
(
value
=
"start"
)
String
start
,
@Param
(
value
=
"end"
)
String
end
);
/**
...
...
@@ -32,7 +32,7 @@ public interface MoctaDao extends JpaRepository<Mocta, MoctaId>, JpaSpecificatio
* @return
*/
@Query
(
value
=
"select sum(TD008) denominator,sum(TD015) numerator from PURTD \n"
+
"where TD012 > :start and TD012 < :end"
,
nativeQuery
=
true
)
"where TD012 >
=
:start and TD012 < :end"
,
nativeQuery
=
true
)
Optional
<
MaterialDistRatio
>
statMaterialDistRatio
(
@Param
(
value
=
"start"
)
String
start
,
@Param
(
value
=
"end"
)
String
end
);
/**
...
...
@@ -42,7 +42,7 @@ public interface MoctaDao extends JpaRepository<Mocta, MoctaId>, JpaSpecificatio
@Query
(
value
=
"select t1.TO001 applyType,t1.TO002 applyNo,t1.UDF01 planOutDate,t1.TO017 outQuantity,t1.TO024 planOutQuantity,t2.TG003 outDate from COPTO t1 \n"
+
"\tleft join (select max(TG003) TG003,TH045,TH046,TH047 from COPTG o1 left join COPTH o2 on o1.TG001 = o2.TH001\n"
+
"and o1.TG002 = o2.TH002 group by TH045,TH046,TH047) t2 on t1.TO001 = t2.TH045 and t1.TO002 = t2.TH046 and t1.TO003 = t2.TH047"
+
"\twhere t1.UDF01 > :start and t1.UDF01 < :end"
,
nativeQuery
=
true
)
"\twhere t1.UDF01 >
=
:start and t1.UDF01 < :end"
,
nativeQuery
=
true
)
List
<
SalesTimelyDeliveryRatio
>
statSalesTimelyDeliveryRatio
(
@Param
(
value
=
"start"
)
String
start
,
@Param
(
value
=
"end"
)
String
end
);
/**
...
...
@@ -50,14 +50,14 @@ public interface MoctaDao extends JpaRepository<Mocta, MoctaId>, JpaSpecificatio
* @return
*/
@Query
(
value
=
"select f.TF003 startDate,sum(g.TG011) quantity from MOCTF f left join MOCTG g on f.TF001 = g.TG001 and f.TF002 = g.TG002\n"
+
"where f.TF003 > :start and f.TF003 < :end group by f.TF003"
,
nativeQuery
=
true
)
"where f.TF003 >
=
:start and f.TF003 < :end group by f.TF003"
,
nativeQuery
=
true
)
List
<
StockInTrend
>
statStockInTrend
(
@Param
(
value
=
"start"
)
String
start
,
@Param
(
value
=
"end"
)
String
end
);
/**
* 出库存趋势图
* @return
*/
@Query
(
value
=
"select g.TG003 startDate,sum(h.TH008) quantity from COPTG g left join COPTH h on g.TG001 = h.TH001 and g.TG002 = h.TH002\n"
+
"where g.TG003 > :start and g.TG003 < :end and g.TG023 ='Y' group by g.TG003"
,
nativeQuery
=
true
)
"where g.TG003 >
=
:start and g.TG003 < :end and g.TG023 ='Y' group by g.TG003"
,
nativeQuery
=
true
)
List
<
StockOutTrend
>
statStockOutTrend
(
@Param
(
value
=
"start"
)
String
start
,
@Param
(
value
=
"end"
)
String
end
);
/**
...
...
@@ -65,7 +65,7 @@ public interface MoctaDao extends JpaRepository<Mocta, MoctaId>, JpaSpecificatio
* @return
*/
@Query
(
value
=
"select t1.TO007 itemCode,t1.TO001 applyType,t1.TO002 applyNo,t1.UDF01 planOutDate,t1.TO024 planOutNum,t1.TO017 outNum from COPTO t1 \n"
+
"where t1.UDF01 > :start and t1.UDF01 < :end"
,
nativeQuery
=
true
)
"where t1.UDF01 >
=
:start and t1.UDF01 < :end"
,
nativeQuery
=
true
)
List
<
SalesOutboundPlan
>
salesOutboundPlanList
(
@Param
(
value
=
"start"
)
String
start
,
@Param
(
value
=
"end"
)
String
end
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment