Browse Source

代码修改

bing 2 years ago
parent
commit
ca05f6aad1

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

@ -1034,7 +1034,7 @@ public class MedicinedeviceService  extends BaseJpaService<Mediicinedevice, Medi
    public boolean updateDeviceCargoStateApp(String cargoIds, String faultState){
        JSONObject result = new JSONObject();
        StringBuilder cargoIdsSql = new StringBuilder("");
        cargoIdsSql.append(" and a.category_code in ('").append(cargoIds.replace(",","','")).append("')");
        cargoIdsSql.append(" '").append(cargoIds.replace(",","','")).append("' ");
        String sql = " update t_mediicinecabinet_inventory set fault_state='"+faultState+"' where id in ("+cargoIdsSql+") ";
        jdbcTemplate.execute(sql);
        return true;