Bladeren bron

临时需求

bing 2 jaren geleden
bovenliggende
commit
f4ad510d22

+ 6 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/a3service/MedicinedeviceService.java

@ -1035,7 +1035,12 @@ public class MedicinedeviceService  extends BaseJpaService<Mediicinedevice, Medi
        JSONObject result = new JSONObject();
        StringBuilder cargoIdsSql = new StringBuilder("");
        cargoIdsSql.append(" '").append(cargoIds.replace(",","','")).append("' ");
        String sql = " update t_mediicinecabinet_inventory set fault_state='"+faultState+"' where id in ("+cargoIdsSql+") ";
        //货道故障默认关闭 货道正常默认开启
        // 1故障,0正常
        // 1开启 0关闭
        String sql = " update t_mediicinecabinet_inventory " +
                "set fault_state='"+faultState+"',cargo_state ='"+("0".equals(faultState)?1:0)+"'  " +
                "where id in ("+cargoIdsSql+") ";
        jdbcTemplate.execute(sql);
        return true;
    }