修复禁用功能bug
This commit is contained in:
@ -80,7 +80,7 @@ public class BankServiceImpl extends ServiceImpl<LngBBankMapper, LngBBank> imple
|
|||||||
DataLogTools.disable(UpdateLngBBankDto.class,ids);
|
DataLogTools.disable(UpdateLngBBankDto.class,ids);
|
||||||
|
|
||||||
for (Long id : ids) {
|
for (Long id : ids) {
|
||||||
String msg = commonCallService.enableBefore(TableNameConstants.LNG_B_BANK, id);
|
String msg = commonCallService.disableBefore(TableNameConstants.LNG_B_BANK, id);
|
||||||
if (StringUtils.isNotBlank(msg)) {
|
if (StringUtils.isNotBlank(msg)) {
|
||||||
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -76,7 +76,7 @@ public class CountryRegionServiceImpl extends ServiceImpl<LngBRegionMapper, LngB
|
|||||||
public boolean disable(List<Long> ids) {
|
public boolean disable(List<Long> ids) {
|
||||||
dataService.disable(UpdateLngBRegionDto.class,ids);
|
dataService.disable(UpdateLngBRegionDto.class,ids);
|
||||||
for (Long id : ids) {
|
for (Long id : ids) {
|
||||||
String msg = commonCallService.enableBefore(TableNameConstants.LNG_B_REGION, id);
|
String msg = commonCallService.disableBefore(TableNameConstants.LNG_B_REGION, id);
|
||||||
if (StringUtils.isNotBlank(msg)) {
|
if (StringUtils.isNotBlank(msg)) {
|
||||||
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -72,7 +72,7 @@ public class ExpenseNameServiceImpl extends ServiceImpl<LngBFeeMapper, LngBFee>
|
|||||||
public Boolean disable(List<Long> ids) {
|
public Boolean disable(List<Long> ids) {
|
||||||
DataLogTools.disable(UpdateLngBBankDto.class,ids);
|
DataLogTools.disable(UpdateLngBBankDto.class,ids);
|
||||||
for (Long id : ids) {
|
for (Long id : ids) {
|
||||||
String msg = commonCallService.enableBefore(TableNameConstants.LNG_B_FEE, id);
|
String msg = commonCallService.disableBefore(TableNameConstants.LNG_B_FEE, id);
|
||||||
if (StringUtils.isNotBlank(msg)) {
|
if (StringUtils.isNotBlank(msg)) {
|
||||||
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -80,7 +80,7 @@ public class PipeGasDownloadPointServiceImpl extends ServiceImpl<LngBStationPngM
|
|||||||
DataLogTools.disable(UpdateLngBStationPngDto.class,ids);
|
DataLogTools.disable(UpdateLngBStationPngDto.class,ids);
|
||||||
|
|
||||||
for (Long id : ids) {
|
for (Long id : ids) {
|
||||||
String msg = commonCallService.enableBefore(TableNameConstants.LNG_B_STATION_PNG, id);
|
String msg = commonCallService.disableBefore(TableNameConstants.LNG_B_STATION_PNG, id);
|
||||||
if (StringUtils.isNotBlank(msg)) {
|
if (StringUtils.isNotBlank(msg)) {
|
||||||
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -88,7 +88,7 @@ public class PipelineGgasLineServiceImpl extends ServiceImpl<LngBPngLineMapper,
|
|||||||
DataLogTools.disable(UpdateLngBPngLineDto.class,ids);
|
DataLogTools.disable(UpdateLngBPngLineDto.class,ids);
|
||||||
|
|
||||||
for (Long id : ids) {
|
for (Long id : ids) {
|
||||||
String msg = commonCallService.enableBefore(TableNameConstants.LNG_B_PNG_LINE, id);
|
String msg = commonCallService.disableBefore(TableNameConstants.LNG_B_PNG_LINE, id);
|
||||||
if (StringUtils.isNotBlank(msg)) {
|
if (StringUtils.isNotBlank(msg)) {
|
||||||
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -72,7 +72,7 @@ public class TaxRateServiceImpl extends ServiceImpl<LngBTaxMapper, LngBTax> impl
|
|||||||
public Boolean disable(List<Long> ids) {
|
public Boolean disable(List<Long> ids) {
|
||||||
DataLogTools.disable(UpdateLngBBankDto.class,ids);
|
DataLogTools.disable(UpdateLngBBankDto.class,ids);
|
||||||
for (Long id : ids) {
|
for (Long id : ids) {
|
||||||
String msg = commonCallService.enableBefore(TableNameConstants.LNG_B_TAX, id);
|
String msg = commonCallService.disableBefore(TableNameConstants.LNG_B_TAX, id);
|
||||||
if (StringUtils.isNotBlank(msg)) {
|
if (StringUtils.isNotBlank(msg)) {
|
||||||
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
throw new BusinessException(BusinessCode.ofArgs(ExceptionCommonCode.DB_FUNCTION_EXEC_ERROR, msg));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user