修复bug#796
This commit is contained in:
@ -119,6 +119,9 @@ public class CountryRegionServiceImpl extends ServiceImpl<LngBRegionMapper, LngB
|
||||
@Override
|
||||
public List<LngBRegionVo> child(Long pid, String excludeType, String keyword, String startPCode) {
|
||||
List<Long> pidList = CollectionUtils.newArrayList();
|
||||
if(pid == null) {
|
||||
pid = 0L;
|
||||
}
|
||||
|
||||
if(StrUtil.isNotBlank(startPCode) && (pid == null || pid ==0) ){
|
||||
List<LngBRegion> pList = this.list(Wrappers.<LngBRegion>query()
|
||||
|
||||
@ -152,8 +152,6 @@ public class CustomerController {
|
||||
|
||||
@Override
|
||||
public UpdateLngCustomerDto before(DataOperationContent<UpdateLngCustomerDto> content) {
|
||||
String code = codeRuleClient.genEncode(CUSTOMER_CODE);
|
||||
dto.setCuCode("C"+code);
|
||||
return content.getObj();
|
||||
}
|
||||
|
||||
@ -163,7 +161,6 @@ public class CustomerController {
|
||||
if (StringUtils.isNotEmpty(msg)) {
|
||||
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
||||
}
|
||||
codeRuleClient.useEncode(CUSTOMER_CODE);
|
||||
return content.getObj();
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user