|
@@ -17,6 +17,22 @@
|
|
<result column="applicant_id" property="applicantId"/>
|
|
<result column="applicant_id" property="applicantId"/>
|
|
<result column="applicant_name" property="applicantName"/>
|
|
<result column="applicant_name" property="applicantName"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
+ <!-- 通用查询映射结果 -->
|
|
|
|
+ <resultMap id="BaseResultMapVO" type="com.hssx.cloudmodel.entity.vo.MouldOperationDynamicsVO">
|
|
|
|
+ <id column="id" property="id"/>
|
|
|
|
+ <result column="file_id" property="fileId"/>
|
|
|
|
+ <result column="operator_id" property="operatorId"/>
|
|
|
|
+ <result column="operator_name" property="operatorName"/>
|
|
|
|
+ <result column="indate" property="indate"/>
|
|
|
|
+ <result column="file_name" property="fileName"/>
|
|
|
|
+ <result column="belong_type" property="belongType"/>
|
|
|
|
+ <result column="content" property="content"/>
|
|
|
|
+ <result column="mould_id" property="mouldId"/>
|
|
|
|
+ <result column="is_pass" property="isPass"/>
|
|
|
|
+ <result column="applicant_id" property="applicantId"/>
|
|
|
|
+ <result column="applicant_name" property="applicantName"/>
|
|
|
|
+ <result column="mouldNo" property="mouldNo"/>
|
|
|
|
+ </resultMap>
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
<!-- 通用查询结果列 -->
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
@@ -35,4 +51,23 @@
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="getlist" resultMap="BaseResultMapVO">
|
|
|
|
+ select
|
|
|
|
+ tmod.id, tmod.file_id, tmod.operator_id, tmod.operator_name, tmod.indate, tmod.file_name, tmod.belong_type,
|
|
|
|
+ tmod.content, tmod.mould_id, tmod.is_pass, tmod.applicant_id, tmod.applicant_name,tbm.model_no mouldNo
|
|
|
|
+ from
|
|
|
|
+ tb_mould_operation_dynamics tmod
|
|
|
|
+ left join
|
|
|
|
+ tb_mould tbm
|
|
|
|
+ on
|
|
|
|
+ tmod.mould_id = tbm.id
|
|
|
|
+ <where>
|
|
|
|
+ tmod.mould_id in
|
|
|
|
+ <foreach collection="list" index="index" open="(" item="item" close=")" separator=",">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ and tmod.belong_type = #{mouldOperationDynamics.belongType}
|
|
|
|
+ Order By tmod.id desc
|
|
|
|
+ </where>
|
|
|
|
+</select>
|
|
</mapper>
|
|
</mapper>
|