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
479dd957
Commit
479dd957
authored
May 28, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app生产订单更新
parent
d9d74eca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
0 deletions
+101
-0
ServiceHPMT002.java
.../java/com/baosight/hpjx/hp/mt/service/ServiceHPMT002.java
+81
-0
HPMT002.xml
src/main/java/com/baosight/hpjx/hp/mt/sql/HPMT002.xml
+17
-0
HPSC005.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005.xml
+3
-0
No files found.
src/main/java/com/baosight/hpjx/hp/mt/service/ServiceHPMT002.java
View file @
479dd957
...
...
@@ -470,4 +470,85 @@ public class ServiceHPMT002 extends ServiceBase {
return
resultMap
;
}
}
//获取生产订单项目下拉框信息
/**
* 生产订单-获取生产订单项目下拉框信息
*
* @param inInfo
* @return
*/
public
Map
scOrderPmList
(
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.scOrderPmList"
,
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
scOrderPrdtList
(
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.scOrderPrdtList"
,
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
scOrderPartList
(
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.scOrderPartList"
,
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 @
479dd957
...
...
@@ -386,4 +386,21 @@
a.PROJ_NAME LIKE CONCAT('%', #projName#, '%')
</isNotEmpty>
</select>
<select
id=
"scOrderPmList"
resultClass=
"java.util.HashMap"
>
select distinct PROJ_CODE as "projCode",PROJ_NAME as "projName"
from hpjx.t_hpsc005
where COMPANY_CODE = #companyCode#
</select>
<select
id=
"scOrderPrdtList"
resultClass=
"java.util.HashMap"
>
select distinct PRDT_CODE as "prdtCode",PRDT_NAME as "prdtName" from hpjx.t_hpsc005
where PROJ_CODE = #projCode# and COMPANY_CODE = #companyCode#
</select>
<select
id=
"scOrderPartList"
resultClass=
"java.util.HashMap"
>
select distinct PART_CODE as "partCode",PART_NAME as "partName" from hpjx.t_hpsc005
where PROJ_CODE = #projCode# and COMPANY_CODE = #companyCode# and PRDT_CODE = #prdtCode#
</select>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005.xml
View file @
479dd957
...
...
@@ -74,6 +74,9 @@
<isNotEmpty
prepend=
" AND "
property=
"prdtCode"
>
PRDT_CODE = #prdtCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partCode"
>
PART_CODE = #partCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partName"
>
PART_NAME LIKE CONCAT('%', #partName#, '%')
</isNotEmpty>
...
...
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