mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2024-12-27 18:34:28 +08:00
feat: ERP代码修改
This commit is contained in:
parent
99a399b245
commit
3a56ad7404
1 changed files with 10 additions and 0 deletions
|
@ -105,6 +105,16 @@ public class MachinProcedureFarmServiceImpl extends SkyeyeBusinessServiceImpl<Ma
|
|||
entity.setOddNumber(oddNumber);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void createPrepose(List<MachinProcedureFarm> entity) {
|
||||
String serviceClassName = getServiceClassName();
|
||||
entity.forEach(bean -> {
|
||||
Map<String, Object> business = BeanUtil.beanToMap(bean);
|
||||
String oddNumber = iCodeRuleService.getNextCodeByClassName(serviceClassName, business);
|
||||
bean.setOddNumber(oddNumber);
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public MachinProcedureFarm selectById(String id) {
|
||||
MachinProcedureFarm machinProcedureFarm = super.selectById(id);
|
||||
|
|
Loading…
Reference in a new issue