Ver código fonte

fix(交行):修改sql

liutao 1 mês atrás
pai
commit
2b39bca409

+ 7 - 0
src/main/java/com/sunxung/factoring/mapper/bocom/register/BocomBasicInfoMapper.java

@@ -55,4 +55,11 @@ public interface BocomBasicInfoMapper extends BaseMapper<BocomBasicInfo> {
      * @param bocomBasicInfo
      */
     void save(BocomBasicInfo bocomBasicInfo);
+
+    /**
+     * 查询所有
+     * @return
+     */
+    List<BocomBasicInfo> findAll();
+
 }

+ 1 - 1
src/main/java/com/sunxung/factoring/service/bocom/register/impl/BocomBasicInfoServiceImpl.java

@@ -1969,7 +1969,7 @@ public class BocomBasicInfoServiceImpl extends ServiceImpl<BocomBasicInfoMapper,
 
     @Override
     public void batchReSearch() {
-        List<BocomBasicInfo> list = list();
+        List<BocomBasicInfo> list = this.baseMapper.findAll();
         if (CollectionUtil.isNotEmpty(list)) {
             list.forEach(basic -> {
                 research(basic.getId());

+ 3 - 0
src/main/resources/mapper/bocom/register/BocomBasicInfoMapper.xml

@@ -50,4 +50,7 @@
     <select id="findUserData" resultType="com.sunxung.factoring.entity.bocom.register.BocomBasicInfo">
         select * from bocom_basic_info where user_create = #{value}
     </select>
+    <select id="findAll" resultType="com.sunxung.factoring.entity.bocom.register.BocomBasicInfo">
+        select * from bocom_basic_info
+    </select>
 </mapper>