| | |
| | | import com.yc.open.mutual.schedule.GateEntity; |
| | | import com.yc.service.build.type.T_22_Ifc; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | if (task != null && task.getResult() == 1) { |
| | | String table = t22Ifc.getProcName(gateEntity.getFormid() + ""); |
| | | dbId = maintainService.selectCltCodeDbId(table, gateEntity.getDocCode()); |
| | | if ("148".equals(dbId) || "549".equals(dbId)) { |
| | | throw new Exception("此客户编号不在维护费用范围内"); |
| | | // if ("148".equals(dbId) || "549".equals(dbId)) { |
| | | // throw new Exception("此客户编号不在维护费用范围内"); |
| | | // } |
| | | DataSourceEntity data = MultiDataSource.getDataSourceMap(dbId); |
| | | if(data.getMaintenanceFeeToDbId()==null){ |
| | | throw new ApplicationException("请为【"+data.getSystemDescribe()+"】系统录入【收取维护费所属公司】(操作路径:快捷->维护系统设置),然后重试此操作。"); |
| | | } |
| | | DataSourceEntity dataSourceEntity=MultiDataSource.getDataSourceMap(data.getMaintenanceFeeToDbId()+""); |
| | | if(StringUtils.isBlank(dataSourceEntity.getMaintenanceFeeAcctCode())){ |
| | | throw new ApplicationException("请为【"+dataSourceEntity.getSystemDescribe()+"】数据源录入【收取维护费账户】,然后重试此操作。"); |
| | | } |
| | | |
| | | } |
| | | } catch (Exception e) { |
| | | throw e; |