去除外键之产品类型表jsh_materialcategory相关修改
This commit is contained in:
@@ -107,5 +107,17 @@
|
||||
and serial_no=#{serialNo}
|
||||
and ifnull(status,'0') !='2'
|
||||
</select>
|
||||
<select id="getMaterialCategoryListByCategoryIds" resultMap="com.jsh.erp.datasource.mappers.MaterialCategoryMapper.BaseResultMap">
|
||||
select
|
||||
<include refid="com.jsh.erp.datasource.mappers.MaterialCategoryMapper.Base_Column_List" />
|
||||
from jsh_materialcategory
|
||||
where 1=1
|
||||
and parentId in (
|
||||
<foreach collection="parentIds" item="parentId" separator=",">
|
||||
#{parentId}
|
||||
</foreach>
|
||||
)
|
||||
and ifnull(status,'0') !='2'
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -149,6 +149,18 @@
|
||||
</foreach>
|
||||
)
|
||||
</update>
|
||||
<select id="getMaterialListByCategoryIds" resultMap="com.jsh.erp.datasource.mappers.MaterialMapper.BaseResultMap">
|
||||
select
|
||||
<include refid="com.jsh.erp.datasource.mappers.MaterialMapper.Base_Column_List" />
|
||||
from jsh_material
|
||||
where 1=1
|
||||
and categoryId in (
|
||||
<foreach collection="categoryIds" item="categoryId" separator=",">
|
||||
#{categoryId}
|
||||
</foreach>
|
||||
)
|
||||
and ifnull(delete_Flag,'0') !='1'
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user