Commit 58b8e250 authored by 温志超's avatar 温志超

更新报工

parent 661f0a09
...@@ -56,9 +56,9 @@ spring: ...@@ -56,9 +56,9 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
url: jdbc:mysql://localhost:3307/xm_mes_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://192.168.222.136:3306/xm_mes_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root username: admin
password: 123456 password: t0psunit
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭
......
...@@ -221,9 +221,6 @@ remote: ...@@ -221,9 +221,6 @@ remote:
url: http://localhost:20090 url: http://localhost:20090
username: rest_user username: rest_user
password: ximai123456 password: ximai123456
#fiegn配置连接池 #fiegn配置连接池
feign: feign:
okhttp: okhttp:
......
...@@ -774,8 +774,11 @@ public class ProTaskServiceImpl implements IProTaskService { ...@@ -774,8 +774,11 @@ public class ProTaskServiceImpl implements IProTaskService {
BigDecimal feedbackQualifyConst = feedback.getQuantityQualify(); BigDecimal feedbackQualifyConst = feedback.getQuantityQualify();
BigDecimal fuantityUnqualify = feedback.getQuantityUnqualify(); BigDecimal fuantityUnqualify = feedback.getQuantityUnqualify();
//温志超修改 :合格和非合格数量都不允许小于0 //温志超修改 :合格和非合格数量都不允许小于0
ExceptionUtil.checkTrueThrowException(feedbackQualifyConst.compareTo(BigDecimal.ZERO) <= 0 || fuantityUnqualify.compareTo(BigDecimal.ZERO) <= 0, ExceptionUtil.checkTrueThrowException( (feedbackQualifyConst.compareTo(BigDecimal.ZERO) < 0 || fuantityUnqualify.compareTo(BigDecimal.ZERO) < 0),
MessageUtils.message("pro.feedback.error.min.quantity、unqualify")); 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())){ if(StringUtils.isNotEmpty(feedback.getQrcode())){
FeedbackValidateSerialNoParams feedbackValidateSerialNoParams = new FeedbackValidateSerialNoParams(); FeedbackValidateSerialNoParams feedbackValidateSerialNoParams = new FeedbackValidateSerialNoParams();
feedbackValidateSerialNoParams.setQrcode(feedback.getQrcode()); feedbackValidateSerialNoParams.setQrcode(feedback.getQrcode());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment