Browse Source

[update]绩效模块,业务绩效ID自动生产

dev
zhangsiqi 5 months ago
parent
commit
8580519a3b
  1. 8
      ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpCtcServiceImpl.java

8
ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpCtcServiceImpl.java

@ -2,6 +2,8 @@ package com.ruoyi.erp.service.impl;
import java.text.SimpleDateFormat;
import java.util.List;
import com.ruoyi.common.core.redis.RedisCache;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.ShiroUtils;
import org.springframework.beans.factory.annotation.Autowired;
@ -23,6 +25,9 @@ public class ErpCtcServiceImpl implements IErpCtcService
@Autowired
private ErpCtcMapper erpCtcMapper;
@Autowired
private RedisCache redisCache;
/**
* 查询业务绩效表
*
@ -127,7 +132,6 @@ public class ErpCtcServiceImpl implements IErpCtcService
@Override
public String getId() {
String time = new SimpleDateFormat("yyyyMMddHHmmssSSS").format(System.currentTimeMillis());
return "YWJ" + time.substring(2);
return redisCache.generateBillNo("YWJX");
}
}

Loading…
Cancel
Save