计划bug修改

highway
zhaoxiaolin 1 year ago
parent 6b9ccbd5c3
commit 76036ee69a

@ -15,14 +15,14 @@ spring:
# username: nacos # username: nacos
# password: sfnacos2023 # 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 namespace: lanju-op
group: ywl group: zxl
server-addr: 140.249.53.142:8848 server-addr: 140.249.53.142:8848
config: config:
#命名空间 #命名空间
namespace: lanju-op namespace: lanju-op
group: ywl group: zxl
# 配置中心地址 # 配置中心地址
server-addr: 140.249.53.142:8848 server-addr: 140.249.53.142:8848
# 配置文件格式 # 配置文件格式

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

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

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

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

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

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

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

@ -167,12 +167,10 @@ public class ProOrderWorkorderController extends BaseController {
ArrayList<String> strings = new ArrayList<>(); ArrayList<String> strings = new ArrayList<>();
for (ProOrderWorkorder proOrderWorkorder : proOrderWorkorders) { for (ProOrderWorkorder proOrderWorkorder : proOrderWorkorders) {
String status = proOrderWorkorder.getStatus(); String status = proOrderWorkorder.getStatus();
// strings.add(status);
// 更新代码逻辑-wws
if (status.equals("w0")){ if (status.equals("w0")){
strings.add(proOrderWorkorder.getWorkorderId()); strings.add(proOrderWorkorder.getWorkorderId());
} else { } else {
throw new ServiceException("工单已经下,不能删除!"); throw new ServiceException("工单已经下,不能删除!");
} }
// 判断是否含有湿料计划 boolean值存在为true不存在为false // 判断是否含有湿料计划 boolean值存在为true不存在为false
if (proWetMaterialPlanDetailService.selectProWetMaterialPlanDetailByWorkId(proOrderWorkorder.getWorkorderId())) { if (proWetMaterialPlanDetailService.selectProWetMaterialPlanDetailByWorkId(proOrderWorkorder.getWorkorderId())) {
@ -180,36 +178,6 @@ public class ProOrderWorkorderController extends BaseController {
} }
} }
String[] orderWorkerIds= strings.toArray(new String[0]); 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)); return toAjax(proOrderWorkorderService.deleteProOrderWorkorderByWorkorderIds(orderWorkerIds));
} }

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

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

@ -387,7 +387,7 @@
</delete> </delete>
<delete id="deleteProOrderWorkorderByWorkorderIds" parameterType="String"> <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=")"> <foreach item="workorderId" collection="array" open="(" separator="," close=")">
#{workorderId} #{workorderId}
</foreach> </foreach>

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

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

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

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

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

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

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

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

Loading…
Cancel
Save