|
@@ -36,24 +36,24 @@ public class IBPSRepository {
|
|
|
List<String> existIDList = new ArrayList<String>();
|
|
List<String> existIDList = new ArrayList<String>();
|
|
|
/**
|
|
/**
|
|
|
* 正式启用开启这一段
|
|
* 正式启用开启这一段
|
|
|
- * String existSql = "select id from t_dsfwsdjlb where Date(collectTime) = CURDATE()"
|
|
|
|
|
|
|
+ * String existSql = "select id_ from t_dsfwsdjlb where Date(collectTime) = CURDATE()"
|
|
|
*/
|
|
*/
|
|
|
- String existSql = "select id from t_dsfwsdjlb where Date(collectTime) = CURDATE()";
|
|
|
|
|
|
|
+ String existSql = "select id_ from t_dsfwsdjlb where Date(collectTime) = CURDATE()";
|
|
|
existIDList = jdbcTemplate.queryForList(existSql, String.class);
|
|
existIDList = jdbcTemplate.queryForList(existSql, String.class);
|
|
|
return existIDList;
|
|
return existIDList;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public List<CollectorEntity> getCollectorlist(){
|
|
public List<CollectorEntity> getCollectorlist(){
|
|
|
RowMapper<CollectorEntity> collectorRowMapper = new BeanPropertyRowMapper<>(CollectorEntity.class);
|
|
RowMapper<CollectorEntity> collectorRowMapper = new BeanPropertyRowMapper<>(CollectorEntity.class);
|
|
|
- String collectorSql = "select deviceNo,deviceName,collectID,collectName,type from t_cjqsbglpz where enable='1'";
|
|
|
|
|
|
|
+ String collectorSql = "select deviceNo,deviceName,collectID,collectName,type from t_cjqsbglpzb where enable='1'";
|
|
|
List<CollectorEntity> collectorList = jdbcTemplate.query(collectorSql, collectorRowMapper);
|
|
List<CollectorEntity> collectorList = jdbcTemplate.query(collectorSql, collectorRowMapper);
|
|
|
return collectorList;
|
|
return collectorList;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void save(final WSDEntity wsdEntity){
|
|
public void save(final WSDEntity wsdEntity){
|
|
|
//sql语句
|
|
//sql语句
|
|
|
- final String sql = "insert into t_dsfwsdjlb (id,createTime,collectTime,result,resultHigh,resultLow,deviceNo,deviceName,collectID, "+
|
|
|
|
|
- "collectName,shiYanZu,note,type,area,diDian,room,controlFlag) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ";
|
|
|
|
|
|
|
+ final String sql = "insert into t_dsfwsdjlb (id_,create_time_,collectTime,result,resultHigh,resultLow,deviceNo,deviceName,collectID, "+
|
|
|
|
|
+ "collectName,shiYanZu,note,type,area,di_dian_,room,controlFlag) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ";
|
|
|
if((testmode.equals("1")) || (testmode.equals("2"))){
|
|
if((testmode.equals("1")) || (testmode.equals("2"))){
|
|
|
log.info("pretend to insert: id:{},Res:{},ResH:{},ResL:{},DevName:{},ColID:{},ColName:{},ShiYanZu:{},Type:{},Flag:{}",
|
|
log.info("pretend to insert: id:{},Res:{},ResH:{},ResL:{},DevName:{},ColID:{},ColName:{},ShiYanZu:{},Type:{},Flag:{}",
|
|
|
wsdEntity.getId(),wsdEntity.getResult(),wsdEntity.getResultHigh(),wsdEntity.getResultLow(),wsdEntity.getDeviceName(),
|
|
wsdEntity.getId(),wsdEntity.getResult(),wsdEntity.getResultHigh(),wsdEntity.getResultLow(),wsdEntity.getDeviceName(),
|