Commit 6e103eca authored by hongguangwu's avatar hongguangwu

MVP1.5.2-Lock4j

parent 3d7f4050
......@@ -322,7 +322,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
* @return: java.lang.String
**/
@Override
@Lock4j(keys = "EMP_CONTRACT_GET_CODE",expire = 60000, acquireTimeout = 1000)
@Lock4j(expire = 60000, acquireTimeout = 1000)
public String getCode(boolean isNew) {
String nowDay = DateUtil.getThisDay();
int nowNums;
......
......@@ -1439,7 +1439,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
* @Date: 2022/6/22 17:52
* @return: java.lang.String
**/
@Lock4j(keys = "EMP_GET_CODE", expire = 60000, acquireTimeout = 1000)
@Lock4j(expire = 60000, acquireTimeout = 1000)
private String getCode() {
String nowDay = DateUtil.getThisDay();
Cache cache = cacheManager.getCache(CacheConstants.EVERYDAY_EMP_CODE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment