Commit b7c3de2cfa024496567e3d042234c18313e85985

Authored by xqs
1 parent dd416141

首页sql报错

src/main/java/com/huaheng/pc/system/user/controller/IndexController.java
... ... @@ -100,8 +100,8 @@ public class IndexController extends BaseController
100 100 " UNION \n" +
101 101 "SELECT COUNT(*) 'a' FROM shipment_header WHERE DATEDIFF(NOW(), created)=0 " + condition +
102 102 ") t";
103   - String receiptTotal = "SELECT IFNULL(SUM(d.qty),0) 'total' FROM receipt_container_detail d join receipt_container_header h on d.receiptContainerId = h.id WHERE DATEDIFF(NOW(), h.created) = 0 AND d.'status' > 19 AND h.warehouseCode = '"+ShiroUtils.getWarehouseCode()+"' ;";
104   - String shipmentTotal = "SELECT IFNULL(SUM(d.qty),0) 'total' from shipment_container_detail d JOIN shipment_container_header h on d.shippingContainerId = h.id WHERE DATEDIFF(NOW(), h.created) = 0 AND h.'status' > 19 AND h.warehouseCode = '"+ShiroUtils.getWarehouseCode()+"' ;";
  103 + String receiptTotal = "SELECT IFNULL(SUM(d.qty),0) 'total' FROM receipt_container_detail d join receipt_container_header h on d.receiptContainerId = h.id WHERE DATEDIFF(NOW(), h.created) = 0 AND d.status > 19 AND h.warehouseCode = '"+ShiroUtils.getWarehouseCode()+"' ;";
  104 + String shipmentTotal = "SELECT IFNULL(SUM(d.qty),0) 'total' from shipment_container_detail d JOIN shipment_container_header h on d.shippingContainerId = h.id WHERE DATEDIFF(NOW(), h.created) = 0 AND h.status > 19 AND h.warehouseCode = '"+ShiroUtils.getWarehouseCode()+"' ;";
105 105 String inventoryTotal = "SELECT IFNULL(SUM(totalQty),0) 'total' from inventory_header where 1=1 " + condition;
106 106 String materialCount = "SELECT count(DISTINCT materialSkuQty) 'total' from inventory_header WHERE 1=1" + condition;
107 107 String taskUncompletedTotal = "SELECT COUNT(*) 'total' from task_detail WHERE enable < 40 " + condition;
... ...