|
@@ -112,9 +112,8 @@
|
|
tbco.id = tbm.produce_company_id
|
|
tbco.id = tbm.produce_company_id
|
|
<where>
|
|
<where>
|
|
tbp.is_delete = 0
|
|
tbp.is_delete = 0
|
|
- AND
|
|
|
|
<if test="userVO.parentId != 0">
|
|
<if test="userVO.parentId != 0">
|
|
- tbm.company_id = #{userVO.companyId}
|
|
|
|
|
|
+ AND tbm.company_id = #{userVO.companyId}
|
|
</if>
|
|
</if>
|
|
<if test="userVO.searchType == 0 and userVO.keyName != '' and userVO.keyName != null">
|
|
<if test="userVO.searchType == 0 and userVO.keyName != '' and userVO.keyName != null">
|
|
AND tbm.model_no like concat('%',#{userVO.keyName},'%')
|
|
AND tbm.model_no like concat('%',#{userVO.keyName},'%')
|
|
@@ -164,7 +163,6 @@
|
|
tbco.id = tbm.produce_company_id
|
|
tbco.id = tbm.produce_company_id
|
|
<where>
|
|
<where>
|
|
tbp.is_delete = 0
|
|
tbp.is_delete = 0
|
|
- AND
|
|
|
|
<if test="userVO.searchType == 0 and userVO.keyName != '' and userVO.keyName != null">
|
|
<if test="userVO.searchType == 0 and userVO.keyName != '' and userVO.keyName != null">
|
|
AND tbm.model_no like concat('%',#{userVO.keyName},'%')
|
|
AND tbm.model_no like concat('%',#{userVO.keyName},'%')
|
|
</if>
|
|
</if>
|