维护产品类型表 jsh_materialcategory
序列号表 jsh_serial_number 用户表 jsh_user 机构表 jsh_organization 机构用户关系表 jsh_orga_user_rel 对应的删除标记
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
select *
|
||||
FROM jsh_materialcategory
|
||||
where 1=1
|
||||
and ifnull(status,'0') !='2'
|
||||
<if test="name != null">
|
||||
and name like '%${name}%'
|
||||
</if>
|
||||
@@ -21,6 +22,7 @@
|
||||
COUNT(id)
|
||||
FROM jsh_materialcategory
|
||||
WHERE 1=1
|
||||
and ifnull(status,'0') !='2'
|
||||
<if test="name != null">
|
||||
and name like '%${name}%'
|
||||
</if>
|
||||
@@ -56,7 +58,7 @@
|
||||
<if test="currentId != null">
|
||||
and id !=#{currentId}
|
||||
</if>
|
||||
and status !='2'
|
||||
and ifnull(status,'0') !='2'
|
||||
order by sort asc
|
||||
</select>
|
||||
|
||||
@@ -65,7 +67,7 @@
|
||||
<include refid="Base_Column_List"/>,#{currentId} as currentId
|
||||
FROM jsh_materialcategory
|
||||
WHERE ParentId = -1
|
||||
and status !='2'
|
||||
and ifnull(status,'0') !='2'
|
||||
<if test="currentId != null">
|
||||
and id !=#{currentId}
|
||||
</if>
|
||||
@@ -103,7 +105,7 @@
|
||||
FROM jsh_materialcategory
|
||||
where 1=1
|
||||
and serial_no=#{serialNo}
|
||||
and status !='2'
|
||||
and ifnull(status,'0') !='2'
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user