| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.basic.mapper.StandardProductListMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.basic.pojo.StandardProductList"> |
| | | <id property="id" column="id" jdbcType="INTEGER"/> |
| | | <result property="inspectionItem" column="inspection_item" jdbcType="VARCHAR"/> |
| | | <result property="inspectionItemSubclass" column="inspection_item_subclass" jdbcType="VARCHAR"/> |
| | |
| | | and standard_method_list_id = #{methodId} |
| | | and sort between #{endIndex} and #{beginIndex} - 1 |
| | | </update> |
| | | <select id="standardProductListIPage" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | <select id="standardProductListIPage" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | select spl.* from standard_product_list spl |
| | | left join product p on spl.sample = p.name |
| | | where standard_method_list_id = #{id} |
| | |
| | | order by p.id |
| | | group by spl.id |
| | | </select> |
| | | <select id="getOne" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | <select id="getOne" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | select * from standard_product_list |
| | | where standard_method_list_id = #{standardMethodListId} |
| | | and inspection_item = #{inspectionItem} |
| | |
| | | and inspection_item_class = #{inspectionItemClass} |
| | | </if> |
| | | </select> |
| | | <select id="selectDetail" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | <select id="selectDetail" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | select * from standard_product_list |
| | | where standard_method_list_id = #{standardMethodListId} |
| | | and state =#{state} |
| | |
| | | WHEN man_hour_group REGEXP '[0-9]+' THEN CAST(SUBSTRING(man_hour_group, 2)AS UNSIGNED) END -- 提取字母后面的数字部分 |
| | | ,id asc |
| | | </select> |
| | | <select id="selectDetail2" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | <select id="selectDetail2" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | select * from standard_product_list |
| | | where standard_method_list_id = #{standardMethodListId} |
| | | and state =#{state} |