Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes
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
mes
Commits
58b8e250
Commit
58b8e250
authored
Oct 28, 2024
by
温志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新报工
parent
661f0a09
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
application-dev.yml
admin/src/main/resources/application-dev.yml
+3
-3
application-test.yml
admin/src/main/resources/application-test.yml
+0
-3
ProTaskServiceImpl.java
...m/ximai/mes/pro/service/impl/task/ProTaskServiceImpl.java
+5
-2
No files found.
admin/src/main/resources/application-dev.yml
View file @
58b8e250
...
...
@@ -56,9 +56,9 @@ spring:
druid
:
# 主库数据源
master
:
url
:
jdbc:mysql://
localhost:3307
/xm_mes_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
root
password
:
123456
url
:
jdbc:mysql://
192.168.222.136:3306
/xm_mes_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
admin
password
:
t0psunit
# 从库数据源
slave
:
# 从数据源开关/默认关闭
...
...
admin/src/main/resources/application-test.yml
View file @
58b8e250
...
...
@@ -221,9 +221,6 @@ remote:
url
:
http://localhost:20090
username
:
rest_user
password
:
ximai123456
#fiegn配置连接池
feign
:
okhttp
:
...
...
mes/src/main/java/com/ximai/mes/pro/service/impl/task/ProTaskServiceImpl.java
View file @
58b8e250
...
...
@@ -774,8 +774,11 @@ public class ProTaskServiceImpl implements IProTaskService {
BigDecimal
feedbackQualifyConst
=
feedback
.
getQuantityQualify
();
BigDecimal
fuantityUnqualify
=
feedback
.
getQuantityUnqualify
();
//温志超修改 :合格和非合格数量都不允许小于0
ExceptionUtil
.
checkTrueThrowException
(
feedbackQualifyConst
.
compareTo
(
BigDecimal
.
ZERO
)
<=
0
||
fuantityUnqualify
.
compareTo
(
BigDecimal
.
ZERO
)
<=
0
,
MessageUtils
.
message
(
"pro.feedback.error.min.quantity、unqualify"
));
ExceptionUtil
.
checkTrueThrowException
(
(
feedbackQualifyConst
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
||
fuantityUnqualify
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
),
MessageUtils
.
message
(
"pro.feedback.error.min.quantity"
));
ExceptionUtil
.
checkTrueThrowException
((
feedbackQualifyConst
.
compareTo
(
BigDecimal
.
ZERO
)
<=
0
&&
fuantityUnqualify
.
compareTo
(
BigDecimal
.
ZERO
)
<=
0
),
MessageUtils
.
message
(
"报工数目合格、不合格数不能都小于等于0"
));
if
(
StringUtils
.
isNotEmpty
(
feedback
.
getQrcode
())){
FeedbackValidateSerialNoParams
feedbackValidateSerialNoParams
=
new
FeedbackValidateSerialNoParams
();
feedbackValidateSerialNoParams
.
setQrcode
(
feedback
.
getQrcode
());
...
...
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