Merge branch 'dev-nx' of http://192.168.0.56:3000/bonus/devicesmgt into dev-nx
This commit is contained in:
commit
5801485f1b
|
|
@ -1,6 +1,7 @@
|
||||||
package com.bonus.sgzb.app.controller;
|
package com.bonus.sgzb.app.controller;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import com.bonus.sgzb.app.mapper.TmTaskMapper;
|
||||||
import com.bonus.sgzb.base.api.domain.BackApplyInfo;
|
import com.bonus.sgzb.base.api.domain.BackApplyInfo;
|
||||||
import com.bonus.sgzb.app.domain.BmAgreementInfo;
|
import com.bonus.sgzb.app.domain.BmAgreementInfo;
|
||||||
import com.bonus.sgzb.app.domain.TmTask;
|
import com.bonus.sgzb.app.domain.TmTask;
|
||||||
|
|
@ -39,6 +40,8 @@ public class BackApplyController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@Resource
|
@Resource
|
||||||
private TmTaskService tmTaskService;
|
private TmTaskService tmTaskService;
|
||||||
|
@Resource
|
||||||
|
private TmTaskMapper tmTaskMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 退料申请列表
|
* 退料申请列表
|
||||||
|
|
@ -222,6 +225,11 @@ public class BackApplyController extends BaseController {
|
||||||
if (!re) {
|
if (!re) {
|
||||||
return AjaxResult.error("退料任务明细插入失败");
|
return AjaxResult.error("退料任务明细插入失败");
|
||||||
}
|
}
|
||||||
|
// 更新任务状态
|
||||||
|
TmTask tmTask = new TmTask();
|
||||||
|
tmTask.setTaskId(record.getTaskId().longValue());
|
||||||
|
tmTask.setTaskStatus(38);
|
||||||
|
tmTaskMapper.updateTmTaskAuditStatus(tmTask);
|
||||||
}
|
}
|
||||||
return AjaxResult.success("退料任务明细插入成功,已完成");
|
return AjaxResult.success("退料任务明细插入成功,已完成");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
||||||
|
|
@ -229,7 +229,7 @@
|
||||||
type_id,
|
type_id,
|
||||||
</if>
|
</if>
|
||||||
<if test="preNum != null">
|
<if test="preNum != null">
|
||||||
pre_num,
|
pre_num,audit_num,
|
||||||
</if>
|
</if>
|
||||||
status,
|
status,
|
||||||
<if test="createBy != null and createBy != ''">
|
<if test="createBy != null and createBy != ''">
|
||||||
|
|
@ -255,7 +255,7 @@
|
||||||
#{typeId},
|
#{typeId},
|
||||||
</if>
|
</if>
|
||||||
<if test="preNum != null">
|
<if test="preNum != null">
|
||||||
#{preNum},
|
#{preNum}, #{preNum},
|
||||||
</if>
|
</if>
|
||||||
'0',
|
'0',
|
||||||
<if test="createBy != null and createBy != ''">
|
<if test="createBy != null and createBy != ''">
|
||||||
|
|
@ -389,6 +389,7 @@
|
||||||
<select id="getbackList" resultType="com.bonus.sgzb.base.api.domain.BackApplyInfo">
|
<select id="getbackList" resultType="com.bonus.sgzb.base.api.domain.BackApplyInfo">
|
||||||
SELECT
|
SELECT
|
||||||
bai.id,
|
bai.id,
|
||||||
|
bai.task_id,
|
||||||
bai.`code`,
|
bai.`code`,
|
||||||
bai.back_person as backPerson,
|
bai.back_person as backPerson,
|
||||||
bai.phone,
|
bai.phone,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue