GoodsUnitMapper.xml 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.mdd.common.mapper.unit.GoodsUnitMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.mdd.common.entity.unit.GoodsUnit">
  6. <!-- <id column="id" property="id"/>
  7. <result column="create_id" property="createId"/>
  8. <result column="create_time" property="createTime"/>
  9. <result column="update_id" property="updateId"/>
  10. <result column="update_time" property="updateTime"/>
  11. <result column="company_id" property="companyId"/>
  12. <result column="account_id" property="accountId"/>
  13. <result column="account_chart_id" property="accountChartId"/>
  14. <result column="is_add_next_level" property="isAddNextLevel"/>
  15. <result column="is_reallocate" property="isReallocate"/>
  16. <result column="tenant_id" property="tenantId"/>-->
  17. </resultMap>
  18. <select id="listByIds" resultType="com.mdd.common.entity.unit.GoodsUnit">
  19. select id, name, sort, create_time as createTime, update_time as updateTime, delete_time as deleteTime, is_delete as isDelete
  20. from la_goods_unit
  21. <where>
  22. <if test="ids != null and ids.size() != 0">
  23. id in
  24. <foreach collection="ids" open="(" close=")" separator="," item="id">
  25. #{id}
  26. </foreach>
  27. </if>
  28. </where>
  29. </select>
  30. </mapper>