|
@@ -107,8 +107,8 @@
|
|
|
</if>
|
|
|
<if test="materialParam != null and materialParam !=''">
|
|
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
|
|
- and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
- or m.color like #{bindKey} or m.mfrs like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
+ and (me.bar_code like #{bindKey} or me.batch_number like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
+ or m.color like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey})
|
|
|
</if>
|
|
|
<if test="organId != null">
|
|
@@ -197,7 +197,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="findInOutDetail" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultWithInfoExMap">
|
|
|
- select dh.number,me.bar_code barCode, m.name mname,m.model,m.standard,m.color,m.brand,m.mfrs,di.unit_price unitPrice,di.material_unit as mUnit, di.sku,
|
|
|
+ select dh.number,me.bar_code barCode, m.name mname,m.model,m.standard,m.color,m.brand,di.unit_price unitPrice,di.material_unit as mUnit, di.sku,
|
|
|
di.oper_number operNumber,di.all_price allPrice, ifnull(di.tax_rate,0) taxRate, ifnull(di.tax_money,0) taxMoney, ifnull(di.tax_last_money,0) taxLastMoney,
|
|
|
s.supplier sname,d.dname dname, date_format(dh.oper_time, '%Y-%m-%d') operTime, concat(dh.sub_type,dh.type) as newType,
|
|
|
concat_ws(' ',dh.remark,di.remark) as newRemark
|
|
@@ -252,8 +252,8 @@
|
|
|
</if>
|
|
|
<if test="materialParam != null and materialParam !=''">
|
|
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
|
|
- and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
- or m.color like #{bindKey} or m.mfrs like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
+ and (me.bar_code like #{bindKey} or me.batch_number like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
+ or m.color like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey})
|
|
|
</if>
|
|
|
<if test="creator != null">
|
|
@@ -329,8 +329,8 @@
|
|
|
</if>
|
|
|
<if test="materialParam != null and materialParam !=''">
|
|
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
|
|
- and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
- or m.color like #{bindKey} or m.mfrs like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
+ and (me.bar_code like #{bindKey} or me.batch_number like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
+ or m.color like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey})
|
|
|
</if>
|
|
|
<if test="creator != null">
|
|
@@ -397,8 +397,8 @@
|
|
|
</if>
|
|
|
<if test="materialParam != null and materialParam !=''">
|
|
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
|
|
- and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
- or m.color like #{bindKey} or m.mfrs like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
+ and (me.bar_code like #{bindKey} or me.batch_number like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
+ or m.color like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey})
|
|
|
</if>
|
|
|
<if test="creator != null">
|
|
@@ -413,7 +413,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="findInOutMaterialCount" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultInOutMaterialCount">
|
|
|
- select di.material_id materialId, me.bar_code barCode, m.name mName,m.model,m.standard,m.color,m.brand,m.mfrs,
|
|
|
+ select di.material_id materialId, me.bar_code barCode, m.name mName,m.model,m.standard,m.color,m.brand,
|
|
|
mc.name categoryName,concat_ws('', m.unit, u.basic_unit) materialUnit,
|
|
|
sum(di.basic_number) numSum,
|
|
|
sum(di.all_price) priceSum
|
|
@@ -465,8 +465,8 @@
|
|
|
</if>
|
|
|
<if test="materialParam != null and materialParam !=''">
|
|
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
|
|
- and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
- or m.color like #{bindKey} or m.mfrs like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
+ and (me.bar_code like #{bindKey} or me.batch_number like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
+ or m.color like #{bindKey} like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey})
|
|
|
</if>
|
|
|
<if test="categoryList.size()>0">
|
|
@@ -482,7 +482,7 @@
|
|
|
and (dh.sub_type!='采购' and dh.sub_type!='采购退货' and dh.sub_type!='销售' and dh.sub_type!='销售退货')
|
|
|
</if>
|
|
|
and ifnull(dh.delete_flag,'0') !='1'
|
|
|
- group by di.material_id, me.bar_code, m.name,m.model,m.standard,m.color,m.brand,m.mfrs,
|
|
|
+ group by di.material_id, me.bar_code, m.name,m.model,m.standard,m.color,m.brand,
|
|
|
mc.name, m.unit, u.basic_unit
|
|
|
<if test="column == 'createTime'">
|
|
|
order by materialId desc
|
|
@@ -543,8 +543,8 @@
|
|
|
</if>
|
|
|
<if test="materialParam != null and materialParam !=''">
|
|
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
|
|
- and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
- or m.color like #{bindKey} or m.mfrs like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
+ and (me.bar_code like #{bindKey} or me.batch_number like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
+ or m.color like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey})
|
|
|
</if>
|
|
|
<if test="categoryList.size()>0">
|
|
@@ -613,8 +613,8 @@
|
|
|
</if>
|
|
|
<if test="materialParam != null and materialParam !=''">
|
|
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
|
|
- and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
- or m.color like #{bindKey} or m.mfrs like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
+ and (me.bar_code like #{bindKey} or me.batch_number like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
+ or m.color like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey})
|
|
|
</if>
|
|
|
<if test="categoryList.size()>0">
|
|
@@ -633,7 +633,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="findAllocationDetail" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultWithInfoExMap">
|
|
|
- select dh.number,me.bar_code barCode, m.name mname,m.model,m.standard,m.color,m.brand,m.mfrs,di.unit_price unitPrice,di.material_unit as mUnit,
|
|
|
+ select dh.number,me.bar_code barCode, m.name mname,m.model,m.standard,m.color,m.brand,di.unit_price unitPrice,di.material_unit as mUnit,
|
|
|
di.oper_number operNumber,di.all_price allPrice,sname, d.dName dname,date_format(dh.oper_time, '%Y-%m-%d') operTime,
|
|
|
concat(dh.sub_type,dh.type) as newType, concat_ws(' ',dh.remark,di.remark) as newRemark
|
|
|
from jsh_depot_head dh
|
|
@@ -681,8 +681,8 @@
|
|
|
</if>
|
|
|
<if test="materialParam != null and materialParam !=''">
|
|
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
|
|
- and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
- or m.color like #{bindKey} or m.mfrs like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
+ and (me.bar_code like #{bindKey} or me.batch_number like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
+ or m.color like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey} or dh.remark like #{bindKey})
|
|
|
</if>
|
|
|
<if test="remark != null and remark !=''">
|
|
@@ -746,8 +746,8 @@
|
|
|
</if>
|
|
|
<if test="materialParam != null and materialParam !=''">
|
|
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
|
|
- and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
- or m.color like #{bindKey} or m.mfrs like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
+ and (me.bar_code like #{bindKey} or me.batch_number like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
+ or m.color like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey} or dh.remark like #{bindKey})
|
|
|
</if>
|
|
|
<if test="remark != null and remark !=''">
|
|
@@ -804,8 +804,8 @@
|
|
|
</if>
|
|
|
<if test="materialParam != null and materialParam !=''">
|
|
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
|
|
- and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
- or m.color like #{bindKey} or m.mfrs like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
+ and (me.bar_code like #{bindKey} or me.batch_number like #{bindKey} or m.name like #{bindKey} or m.mnemonic like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
+ or m.color like #{bindKey} or m.brand like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey} or dh.remark like #{bindKey})
|
|
|
</if>
|
|
|
<if test="remark != null and remark !=''">
|
|
@@ -1321,9 +1321,9 @@
|
|
|
</if>
|
|
|
<if test="materialParam != null and materialParam !=''">
|
|
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
|
|
- and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like
|
|
|
+ and (me.bar_code like #{bindKey} or me.batch_number like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like
|
|
|
#{bindKey}
|
|
|
- or m.color like #{bindKey} or m.mfrs like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
+ or m.color like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey})
|
|
|
</if>
|
|
|
<if test="depotArray != null and depotArray !=''">
|
|
@@ -1389,8 +1389,8 @@
|
|
|
</if>
|
|
|
<if test="materialParam != null and materialParam !=''">
|
|
|
<bind name="bindKey" value="'%'+materialParam+'%'"/>
|
|
|
- and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
- or m.color like #{bindKey} or m.mfrs like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
+ and (me.bar_code like #{bindKey} or me.batch_number like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}
|
|
|
+ or m.color like #{bindKey} or m.other_field1 like #{bindKey}
|
|
|
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey})
|
|
|
</if>
|
|
|
<if test="depotArray != null and depotArray !=''">
|