| 12345678910111213141516171819 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="platform.modules.company.dao.ProjectMaterialDao">
- <select id="findMaterialTemplateByType" resultType="platform.modules.company.entity.ProjectMaterial">
- SELECT
- t.id as template_id,
- t.name as content
- FROM template t WHERE t.item_id = #{type} and t.del_flag = 0 and t.is_active = 1 order by create_time
- </select>
- <select id="findByContentAndApplyId" resultType="platform.modules.company.entity.ProjectMaterial">
- select * from project_material where content = #{content} AND apply_id = #{applyId} and del_flag = 0
- </select>
- <delete id="deleteByApplyId">
- DELETE FROM project_material WHERE apply_id = #{id}
- </delete>
- </mapper>
|