Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
03d02cd4
Commit
03d02cd4
authored
May 20, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产计划排产
parent
7a186899
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ServiceHGSC005A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC005A.java
+2
-2
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+2
-1
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC005A.java
View file @
03d02cd4
...
...
@@ -82,10 +82,10 @@ public class ServiceHGSC005A extends ServiceBase {
String
planCode
=
inInfo
.
getString
(
HGSC005
.
FIELD_plan_code
);
HGSC005
hgsc005
=
HGSCTools
.
THGSC005
.
queryByPlanCode
(
planCode
);
this
.
checkScheduleData
(
hgsc005
);
HGSCTools
.
THGSC005A
.
schedule
(
planCode
);
int
count
=
HGSCTools
.
THGSC005A
.
schedule
(
planCode
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
// inInfo.setMsg("操作成功!本次对[" + resultRows.size()
+ "]条数据排产成功!");
inInfo
.
setMsg
(
"操作成功!本次对["
+
count
+
"]条数据排产成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"操作失败"
);
}
...
...
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
03d02cd4
...
...
@@ -338,7 +338,7 @@ public class HGSCTools {
//基础工时
private
final
static
BigDecimal
baseWorkHour
=
new
BigDecimal
(
8
);
public
static
void
schedule
(
String
planCode
)
{
public
static
int
schedule
(
String
planCode
)
{
List
<
HGSC005A
>
hgsc005AList
=
queryByPlanCode
(
planCode
);
hgsc005AList
.
sort
(
Comparator
.
comparing
(
HGSC005A:
:
getProductType
).
thenComparing
(
HGSC005A:
:
getProcessOrder
,
Comparator
.
reverseOrder
()));
//通过工序编码查询工序设置
...
...
@@ -372,6 +372,7 @@ public class HGSCTools {
minDate
=
DateUtil
.
toDate
(
planInfo
.
getPlanStartDate
(),
DateUtil
.
DATE10_PATTERN
).
compareTo
(
DateUtil
.
toDate
(
minDate
,
DateUtil
.
DATE10_PATTERN
))
<=
0
?
planInfo
.
getPlanStartDate
():
minDate
;
DaoUtils
.
update
(
HGSC005A
.
UPDATE
,
planInfo
);
}
return
hgsc005AList
.
size
();
}
private
static
BigDecimal
calculateWordHour
(
HGSC005A
planInfo
,
List
<
HGSJ001
>
hgsj001List
...
...
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