1.完善抛丸派工

master
董哲奇 8 months ago
parent 56a4f65267
commit 05e4df38f0

@ -44,7 +44,7 @@ public class ZyjhController {
} }
List<DmYdjh> list=dto.getList(); List<DmYdjh> list=dto.getList();
try { try {
Field field=DmYdjh.class.getField(dto.getField()); Field field=DmYdjh.class.getDeclaredField(dto.getField());
if (ObjUtil.isNotEmpty(field)){ if (ObjUtil.isNotEmpty(field)){
field.setAccessible(true); field.setAccessible(true);
String date=DateUtil.date().toString("yyyy/MM/dd"); String date=DateUtil.date().toString("yyyy/MM/dd");
@ -56,6 +56,7 @@ public class ZyjhController {
zyjhService.updateBatchById(list); zyjhService.updateBatchById(list);
return new ResultBean<>(); return new ResultBean<>();
} catch (NoSuchFieldException | IllegalAccessException e) { } catch (NoSuchFieldException | IllegalAccessException e) {
e.printStackTrace();
throw new ServiceException(10001,"属性字段不存在"); throw new ServiceException(10001,"属性字段不存在");
} }
} }

Loading…
Cancel
Save