Explorar o código

成本分配增加查询人和查询时间

zengtx %!s(int64=2) %!d(string=hai) anos
pai
achega
d6eaabbdee

+ 9 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/cost/entity/SyCostAllocation.java

@@ -210,4 +210,13 @@ public class SyCostAllocation implements Serializable {
     //附件
     private String attachs;
 
+    //查询人
+    @TableField(exist = false)
+    private String queryBy;
+    //查询时间
+    @TableField(exist = false)
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
+    private Date queryTime;
+
 }

+ 3 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/cost/service/impl/SyCostAllocationServiceImpl.java

@@ -10,6 +10,7 @@ import org.apache.shiro.SecurityUtils;
 import org.jeecg.common.api.vo.Result;
 import org.jeecg.common.exception.JeecgBootException;
 import org.jeecg.common.system.vo.LoginUser;
+import org.jeecg.common.util.DateUtils;
 import org.jeecg.common.util.oConvertUtils;
 import org.jeecg.modules.cost.entity.*;
 import org.jeecg.modules.cost.mapper.*;
@@ -190,6 +191,8 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
         //制单人 取当前查询人
         LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
         syCostAllocation.setPreparedBy(sysUser.getRealname());
+        syCostAllocation.setQueryBy(sysUser.getRealname());
+        syCostAllocation.setQueryTime(DateUtils.getDate());
 
         //查询单证面损数据   面料(不)含税成本
         SyFabricLossReport syLossReport1 = null;