|
@ -153,8 +153,10 @@ public class MedicinedeviceService extends BaseJpaService<Mediicinedevice, Medi
|
|
inventory.setCargoCapacity(mediicinedevice.getCargoCapacity());
|
|
inventory.setCargoCapacity(mediicinedevice.getCargoCapacity());
|
|
//默认下架
|
|
//默认下架
|
|
inventory.setShelfStatus("0");
|
|
inventory.setShelfStatus("0");
|
|
//默认货道关闭
|
|
|
|
|
|
//默认货道关闭(0)---->后续更改为开启的(1)
|
|
inventory.setCargoState("1");
|
|
inventory.setCargoState("1");
|
|
|
|
//设备初始化库存,默认货道是正常的
|
|
|
|
inventory.setFaultState("0");
|
|
inventoryDao.save(inventory);
|
|
inventoryDao.save(inventory);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -3214,7 +3216,9 @@ public class MedicinedeviceService extends BaseJpaService<Mediicinedevice, Medi
|
|
"t.price AS price,\n" +
|
|
"t.price AS price,\n" +
|
|
"t.pic AS pic,\n" +
|
|
"t.pic AS pic,\n" +
|
|
"t.equ_num AS equNum,\n" +
|
|
"t.equ_num AS equNum,\n" +
|
|
"t.`merge` AS `merge`" +
|
|
|
|
|
|
"t.`merge` AS `merge`,\n" +
|
|
|
|
"t.cargo_state AS cargoState,\n" +
|
|
|
|
"t.fault_state AS faultState\n" +
|
|
"FROM\n" +
|
|
"FROM\n" +
|
|
"\tt_mediicinecabinet_inventory t\n" +
|
|
"\tt_mediicinecabinet_inventory t\n" +
|
|
"WHERE\n" +
|
|
"WHERE\n" +
|
|
@ -3322,7 +3326,8 @@ public class MedicinedeviceService extends BaseJpaService<Mediicinedevice, Medi
|
|
"t.pic AS pic,\n" +
|
|
"t.pic AS pic,\n" +
|
|
"t.equ_num AS equNum,\n" +
|
|
"t.equ_num AS equNum,\n" +
|
|
"t.`merge` AS `merge`,\n" +
|
|
"t.`merge` AS `merge`,\n" +
|
|
"t.cargo_state AS cargoState\n" +
|
|
|
|
|
|
"t.cargo_state AS cargoState,\n" +
|
|
|
|
"t.fault_state AS faultState\n" +
|
|
"FROM\n" +
|
|
"FROM\n" +
|
|
"\tt_mediicinecabinet_inventory t\n" +
|
|
"\tt_mediicinecabinet_inventory t\n" +
|
|
"WHERE\n" +
|
|
"WHERE\n" +
|
|
@ -3888,7 +3893,18 @@ public class MedicinedeviceService extends BaseJpaService<Mediicinedevice, Medi
|
|
if (inventory == null) {
|
|
if (inventory == null) {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
inventory.setCargoState(state);
|
|
|
|
|
|
//故障
|
|
|
|
if ("1".equals(state)) {
|
|
|
|
if ("1".equals(inventory.getCargoState())) {
|
|
|
|
//开启--->关闭
|
|
|
|
inventory.setCargoState("0");
|
|
|
|
}
|
|
|
|
inventory.setFaultState("1");
|
|
|
|
}
|
|
|
|
//正常
|
|
|
|
if ("0".equals(state)) {
|
|
|
|
inventory.setFaultState("0");
|
|
|
|
}
|
|
inventoryDao.save(inventory);
|
|
inventoryDao.save(inventory);
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|