退料审核bug
This commit is contained in:
parent
926c07a059
commit
43ca5391e7
|
|
@ -21,6 +21,10 @@ public class BackApplyDto {
|
||||||
@ApiModelProperty(value = "退料ID")
|
@ApiModelProperty(value = "退料ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
/** 退料内部ID */
|
||||||
|
@ApiModelProperty(value = "退料内部ID")
|
||||||
|
private Long innerId;
|
||||||
|
|
||||||
@ApiModelProperty(value="同一退料单中不同器具状态")
|
@ApiModelProperty(value="同一退料单中不同器具状态")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -481,6 +481,7 @@ public class BackApplyServiceImpl implements BackApplyService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//审核成功,赋值任务状态38
|
||||||
if (num == taskIdById.size()) {
|
if (num == taskIdById.size()) {
|
||||||
dto.setTaskStatus("38");
|
dto.setTaskStatus("38");
|
||||||
backApplyMapper.updateTmTaskAll(dto);
|
backApplyMapper.updateTmTaskAll(dto);
|
||||||
|
|
@ -497,7 +498,8 @@ public class BackApplyServiceImpl implements BackApplyService {
|
||||||
if (CollUtil.isNotEmpty(dto.getBackApplyList())) {
|
if (CollUtil.isNotEmpty(dto.getBackApplyList())) {
|
||||||
for (BackApplyListDto backApplyListDto : dto.getBackApplyList()) {
|
for (BackApplyListDto backApplyListDto : dto.getBackApplyList()) {
|
||||||
for (BackApplyInfo backApplyDetail : backApplyListDto.getBackApplyDetails()) {
|
for (BackApplyInfo backApplyDetail : backApplyListDto.getBackApplyDetails()) {
|
||||||
dto.setAuditNum(backApplyDetail.getNum());
|
dto.setInnerId(backApplyListDto.getId());
|
||||||
|
dto.setAuditNum(backApplyDetail.getPreNum());
|
||||||
re = backApplyMapper.auditAll(dto);
|
re = backApplyMapper.auditAll(dto);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -348,7 +348,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN back_apply_details bad on bad.parent_id=bai.id
|
LEFT JOIN back_apply_details bad on bad.parent_id=bai.id
|
||||||
SET bad.audit_num=#{auditNum},bai.direct_audit_by=#{createBy},bai.status=#{status},bai.direct_audit_time=NOW()
|
SET bad.audit_num=#{auditNum},bai.direct_audit_by=#{createBy},bai.status=#{status},bai.direct_audit_time=NOW()
|
||||||
WHERE
|
WHERE
|
||||||
bai.id = #{id}
|
bai.id = #{innerId}
|
||||||
<if test="companyId != null and companyId != ''">
|
<if test="companyId != null and companyId != ''">
|
||||||
and bai.company_id = #{companyId}
|
and bai.company_id = #{companyId}
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue