|
|
@@ -111,12 +111,12 @@ public class IBPSRepository {
|
|
|
|
|
|
public List<WSDEntity> getWSDEntityList(String CurDate, String Type,String DeviceNo) {
|
|
|
List<WSDEntity> wsdEntityList = jdbcTemplate.query(
|
|
|
- "select id,collectTime,collectID,collectName,shiYanZu,result,deviceNo,type,note,controlFlag from t_dsfwsdjlb where date(collectTime)=? and deviceNo=? order by collectTime desc",
|
|
|
+ "select id_,collecttime,collectID,collectName,shiYanZu,result,deviceNo,type,note,controlFlag from t_dsfwsdjlb where date(collectTime)=? and deviceNo=? order by collectTime desc",
|
|
|
new RowMapper<WSDEntity>() {
|
|
|
@Override
|
|
|
public WSDEntity mapRow(ResultSet rs, int rowNum) throws SQLException {
|
|
|
WSDEntity entity = new WSDEntity();
|
|
|
- entity.setId(rs.getString("id"));
|
|
|
+ entity.setId(rs.getString("id_"));
|
|
|
entity.setCollectTime(rs.getTimestamp("collectTime"));
|
|
|
entity.setCollectID(rs.getString("collectID"));
|
|
|
entity.setCollectName(rs.getString("collectName"));
|
|
|
@@ -142,16 +142,17 @@ public class IBPSRepository {
|
|
|
* @param hasFinished
|
|
|
* @param newJsonStr
|
|
|
*/
|
|
|
- public void saveMonitoredData(String undoMonitorID, String hasFinished, String newJsonStr){
|
|
|
+ public void saveMonitoredData(String undoMonitorID, String hasFinished, String contrlFlag, String newJsonStr){
|
|
|
final String sql = hasFinished.equals("1")
|
|
|
- ? "update t_bxwdjkjlb set lie_biao_shu_ju_=?, update_time_=?, bei_zhu_='自动导入', shi_fou_guo_shen_='已完成' where id_=?"
|
|
|
- : "update t_bxwdjkjlb set lie_biao_shu_ju_=?, update_time_=?, bei_zhu_='自动导入' where id_=?";
|
|
|
+ ? "update t_bxwdjkjlb set lie_biao_shu_ju_=?, update_time_=?, bei_zhu_='自动导入', shi_kong_zhuang_t =?, shi_fou_guo_shen_='已完成' where id_=?"
|
|
|
+ : "update t_bxwdjkjlb set lie_biao_shu_ju_=?, update_time_=?, bei_zhu_='自动导入', shi_kong_zhuang_t =? where id_=?";
|
|
|
jdbcTemplate.update(new PreparedStatementCreator() {
|
|
|
public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {
|
|
|
PreparedStatement prepareStatement = connection.prepareStatement(sql);
|
|
|
prepareStatement.setString(1, newJsonStr);
|
|
|
prepareStatement.setTimestamp(2, new Timestamp(System.currentTimeMillis())); // 设置当前时间
|
|
|
- prepareStatement.setString(3, undoMonitorID);
|
|
|
+ prepareStatement.setString(3, contrlFlag);
|
|
|
+ prepareStatement.setString(4, undoMonitorID);
|
|
|
return prepareStatement;
|
|
|
}
|
|
|
});
|