退料完成问题提交

This commit is contained in:
liang.chao 2024-07-17 17:36:14 +08:00
parent 2d7ff3bf90
commit ed90d2750b
3 changed files with 4 additions and 1 deletions

View File

@ -122,6 +122,7 @@ public class BackReceiveController extends BaseController {
String[] split = record.getTypeId().split(",");
for (String s : split) {
record.setModelId(s);
record.setTypeId(null);
List<BackApplyInfo> list = backReceiveService.receiveView(record);
for (BackApplyInfo backApplyInfo : list) {
if (Double.valueOf(backApplyInfo.getNum()).intValue() != 0) {

View File

@ -200,6 +200,7 @@ public class BackReceiveServiceImpl implements BackReceiveService {
}
}
//维修的创建维修任务插入任务协议表
List<BackApplyInfo> wxList = backReceiveMapper.getWxList(record);
if (wxList != null && wxList.size() > 0) {
@ -210,8 +211,8 @@ public class BackReceiveServiceImpl implements BackReceiveService {
//插入维修记录表repair_apply_details
res = insertRad(newTaskId, wxList);
}
//待报废的创建报废任务插入任务协议表
//待报废的创建报废任务插入任务协议表
List<BackApplyInfo> bfList = backReceiveMapper.getBfList(record);
if (bfList != null && bfList.size() > 0) {
//插入任务表tm_task

View File

@ -1078,6 +1078,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
scrap_check_details scd1
LEFT JOIN scrap_apply_details sad1 ON scd1.parent_id = sad1.parent_id
AND scd1.type_id = sad1.type_id
WHERE sad1.task_id = #{taskId}
GROUP BY
scd1.parent_id,
sad1.type_id