|
@ -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;
|