Ver código fonte

补充提交

xuezizhuo 1 ano atrás
pai
commit
caf400144b

+ 2 - 2
zkqy-custom-business/src/main/resources/mapper/business/MaterialInventoryMapper.xml

@@ -117,9 +117,9 @@
                mi.del_flag               as del_flag,
                mi.task_process_key       as task_process_key,
                mi.task_node_key          as task_node_key
-        from huaqian.material_inventory as mi
+        from {DBNAME}.material_inventory as mi
                  left join
-             huaqian.materiel as m
+             {DBNAME}.materiel as m
              on (m.materiel_code=mi.material_code)
         where m.materiel_code=#{materialCode}
           and m.specification_model=#{specifications}

+ 3 - 3
zkqy-custom-business/src/main/resources/mapper/business/SaleProductsMapper.xml

@@ -104,7 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         Inner Join {DBNAME}.customer as cs ON so.sale_custom_no= cs.custom_no
         inner join   {DBNAME}.materiel as m on sp.colour_number= m.materiel_code
         inner join   {DBNAME}.production as pd on sp.product_no= pd.product_no
-        left  join  `huaqian`.production_line as pl on sp.production_line_no=pl.id
+        left  join  {DBNAME}.production_line as pl on sp.production_line_no=pl.id
         where sp.del_flag = '0' and cs.del_flag = '0' and m.del_flag = '0' and so.order_type=2
         <if test="saleProductNo != null  and saleProductNo != ''"> and sale_product_no = #{saleProductNo}</if>
             <if test="saleOrderNo != null  and saleOrderNo != ''"> and sale_order_no = #{saleOrderNo}</if>
@@ -137,7 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         Inner Join {DBNAME}.customer as cs ON so.sale_custom_no= cs.custom_no
         inner join   {DBNAME}.materiel as m on sp.colour_number= m.materiel_code
         inner join   {DBNAME}.production as pd on sp.product_no= pd.product_no
-        left  join  `huaqian`.production_line as pl on sp.production_line_no=pl.id
+        left  join  {DBNAME}.production_line as pl on sp.production_line_no=pl.id
         where sp.del_flag = '0' and cs.del_flag = '0' and m.del_flag = '0' and so.order_type=2
         <if test="saleProductNo != null  and saleProductNo != ''"> and sale_product_no = #{saleProductNo}</if>
         <if test="saleOrderNo != null  and saleOrderNo != ''"> and sale_order_no = #{saleOrderNo}</if>
@@ -428,7 +428,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         Inner Join {DBNAME}.customer as cs ON so.sale_custom_no= cs.custom_no
         inner join   {DBNAME}.materiel as m on sp.colour_number= m.materiel_code
         inner join   {DBNAME}.production as pd on sp.product_no= pd.product_no
-        left  join  `huaqian`.production_line as pl on sp.production_line_no=pl.id
+        left  join  {DBNAME}.production_line as pl on sp.production_line_no=pl.id
         where sp.del_flag = '0' and cs.del_flag = '0' and m.del_flag = '0' and sp.status!=6 and so.order_type=2
         <if test="saleProductNo != null  and saleProductNo != ''"> and sale_product_no = #{saleProductNo}</if>
         <if test="saleOrderNo != null  and saleOrderNo != ''"> and sale_order_no = #{saleOrderNo}</if>