|
@@ -60,6 +60,10 @@ public class FlowFlowSupplierServiceImpl implements FlowSupplierService {
|
|
|
entity.setUserId(result.getData().getId());
|
|
|
entity.setUserNickname(result.getData().getNickname());
|
|
|
}
|
|
|
+ Calendar calendar = Calendar.getInstance();
|
|
|
+ Integer count=flowSupplierDao.getNextCount()+1;
|
|
|
+ String paddedNumber = String.format("%0" + 4 + "d", count);
|
|
|
+ entity.setCustomerNumber("GYS-"+calendar.get(Calendar.YEAR)+"-"+paddedNumber);
|
|
|
flowSupplierDao.insert(entity);
|
|
|
}else{
|
|
|
CommonResult<AdminUserRespDTO> result1 = adminUserApi.getUser(entity.getUserId());
|