工单修改

This commit is contained in:
2023-03-22 09:38:53 +08:00
parent 187a2f9b6d
commit 58623edab3
3 changed files with 3 additions and 6 deletions

View File

@@ -158,15 +158,11 @@ public class ProduceWorkorderServiceImpl implements ProduceWorkorderService {
public void update(ProduceWorkorderDto dto) {
ProduceWorkorderDto entity = this.findById(dto.getWorkorder_id());
if (entity == null) throw new BadRequestException("被删除或无权限,操作失败!");
String currentUserId = SecurityUtils.getCurrentUserId();
String nickName = SecurityUtils.getCurrentNickName();
dto.setUpdate_time(DateUtil.now());
dto.setUpdate_id(currentUserId);
dto.setUpdate_name(nickName);
WQLObject wo = WQLObject.getWQLObject("pdm_produce_workorder");
JSONObject json = JSONObject.parseObject(JSON.toJSONString(dto));
wo.update(json);

View File

@@ -125,7 +125,7 @@
and device.device_code not in (
select o.current_device_code as device_code
from PDM_produce_workOrder o
where o.workorder_status <> '5'
where o.workorder_status <> '5' and o.is_delete = '0'
)
ENDOPTION
ENDSELECT