给商品查询增加助记码的查询条件
This commit is contained in:
parent
538a641ef5
commit
33dbe7c3b9
@ -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() + ")");
|
||||
}
|
||||
|
||||
@ -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>
|
||||
|
||||
1
jshERP-web/.gitignore
vendored
1
jshERP-web/.gitignore
vendored
@ -19,3 +19,4 @@ yarn-error.log*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw*
|
||||
/package-lock.json
|
||||
|
||||
Loading…
Reference in New Issue
Block a user