| | |
| | | import com.by4cloud.platformx.business.dto.BankStatementUpdateDTO; |
| | | import com.by4cloud.platformx.business.dto.BipQueryDTO; |
| | | import com.by4cloud.platformx.business.dto.PaymentConfirmAddDTO; |
| | | import com.by4cloud.platformx.business.dto.SyncPaymentRecepitDTO; |
| | | import com.by4cloud.platformx.business.entity.*; |
| | | import com.by4cloud.platformx.business.mapper.*; |
| | | import com.by4cloud.platformx.business.service.BankStatementService; |
| | |
| | | |
| | | @Value("${erp.sgb}") |
| | | private String sgbErp; |
| | | |
| | | @Value("${dept.smj}") |
| | | private String smj; |
| | | |
| | | @Value("${dept.smjsc}") |
| | | private String smjsc; |
| | | |
| | | @Value("${dept.smjzt}") |
| | | private String smjzt; |
| | | |
| | | @Value("${dept.smjhw}") |
| | | private String smjhw; |
| | | |
| | | @Value("${dept.jxc}") |
| | | private String jxc; |
| | | |
| | | @Value("${dept.tfgs}") |
| | | private String tfgs; |
| | | |
| | | @Value("${dept.ymj}") |
| | | private String ymj; |
| | | |
| | | @Override |
| | | public R edit(BankStatementUpdateDTO updateDTO) { |
| | |
| | | |
| | | return pushSaveCollection(statement, item); |
| | | } |
| | | |
| | | @Override |
| | | public R pullBankData(SyncPaymentRecepitDTO queryDTO) { |
| | | if (StrUtil.isBlank(queryDTO.getStartDate())||StrUtil.isBlank(queryDTO.getEndDate())){ |
| | | return R.failed("请选择交易时间范围"); |
| | | } |
| | | if (StrUtil.equals(SecurityUtils.getUser().getCompId() + "", smj) || |
| | | StrUtil.equals(SecurityUtils.getUser().getCompId() + "", smjhw)) { |
| | | queryDTO.setBipCode("10860"); |
| | | } |
| | | if ( StrUtil.equals(SecurityUtils.getUser().getCompId() + "", smjsc) ) { |
| | | queryDTO.setBipCode("1086005"); |
| | | } |
| | | if (StrUtil.equals(SecurityUtils.getUser().getCompId() + "", smjzt)) { |
| | | queryDTO.setBipCode("10860"); |
| | | } |
| | | if (StrUtil.equals(SecurityUtils.getUser().getCompId() + "", sgb)) { |
| | | queryDTO.setBipCode("10802 "); |
| | | } |
| | | if (StrUtil.equals(SecurityUtils.getUser().getCompId() + "", ymj)) { |
| | | queryDTO.setBipCode("10668"); |
| | | } |
| | | if (StrUtil.equals(SecurityUtils.getUser().getCompId() + "", tfgs)) { |
| | | queryDTO.setBipCode("10861"); |
| | | } |
| | | if (StrUtil.equals(SecurityUtils.getUser().getCompId() + "", jxc)) { |
| | | queryDTO.setBipCode("10801"); |
| | | } |
| | | return paymentConfirmService.syncPaymentRecepit(queryDTO); |
| | | } |
| | | } |