parent
24ff03d659
commit
c4011ae4df
@ -0,0 +1,23 @@
|
||||
package cn.estsh.i3plus.core.api.iservice.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysOrderNoRule;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2019-09-03 13:59
|
||||
* @Modify:
|
||||
**/
|
||||
public interface ISynchronizedService {
|
||||
|
||||
/**
|
||||
* 根据单号代码获取单号信息
|
||||
* @param code 单号代码
|
||||
* @return 单号信息
|
||||
*/
|
||||
@ApiOperation(value = "根据code查询最新单号规则")
|
||||
SysOrderNoRule nextOrderNo(String code);
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package cn.estsh.i3plus.core.apiservice.serviceimpl.base;
|
||||
|
||||
import cn.estsh.i3plus.core.api.iservice.base.ISynchronizedService;
|
||||
import cn.estsh.i3plus.core.api.iservice.busi.ISysOrderNoRuleService;
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysOrderNoRule;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2019-09-03 14:00
|
||||
* @Modify:
|
||||
**/
|
||||
@Service
|
||||
public class SynchronizedService implements ISynchronizedService {
|
||||
|
||||
@Autowired
|
||||
private ISysOrderNoRuleService sysOrderNoRuleService;
|
||||
|
||||
@Override
|
||||
public synchronized SysOrderNoRule nextOrderNo(String code) {
|
||||
return sysOrderNoRuleService.doGetSysOrderNoRuleCode(code);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue