代码更新

This commit is contained in:
2022-07-29 16:01:16 +08:00
parent 9b7ee43bb2
commit 0b40cd9ff0
3 changed files with 13 additions and 0 deletions

View File

@@ -216,9 +216,19 @@ public class DevicerepairplanmstServiceImpl implements DevicerepairplanmstServic
@Override
@Transactional(rollbackFor = Exception.class)
public void changeActive(JSONObject json) {
Long currentUserId = SecurityUtils.getCurrentUserId();
String nickName = SecurityUtils.getNickName();
String now = DateUtil.now();
String is_active = "1";
if (StrUtil.equals("1", json.getString("is_active"))) {
is_active = "0";
json.put("confirm_optid", "");
json.put("confirm_optname", "");
json.put("confirm_time", "");
} else {
json.put("confirm_optid", currentUserId);
json.put("confirm_optname", nickName);
json.put("confirm_time", now);
}
json.put("is_active", is_active);
WQLObject.getWQLObject("EM_BI_DeviceRepairPlanMst").update(json);