feat: ERP代码修改

This commit is contained in:
weizhiqiang 2024-11-08 15:35:44 +08:00
parent 99a399b245
commit 3a56ad7404

View file

@ -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);