This commit is contained in:
mashuai 2025-11-16 14:35:22 +08:00
parent 3d92c34bd7
commit c456eb6ce3
5 changed files with 9 additions and 1 deletions

View File

@ -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;

View File

@ -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("修改主任务失败");

View File

@ -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("修改主任务失败");

View File

@ -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}

View File

@ -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>