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
8e10dd6f
Commit
8e10dd6f
authored
Apr 17, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-04-17 报工管理功能优化
parent
d84048fc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
0 deletions
+27
-0
ServiceHPSC010.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC010.java
+1
-0
ServiceHPSC096.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC096.java
+14
-0
HPSC010.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC010.xml
+3
-0
HPSC010A.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC010A.xml
+9
-0
No files found.
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC010.java
View file @
8e10dd6f
...
...
@@ -131,6 +131,7 @@ public class ServiceHPSC010 extends ServiceEPBase {
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
HPSC010
.
FIELD_FACTORY_CODE
,
list
.
get
(
0
).
get
(
HPSC010
.
FIELD_FACTORY_CODE
));
queryMap
.
put
(
HPSC010
.
FIELD_REGISTER_DATE
,
StringUtil
.
removeHorizontalLine
(
registerDate
));
queryMap
.
put
(
HPSC010
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
queryFactoryCode
(
inInfo
,
queryMap
);
for
(
i
=
0
;
i
<
list
.
size
();
i
++)
{
Map
<?,
?>
map
=
list
.
get
(
i
);
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC096.java
View file @
8e10dd6f
...
...
@@ -177,11 +177,25 @@ public class ServiceHPSC096 extends ServiceEPBase {
List
<
Map
>
listFactoryCode
=
this
.
dao
.
query
(
HPSC096
.
QUERY_FACTORY_CODE
,
queryMap
,
EiConstant
.
defaultOffset
,
100
);
int
rowNo
=
0
;
int
detrowNo
=
0
;
queryMap
.
clear
();
List
<
HPSC010A
>
listHpsc009
=
new
ArrayList
<
HPSC010A
>();
if
(
listFactoryCode
.
size
()>
0
){
queryMap
.
put
(
HPSC010
.
FIELD_FACTORY_CODE
,
listFactoryCode
.
get
(
0
).
get
(
"factoryCode"
));
queryMap
.
put
(
"registerDates"
,
"select max(REGISTER_DATE) from hpjx.T_HPSC009 where COMPANY_CODE = '"
+
UserSessionUtils
.
getCompanyCode
()+
"' and FACTORY_CODE = '"
+
listFactoryCode
.
get
(
0
).
get
(
"factoryCode"
)+
"' AND DELETE_FLAG = 0"
);
listHpsc009
=
this
.
dao
.
query
(
HPSC010A
.
QUERY
,
queryMap
);
}
for
(
int
i
=
0
;
i
<
listFactoryCode
.
size
();
i
++)
{
Map
result
=
new
HashMap
();
result
.
putAll
(
listFactoryCode
.
get
(
i
));
result
.
put
(
HPSC010A
.
FIELD_WEIGHT
,
0
);
result
.
put
(
HPSC010A
.
FIELD_WEIGHT_JH
,
0
);
for
(
HPSC010A
hpsc010a:
listHpsc009
)
{
if
(
listFactoryCode
.
get
(
i
).
get
(
HPSC010A
.
FIELD_FACTORY_CODE
).
equals
(
hpsc010a
.
getFactoryCode
())
&&
listFactoryCode
.
get
(
i
).
get
(
HPSC010A
.
FIELD_GROUP_CODE
).
equals
(
hpsc010a
.
getGroupCode
())){
result
.
put
(
HPSC010A
.
FIELD_PRDT_NAME
,
hpsc010a
.
getPrdtName
());
}
}
if
(
"prodGroup"
.
equals
(
listFactoryCode
.
get
(
i
).
get
(
HPSC096
.
FIELD_ORG_TYPE
)))
{
rowNo
++;
result
.
put
(
HPSC010A
.
FIELD_GROUP_TYPE
,
"1"
);
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC010.xml
View file @
8e10dd6f
...
...
@@ -61,6 +61,9 @@
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = 0
</isEmpty>
<isNotEmpty
prepend=
" AND "
property=
"registerDate"
>
REGISTER_DATE = #registerDate#
</isNotEmpty>
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC010A.xml
View file @
8e10dd6f
...
...
@@ -65,6 +65,9 @@
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = 0
</isEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
</isNotEmpty>
...
...
@@ -122,6 +125,9 @@
UPDATED_NAME as "updatedName"
<!-- 修改时间 -->
FROM ${hpjxSchema}.T_HPSC009 WHERE 1=1
<include
refid=
"condition"
/>
<isNotEmpty
prepend=
" AND "
property=
"registerDates"
>
REGISTER_DATE in ($registerDates$)
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
...
...
@@ -158,6 +164,9 @@
UPDATED_NAME as "updatedName"
<!-- 修改时间 -->
FROM ${hpjxSchema}.T_HPSC009 WHERE 1=1 and GROUP_TYPE in ('1','2')
<include
refid=
"condition"
/>
<isNotEmpty
prepend=
" AND "
property=
"registerDates"
>
REGISTER_DATE in ($registerDates$)
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
...
...
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