This commit is contained in:
parent
3d92c34bd7
commit
c456eb6ce3
|
|
@ -69,7 +69,7 @@ public class BackCsDeviceDetails {
|
|||
private String updateBy;
|
||||
|
||||
@ApiModelProperty(value = "维修数量")
|
||||
private BigDecimal realNum;
|
||||
private BigDecimal realNum = BigDecimal.ZERO;
|
||||
|
||||
@ApiModelProperty(value = "是否维修 0无需维修 1维修")
|
||||
private String isRepair;
|
||||
|
|
|
|||
|
|
@ -170,6 +170,7 @@ public class BackChangeServiceImpl implements BackChangeService {
|
|||
String nickName = SecurityUtils.getLoginUser().getSysUser().getNickName();
|
||||
csDeviceVo.getDevInfo().setUpdateBy(nickName);
|
||||
// 修改主任务
|
||||
csDeviceVo.getDevInfo().setTaskStatus("0");
|
||||
int num = mapper.updateCsDevInfo(csDeviceVo.getDevInfo());
|
||||
if (num < 1) {
|
||||
throw new RuntimeException("修改主任务失败");
|
||||
|
|
|
|||
|
|
@ -326,6 +326,7 @@ public class DevChangeServiceImpl implements DevChangeService {
|
|||
String nickName = SecurityUtils.getLoginUser().getSysUser().getNickName();
|
||||
csDeviceVo.getDevInfo().setUpdateBy(nickName);
|
||||
// 修改主任务
|
||||
csDeviceVo.getDevInfo().setTaskStatus("0");
|
||||
int num = mapper.updateCsDevInfo(csDeviceVo.getDevInfo());
|
||||
if (num < 1) {
|
||||
throw new RuntimeException("修改主任务失败");
|
||||
|
|
|
|||
|
|
@ -56,6 +56,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="updateBy != null and updateBy != ''">
|
||||
update_user = #{updateBy},
|
||||
</if>
|
||||
<if test="taskStatus != null and taskStatus != ''">
|
||||
review_status = #{taskStatus},
|
||||
</if>
|
||||
update_time = NOW()
|
||||
</set>
|
||||
where id = #{id}
|
||||
|
|
|
|||
|
|
@ -596,6 +596,9 @@
|
|||
</if>
|
||||
<if test="updateBy != null and updateBy != ''">
|
||||
update_user = #{updateBy},
|
||||
</if>
|
||||
<if test="taskStatus != null and taskStatus != ''">
|
||||
review_status = #{taskStatus},
|
||||
</if>
|
||||
update_time = NOW()
|
||||
</set>
|
||||
|
|
|
|||
Loading…
Reference in New Issue