Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
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
platform
hp-smart
Commits
e7723a96
Commit
e7723a96
authored
May 29, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app生产入库更新
parent
479dd957
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
140 additions
and
0 deletions
+140
-0
HPKC010.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC010.xml
+3
-0
ServiceHPMT002.java
.../java/com/baosight/hpjx/hp/mt/service/ServiceHPMT002.java
+106
-0
HPMT002.xml
src/main/java/com/baosight/hpjx/hp/mt/sql/HPMT002.xml
+31
-0
No files found.
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC010.xml
View file @
e7723a96
...
...
@@ -58,6 +58,9 @@
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCodes"
>
INVENT_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"inventCodes"
>
#inventCodes[]#
</iterate>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME = #inventName#
</isNotEmpty>
...
...
src/main/java/com/baosight/hpjx/hp/mt/service/ServiceHPMT002.java
View file @
e7723a96
...
...
@@ -551,4 +551,110 @@ public class ServiceHPMT002 extends ServiceBase {
return
resultMap
;
}
}
//获取领料单存货下拉框信息
/**
* 生产管理-滚动图片
*
* @param inInfo
* @return
*/
public
Map
kcPickInventList
(
EiInfo
inInfo
)
{
Map
resultMap
=
new
HashMap
();
try
{
String
companyCode
=
inInfo
.
getString
(
"companyCode"
);
Map
sqlMap
=
new
HashMap
();
sqlMap
.
put
(
"companyCode"
,
companyCode
);
List
<
Map
>
rows
=
this
.
dao
.
query
(
"HPMT002.kcPickInventList"
,
sqlMap
);
resultMap
.
put
(
"result"
,
rows
);
resultMap
.
put
(
"status"
,
EiConstant
.
STATUS_SUCCESS
);
resultMap
.
put
(
"message"
,
"SUCCESS"
);
return
resultMap
;
}
catch
(
Exception
e
)
{
resultMap
.
put
(
"status"
,
500
);
resultMap
.
put
(
"message"
,
LogUtils
.
getMsg
(
e
));
return
resultMap
;
}
}
/**
* 生产入库-获取生产订单项目下拉框信息
*
* @param inInfo
* @return
*/
public
Map
kcEnterPmList
(
EiInfo
inInfo
)
{
Map
resultMap
=
new
HashMap
();
try
{
String
companyCode
=
inInfo
.
getString
(
"companyCode"
);
Map
sqlMap
=
new
HashMap
();
sqlMap
.
put
(
"companyCode"
,
companyCode
);
List
<
Map
>
rows
=
this
.
dao
.
query
(
"HPMT002.kcEnterPmList"
,
sqlMap
);
resultMap
.
put
(
"result"
,
rows
);
resultMap
.
put
(
"status"
,
EiConstant
.
STATUS_SUCCESS
);
resultMap
.
put
(
"message"
,
"SUCCESS"
);
return
resultMap
;
}
catch
(
Exception
e
)
{
resultMap
.
put
(
"status"
,
500
);
resultMap
.
put
(
"message"
,
LogUtils
.
getMsg
(
e
));
return
resultMap
;
}
}
/**
* 生产入库--获取生产订单部件下拉框信息
*
* @param inInfo
* @return
*/
public
Map
kcEnterPrdtList
(
EiInfo
inInfo
)
{
Map
resultMap
=
new
HashMap
();
try
{
String
companyCode
=
inInfo
.
getString
(
"companyCode"
);
String
projCode
=
inInfo
.
getString
(
"projCode"
);
Map
sqlMap
=
new
HashMap
();
sqlMap
.
put
(
"companyCode"
,
companyCode
);
sqlMap
.
put
(
"projCode"
,
projCode
);
List
<
Map
>
rows
=
this
.
dao
.
query
(
"HPMT002.kcEnterPrdtList"
,
sqlMap
);
resultMap
.
put
(
"result"
,
rows
);
resultMap
.
put
(
"status"
,
EiConstant
.
STATUS_SUCCESS
);
resultMap
.
put
(
"message"
,
"SUCCESS"
);
return
resultMap
;
}
catch
(
Exception
e
)
{
resultMap
.
put
(
"status"
,
500
);
resultMap
.
put
(
"message"
,
LogUtils
.
getMsg
(
e
));
return
resultMap
;
}
}
/**
* 生产入库--滚动图片
*
* @param inInfo
* @return
*/
public
Map
kcEnterPartList
(
EiInfo
inInfo
)
{
Map
resultMap
=
new
HashMap
();
try
{
String
companyCode
=
inInfo
.
getString
(
"companyCode"
);
String
projCode
=
inInfo
.
getString
(
"projCode"
);
String
prdtCode
=
inInfo
.
getString
(
"prdtCode"
);
Map
sqlMap
=
new
HashMap
();
sqlMap
.
put
(
"companyCode"
,
companyCode
);
sqlMap
.
put
(
"projCode"
,
projCode
);
sqlMap
.
put
(
"prdtCode"
,
prdtCode
);
List
<
Map
>
rows
=
this
.
dao
.
query
(
"HPMT002.kcEnterPartList"
,
sqlMap
);
resultMap
.
put
(
"result"
,
rows
);
resultMap
.
put
(
"status"
,
EiConstant
.
STATUS_SUCCESS
);
resultMap
.
put
(
"message"
,
"SUCCESS"
);
return
resultMap
;
}
catch
(
Exception
e
)
{
resultMap
.
put
(
"status"
,
500
);
resultMap
.
put
(
"message"
,
LogUtils
.
getMsg
(
e
));
return
resultMap
;
}
}
}
src/main/java/com/baosight/hpjx/hp/mt/sql/HPMT002.xml
View file @
e7723a96
...
...
@@ -403,4 +403,35 @@
where PROJ_CODE = #projCode# and COMPANY_CODE = #companyCode# and PRDT_CODE = #prdtCode#
</select>
<select
id=
"kcPickInventList"
resultClass=
"java.util.HashMap"
>
select distinct INVENT_CODE as "inventCode",INVENT_NAME as "inventName"
from hpjx.T_HPKC010
where COMPANY_CODE = #companyCode# and AMOUNT != 0
</select>
<select
id=
"kcEnterPmList"
resultClass=
"java.util.HashMap"
>
select distinct A.PROJ_CODE as "projCode",A.PROJ_NAME as "projName"
FROM HPJX.T_HPSC005 A
INNER JOIN HPJX.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where A.COMPANY_CODE = #companyCode# AND B.NUM - B.COMPLETE_NUM > 0
AND B.ORG_NO != 'R24050801'
</select>
<select
id=
"kcEnterPrdtList"
resultClass=
"java.util.HashMap"
>
select distinct A.PRDT_CODE as "prdtCode",A.PRDT_NAME as "prdtName"
FROM HPJX.T_HPSC005 A
INNER JOIN HPJX.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where A.PROJ_CODE = #projCode# and A.COMPANY_CODE = #companyCode#
AND B.NUM - B.COMPLETE_NUM > 0 AND B.ORG_NO != 'R24050801'
</select>
<select
id=
"kcEnterPartList"
resultClass=
"java.util.HashMap"
>
select distinct A.PART_CODE as "partCode",A.PART_NAME as "partName"
FROM HPJX.T_HPSC005 A
INNER JOIN HPJX.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where A.PROJ_CODE = #projCode# and A.COMPANY_CODE = #companyCode#
and A.PRDT_CODE = #prdtCode# AND B.NUM - B.COMPLETE_NUM > 0 AND B.ORG_NO != 'R24050801'
</select>
</sqlMap>
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