Commit 0fb01e9a authored by litengwei's avatar litengwei

浙江省设备平台右屏接口代码提交

parent 45d2fe6f
...@@ -411,7 +411,7 @@ public class EquipmentDetailServiceImpl extends ServiceImpl<EquipmentDetailMappe ...@@ -411,7 +411,7 @@ public class EquipmentDetailServiceImpl extends ServiceImpl<EquipmentDetailMappe
} }
// 二维码 // 二维码
String equipStatus = equipmentSpecific.getEquipStatus(); String equipStatus = equipmentSpecific.getEquipStatus();
int type = Objects.equals(equipStatus, "0") ? 3 : 1; int type = Objects.equals(equipStatus, "0") ? 3 : Objects.equals(equipStatus, "1") ? 2 : 1;
String qrCodeImage = QRCodeUtil.genQrCodeBase64PngWithWord(equipmentSpecific.getQrCode(), 200, 200, equipmentSpecific.getQrCode(),200, type); String qrCodeImage = QRCodeUtil.genQrCodeBase64PngWithWord(equipmentSpecific.getQrCode(), 200, 200, equipmentSpecific.getQrCode(),200, type);
equipmentDetail.setQrCodeImage(qrCodeImage); equipmentDetail.setQrCodeImage(qrCodeImage);
// 消防系统 // 消防系统
......
...@@ -1965,6 +1965,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM ...@@ -1965,6 +1965,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
map.put("id", e.get("id").toString()); map.put("id", e.get("id").toString());
map.put("code", e.get("code").toString());
map.put("bizOrgCode", e.get("bizOrgCode").toString()); map.put("bizOrgCode", e.get("bizOrgCode").toString());
map.put("bizOrgName", e.get("bizOrgName").toString()); map.put("bizOrgName", e.get("bizOrgName").toString());
jsonObject.put("topic", "equip/scrap/put"); jsonObject.put("topic", "equip/scrap/put");
......
...@@ -480,6 +480,7 @@ ...@@ -480,6 +480,7 @@
wlsd.status, wlsd.status,
wes.position, wes.position,
wes.name, wes.name,
wec.code,
we.expiry_date as weExpiry, we.expiry_date as weExpiry,
wed.area as area, wed.area as area,
wed.production_date as product, wed.production_date as product,
...@@ -488,6 +489,7 @@ ...@@ -488,6 +489,7 @@
from wl_equipment_specific wes from wl_equipment_specific wes
left join wl_equipment_detail wed on wes.equipment_detail_id = wed.id left join wl_equipment_detail wed on wes.equipment_detail_id = wed.id
left join wl_equipment we on wed.equipment_id = we.id left join wl_equipment we on wed.equipment_id = we.id
left join wl_equipment_category wec on wec.id = we.category_id
left join wl_warehouse_structure str on str.id = wes.warehouse_structure_id left join wl_warehouse_structure str on str.id = wes.warehouse_structure_id
left join wl_stock_detail wlsd on wes.id = wlsd.equipment_specific_id left join wl_stock_detail wlsd on wes.id = wlsd.equipment_specific_id
where wed.production_date is not null where wed.production_date is not null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment