|
|
@ -4,6 +4,8 @@ import cn.hutool.core.util.ObjectUtil; |
|
|
|
import com.dxhy.base.file.common.ExcelReadContext; |
|
|
|
import com.dxhy.base.file.common.ExcelReadContext; |
|
|
|
import com.dxhy.base.file.exception.ExcelReadException; |
|
|
|
import com.dxhy.base.file.exception.ExcelReadException; |
|
|
|
import com.dxhy.base.file.handle.ExcelReadHandle; |
|
|
|
import com.dxhy.base.file.handle.ExcelReadHandle; |
|
|
|
|
|
|
|
import com.dxhy.order.baseservice.module.taxclass.model.TaxClassCodeEntity; |
|
|
|
|
|
|
|
import com.dxhy.order.baseservice.module.taxclass.service.TaxClassCodeService; |
|
|
|
import com.dxhy.order.consumer.modules.taxcodematch.emum.SdenergyTaxCodeMatchEnum; |
|
|
|
import com.dxhy.order.consumer.modules.taxcodematch.emum.SdenergyTaxCodeMatchEnum; |
|
|
|
import com.dxhy.order.consumer.modules.taxcodematch.entity.SdenergyTaxCodeMatch; |
|
|
|
import com.dxhy.order.consumer.modules.taxcodematch.entity.SdenergyTaxCodeMatch; |
|
|
|
import com.dxhy.order.consumer.modules.taxcodematch.model.dto.SdenergyTaxCodeMatchDTO; |
|
|
|
import com.dxhy.order.consumer.modules.taxcodematch.model.dto.SdenergyTaxCodeMatchDTO; |
|
|
@ -46,6 +48,8 @@ public class SdenergyTaxCodeMatchController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private SdenergyTaxCodeMatchService sdenergyTaxCodeMatchService; |
|
|
|
private SdenergyTaxCodeMatchService sdenergyTaxCodeMatchService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private TaxClassCodeService taxClassCodeService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 通过主键查询单条数据 |
|
|
|
* 通过主键查询单条数据 |
|
|
@ -163,11 +167,14 @@ public class SdenergyTaxCodeMatchController { |
|
|
|
if(StringUtils.isBlank(ssflbm)){ |
|
|
|
if(StringUtils.isBlank(ssflbm)){ |
|
|
|
errorMsgList.add("第" + resultIndex + "行,税收分类编码不能为空"); |
|
|
|
errorMsgList.add("第" + resultIndex + "行,税收分类编码不能为空"); |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
}else { |
|
|
|
String ssflmc = taxCodeMatch.getSsflmc(); |
|
|
|
TaxClassCodeEntity entity = taxClassCodeService.queryTaxClassCodeEntityBySpbm(ssflbm); |
|
|
|
if(StringUtils.isBlank(ssflmc)){ |
|
|
|
if(entity != null){ |
|
|
|
errorMsgList.add("第" + resultIndex + "行,税收分类名称不能为空"); |
|
|
|
taxCodeMatch.setSsflmc(entity.getSpjc()); |
|
|
|
continue; |
|
|
|
}else { |
|
|
|
|
|
|
|
errorMsgList.add("第" + resultIndex + "行,税收分类编码有误"); |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (ObjectUtil.isNotEmpty(errorMsgList)) { |
|
|
|
if (ObjectUtil.isNotEmpty(errorMsgList)) { |
|
|
|