diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/alloc/service/impl/AllocCanteenEvaluateServiceImpl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/alloc/service/impl/AllocCanteenEvaluateServiceImpl.java index 4bd41b4..5603821 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/alloc/service/impl/AllocCanteenEvaluateServiceImpl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/alloc/service/impl/AllocCanteenEvaluateServiceImpl.java @@ -52,6 +52,9 @@ public class AllocCanteenEvaluateServiceImpl implements IAllocCanteenEvaluateSer @Override public int insertAllocCanteenEvaluate(AllocCanteenEvaluate allocCanteenEvaluate) { allocCanteenEvaluate.setCreateTime(DateUtils.getNowDate()); + allocCanteenEvaluate.setCreateBy(SecurityUtils.getUsername()); + allocCanteenEvaluate.setUserId(SecurityUtils.getUserId()); + allocCanteenEvaluate.setEvaluateDate(DateUtils.getNowDate()); try { return allocCanteenEvaluateMapper.insertAllocCanteenEvaluate(allocCanteenEvaluate); } catch (Exception e) { @@ -68,6 +71,7 @@ public class AllocCanteenEvaluateServiceImpl implements IAllocCanteenEvaluateSer @Override public int updateAllocCanteenEvaluate(AllocCanteenEvaluate allocCanteenEvaluate) { allocCanteenEvaluate.setUpdateTime(DateUtils.getNowDate()); + allocCanteenEvaluate.setUpdateBy(SecurityUtils.getUsername()); try { return allocCanteenEvaluateMapper.updateAllocCanteenEvaluate(allocCanteenEvaluate); } catch (Exception e) {