|
@@ -164,7 +164,7 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void repairSuccess(Integer id, String description) {
|
|
|
+ public void repairSuccess(Integer id, String description,Integer repairStatus) {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败");
|
|
@@ -173,10 +173,12 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
if (studentRepair == null) {
|
|
|
throw new BizException("维修信息不存在");
|
|
|
}
|
|
|
- studentRepair.setRepairStatus(1);
|
|
|
+ if(repairStatus != null){
|
|
|
+ studentRepair.setRepairStatus(1);
|
|
|
+ studentRepair.setFinishTime(new Date());
|
|
|
+ }
|
|
|
studentRepair.setUpdateTime(new Date());
|
|
|
studentRepair.setDescription(description);
|
|
|
- studentRepair.setFinishTime(new Date());
|
|
|
studentRepairDao.update(studentRepair);
|
|
|
log.info("操作人 :" + sysUser.getId());
|
|
|
}
|