|
|
|
@ -12,6 +12,7 @@ import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
@Service("1011") |
|
|
|
@ -25,9 +26,10 @@ public class Rules1011ServiceImpl implements RulesService { |
|
|
|
|
// 购方地址电话校验
|
|
|
|
|
DynamicContextHolder.push(DbConstant.BASICS_READ); |
|
|
|
|
if (StringUtils.isNotBlank(recordInvoice.getGfTaxNo())) { |
|
|
|
|
SysDeptEntity sysDeptEntity = |
|
|
|
|
sysDeptDao.selectOne(new QueryWrapper<SysDeptEntity>().eq("taxno", recordInvoice.getGfTaxNo()).eq("org_type", "5")); |
|
|
|
|
if (sysDeptEntity != null) { |
|
|
|
|
List<SysDeptEntity> sysDeptEntityList = |
|
|
|
|
sysDeptDao.selectList(new QueryWrapper<SysDeptEntity>().eq("taxno", recordInvoice.getGfTaxNo()).eq("org_type", "5")); |
|
|
|
|
if (sysDeptEntityList != null && sysDeptEntityList.size() > 0) { |
|
|
|
|
SysDeptEntity sysDeptEntity = sysDeptEntityList.get(0); |
|
|
|
|
String phone = sysDeptEntity.getPhone(); |
|
|
|
|
String address = sysDeptEntity.getAddress(); |
|
|
|
|
if (StringUtils.isBlank(phone) || StringUtils.isBlank(address)) { |
|
|
|
|