计划bug修改

highway
zhaoxiaolin 1 year ago
parent 6b9ccbd5c3
commit 76036ee69a

@ -15,14 +15,14 @@ spring:
# username: nacos
# password: sfnacos2023
# 服务注册地址
#--spring.cloud.nacos.discovery.namespace=ywl --spring.cloud.nacos.config.namespace=ywl
#--spring.cloud.nacos.discovery.namespace=zxl --spring.cloud.nacos.config.namespace=zxl
namespace: lanju-op
group: ywl
group: zxl
server-addr: 140.249.53.142:8848
config:
#命名空间
namespace: lanju-op
group: ywl
group: zxl
# 配置中心地址
server-addr: 140.249.53.142:8848
# 配置文件格式

@ -17,13 +17,13 @@ spring:
# password: sfnacos2023
# namespace: lanju-op
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
#命名空间
namespace: lanju-op
group: ywl
group: zxl
# 配置中心地址
server-addr: 140.249.53.142:8848
# 配置文件格式

@ -14,12 +14,12 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
namespace: lanju-op
group: ywl
group: zxl
#命名空间
#group: local
# 配置中心地址

@ -14,12 +14,12 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
namespace: lanju-op
group: ywl
group: zxl
#命名空间
#group: local
# 配置中心地址

@ -15,13 +15,13 @@ spring:
discovery:
# 服务注册地址
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
# 配置中心地址
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
# 配置文件格式

@ -14,13 +14,13 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
#命名空间
namespace: lanju-op
group: ywl
group: zxl
# 配置中心地址
server-addr: 140.249.53.142:8848
# 配置文件格式

@ -14,12 +14,12 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
namespace: lanju-op
group: ywl
group: zxl
#命名空间
#group: local
# 配置中心地址

@ -14,12 +14,12 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
namespace: lanju-op
group: ywl
group: zxl
#命名空间
#group: local
# 配置中心地址

@ -167,12 +167,10 @@ public class ProOrderWorkorderController extends BaseController {
ArrayList<String> strings = new ArrayList<>();
for (ProOrderWorkorder proOrderWorkorder : proOrderWorkorders) {
String status = proOrderWorkorder.getStatus();
// strings.add(status);
// 更新代码逻辑-wws
if (status.equals("w0")){
strings.add(proOrderWorkorder.getWorkorderId());
} else {
throw new ServiceException("工单已经下,不能删除!");
throw new ServiceException("工单已经下,不能删除!");
}
// 判断是否含有湿料计划 boolean值存在为true不存在为false
if (proWetMaterialPlanDetailService.selectProWetMaterialPlanDetailByWorkId(proOrderWorkorder.getWorkorderId())) {
@ -180,36 +178,6 @@ public class ProOrderWorkorderController extends BaseController {
}
}
String[] orderWorkerIds= strings.toArray(new String[0]);
// 更新代码逻辑-wws
/*
for (String orderWorkerId : orderWorkerIds) {
if (orderWorkerId.equals("w0")){
return toAjax(proOrderWorkorderService.deleteProOrderWorkorderByWorkorderIds(workorderIds));
} else {
throw new ServiceException("工单已经下单,不能删除!");
}
}
*/
// ProOrderWorkorder proOrderWorkorder = new ProOrderWorkorder();
// String status = proOrderWorkorder.getStatus();
// ProOrder proOrder = new ProOrder();
// String status1 = proOrder.getStatus();
// if (proOrderWorkorder != null) {
// int parsedStatus1 = Integer.parseInt(status1);
// int parsedStatus = Integer.parseInt(status);
//
// if (parsedStatus1 == 1 && parsedStatus == 0) {
// proOrderWorkorderService.deleteProOrderWorkorderByWorkorderIds(workorderIds);
// } else {
// throw new ServiceException("订单未拆分或工单已经下单");
// }
// }
// 更新代码逻辑-wws
//return toAjax(proOrderWorkorderService.deleteProOrderWorkorderByWorkorderIds(workorderIds));
return toAjax(proOrderWorkorderService.deleteProOrderWorkorderByWorkorderIds(orderWorkerIds));
}

@ -14,12 +14,12 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
namespace: lanju-op
group: ywl
group: zxl
#命名空间
#group: local
# 配置中心地址

@ -132,12 +132,9 @@
<delete id="deleteProOrderWorkorderBatchByWorkorderIds" parameterType="String">
delete from pro_order_workorder_batch where workorder_id in
(
select workorder_id from pro_order_workorder where order_id in
<foreach item="workorderId" collection="array" open="(" separator="," close=")">
#{workorderId}
</foreach>
)
</delete>
</mapper>

@ -387,7 +387,7 @@
</delete>
<delete id="deleteProOrderWorkorderByWorkorderIds" parameterType="String">
delete from pro_order_workorder where order_id in
delete from pro_order_workorder where workorder_id in
<foreach item="workorderId" collection="array" open="(" separator="," close=")">
#{workorderId}
</foreach>

@ -25,7 +25,7 @@ public class QuaController {
@PostMapping("/saveQcProCheck")
public R<Boolean> saveQcProCheck(@RequestBody QcProCheck qcProCheck) {
qcProCheckService.saveQcProCheck(qcProCheck);
//qcProCheckService.saveQcProCheck(qcProCheck);
if (qcProCheck.getIsqua()=="1") {
WCSDTO wcsdto = new WCSDTO();
wcsdto.setFactory(qcProCheck.getFactoryCode());

@ -14,12 +14,12 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
namespace: lanju-op
group: ywl
group: zxl
#命名空间
#group: local
# 配置中心地址

@ -14,12 +14,12 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
namespace: lanju-op
group: ywl
group: zxl
#命名空间
#group: local
# 配置中心地址

@ -14,12 +14,12 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
namespace: lanju-op
group: ywl
group: zxl
#命名空间
#group: local
# 配置中心地址

@ -14,12 +14,12 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
namespace: lanju-op
group: ywl
group: zxl
#命名空间
#group: local
# 配置中心地址

@ -14,12 +14,12 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
namespace: lanju-op
group: ywl
group: zxl
#命名空间
#group: local
# 配置中心地址

@ -14,12 +14,12 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
namespace: lanju-op
group: ywl
group: zxl
#命名空间
#group: local
# 配置中心地址

@ -14,12 +14,12 @@ spring:
nacos:
discovery:
namespace: lanju-op
group: ywl
group: zxl
# 服务注册地址
server-addr: 140.249.53.142:8848
config:
namespace: lanju-op
group: ywl
group: zxl
#命名空间
#group: local
# 配置中心地址

Loading…
Cancel
Save