给商品查询增加助记码的查询条件

This commit is contained in:
jishenghua 2024-09-28 01:07:47 +08:00
parent 538a641ef5
commit 33dbe7c3b9
3 changed files with 16 additions and 6 deletions

View File

@ -1337,9 +1337,6 @@ public class MaterialService {
public String getMaterialOtherByParam(String[] mpArr, MaterialVo4Unit m) {
String materialOther = "";
for (int i = 0; i < mpArr.length; i++) {
if (mpArr[i].equals("制造商")) {
materialOther = materialOther + ((m.getMfrs() == null || m.getMfrs().equals("")) ? "" : "(" + m.getMfrs() + ")");
}
if (mpArr[i].equals("自定义1")) {
materialOther = materialOther + ((m.getOtherField1() == null || m.getOtherField1().equals("")) ? "" : "(" + m.getOtherField1() + ")");
}

View File

@ -48,7 +48,7 @@
where 1=1
<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})
and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey} or m.mnemonic like #{bindKey})
</if>
<if test="color != null and color !=''">
<bind name="bindColor" value="'%'+color+'%'"/>
@ -107,7 +107,7 @@
and me.default_flag=1
<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})
and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey} or m.mnemonic like #{bindKey})
</if>
<if test="color != null and color !=''">
<bind name="bindColor" value="'%'+color+'%'"/>
@ -171,6 +171,12 @@
<if test="standard != null">
standard,
</if>
<if test="brand != null">
brand,
</if>
<if test="mnemonic != null">
mnemonic,
</if>
<if test="color != null">
color,
</if>
@ -239,6 +245,12 @@
<if test="standard != null">
#{standard,jdbcType=VARCHAR},
</if>
<if test="brand != null">
#{brand,jdbcType=VARCHAR},
</if>
<if test="mnemonic != null">
#{mnemonic,jdbcType=VARCHAR},
</if>
<if test="color != null">
#{color,jdbcType=VARCHAR},
</if>

View File

@ -18,4 +18,5 @@ yarn-error.log*
*.ntvs*
*.njsproj
*.sln
*.sw*
*.sw*
/package-lock.json