diff --git a/jsowell-admin/src/test/java/SpringBootTestController.java b/jsowell-admin/src/test/java/SpringBootTestController.java index 4fd3a2ef6..527826914 100644 --- a/jsowell-admin/src/test/java/SpringBootTestController.java +++ b/jsowell-admin/src/test/java/SpringBootTestController.java @@ -306,10 +306,20 @@ public class SpringBootTestController { @DubboReference private JcppService jcppService; + @Autowired + private ThirdPartyStationRelationService thirdPartyStationRelationService; + ThreadFactory threadFactory = JsowellThreadFactory.forName("test-thread-factory"); private final ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(10, JsowellThreadFactory.forName("test-thread-factory")); + @Test + public void deleteThirdPartyStationRelationTest() { + ThirdPartyStationRelationDTO dto = new ThirdPartyStationRelationDTO(); + dto.setId("804"); + thirdPartyStationRelationService.deleteThirdPartyStationRelation(dto.getId()); + } + @Test public void queryAdapayAccountBalanceTest() throws BaseAdaPayException { AdapayAccountBalanceVO adapayAccountBalanceVO = adapayService.queryAdapayAccountBalance("459"); diff --git a/jsowell-pile/src/main/resources/mapper/pile/ThirdPartyStationRelationMapper.xml b/jsowell-pile/src/main/resources/mapper/pile/ThirdPartyStationRelationMapper.xml index ac8b994be..2ffe44545 100644 --- a/jsowell-pile/src/main/resources/mapper/pile/ThirdPartyStationRelationMapper.xml +++ b/jsowell-pile/src/main/resources/mapper/pile/ThirdPartyStationRelationMapper.xml @@ -134,7 +134,7 @@ del_flag = #{delFlag}, - where station_id = #{stationId,jdbcType=BIGINT} + where id = #{id}