yangys
2025-08-18 8ffacfb6664009006fe5c6ade939f73c211c3648
blade-service/blade-qinzhesync/src/main/java/org/springblade/qinzhesync/service/QinzheSyncService.java
@@ -14,6 +14,7 @@
import org.springframework.jdbc.core.ResultSetExtractor;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
@@ -49,6 +50,7 @@
    */
   static final int BATCH_SIZE = 4;//5000;
   @Transactional
   public void syncData(){
      /*
      Map mmdData = mdmJdbcTemplate.queryForMap("select count(*) n from mdm_machine");
@@ -57,12 +59,8 @@
      log.info("qingzhe:{}",qinzheData);
      */
      cleanLocalTable();
      cleanQinzheDataInDivision();
      //cleanQinzheDataInDivision();
      saveQinzheFgb();
   }
@@ -108,7 +106,7 @@
      insertToLocalTable(fgbList);
      updateProduceDivision(fgbList);
      //updateProduceDivision(fgbList);
   }
   /**
    * //qingzhe  - mdm
@@ -126,16 +124,9 @@
         }
         Long zuzhangId = getUserIdByName(fgb.getZggy());
   /*
         ProduceDivision pd = new ProduceDivision();
         pd.setDrawingNo(fgb.getLjh());
         pd.setTeamLeaderId(zuzhangId);
         pd.setUpdateUser(-1L);
         pd.setCreateUser(-1L);
   */
         //Long id = ;
         mdmJdbcTemplate.update(sql, new Object[]{idGen.nextId(),fgb.getLjh(),zuzhangId});
         //produceDivisionService.save(pd);
      }
   }