feat(mill): 添加换辊记录管理功能
- 新增换辊记录领域模型 MesRollChange 和 MesRollStandby - 实现换辊记录服务接口 IMesRollChangeService 和 IMesRollStandbyService - 添加换辊记录控制器 MesRollChangeController 提供 REST API - 实现换辊记录数据访问层 MesRollChangeMapper 和映射配置文件 - 添加换辊记录业务逻辑实现类 MesRollChangeServiceImpl - 实现查询当前在机轧辊和轧辊工作绩效统计功能 - 扩展轧辊信息 Mapper 支持条件更新轧辊状态操作
This commit is contained in:
@@ -0,0 +1,130 @@
|
||||
<?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="com.ruoyi.mill.mapper.MesRollStandbyMapper">
|
||||
|
||||
<resultMap type="MesRollStandby" id="MesRollStandbyResult">
|
||||
<result property="standbyId" column="standby_id" />
|
||||
<result property="lineId" column="line_id" />
|
||||
<result property="standNo" column="stand_no" />
|
||||
<result property="rollNo" column="roll_no" />
|
||||
<result property="rollType" column="roll_type" />
|
||||
<result property="position" column="position" />
|
||||
<result property="diameter" column="diameter" />
|
||||
<result property="roughness" column="roughness" />
|
||||
<result property="crown" column="crown" />
|
||||
<result property="readyTime" column="ready_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMesRollStandbyVo">
|
||||
select standby_id, line_id, stand_no, roll_no, roll_type, position, diameter, roughness, crown, ready_time, del_flag, create_by, create_time, update_by, update_time, remark from mes_roll_standby
|
||||
</sql>
|
||||
|
||||
<select id="selectMesRollStandbyList" parameterType="MesRollStandby" resultMap="MesRollStandbyResult">
|
||||
<include refid="selectMesRollStandbyVo"/>
|
||||
<where>
|
||||
<if test="lineId != null "> and line_id = #{lineId}</if>
|
||||
<if test="standNo != null and standNo != ''"> and stand_no = #{standNo}</if>
|
||||
<if test="rollNo != null and rollNo != ''"> and roll_no = #{rollNo}</if>
|
||||
<if test="rollType != null and rollType != ''"> and roll_type = #{rollType}</if>
|
||||
<if test="position != null and position != ''"> and position = #{position}</if>
|
||||
<if test="diameter != null "> and diameter = #{diameter}</if>
|
||||
<if test="roughness != null "> and roughness = #{roughness}</if>
|
||||
<if test="crown != null "> and crown = #{crown}</if>
|
||||
<if test="readyTime != null "> and ready_time = #{readyTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMesRollStandbyByStandbyId" parameterType="Long" resultMap="MesRollStandbyResult">
|
||||
<include refid="selectMesRollStandbyVo"/>
|
||||
where standby_id = #{standbyId}
|
||||
</select>
|
||||
|
||||
<insert id="insertMesRollStandby" parameterType="MesRollStandby" useGeneratedKeys="true" keyProperty="standbyId">
|
||||
insert into mes_roll_standby
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="lineId != null">line_id,</if>
|
||||
<if test="standNo != null">stand_no,</if>
|
||||
<if test="rollNo != null">roll_no,</if>
|
||||
<if test="rollType != null">roll_type,</if>
|
||||
<if test="position != null">position,</if>
|
||||
<if test="diameter != null">diameter,</if>
|
||||
<if test="roughness != null">roughness,</if>
|
||||
<if test="crown != null">crown,</if>
|
||||
<if test="readyTime != null">ready_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="lineId != null">#{lineId},</if>
|
||||
<if test="standNo != null">#{standNo},</if>
|
||||
<if test="rollNo != null">#{rollNo},</if>
|
||||
<if test="rollType != null">#{rollType},</if>
|
||||
<if test="position != null">#{position},</if>
|
||||
<if test="diameter != null">#{diameter},</if>
|
||||
<if test="roughness != null">#{roughness},</if>
|
||||
<if test="crown != null">#{crown},</if>
|
||||
<if test="readyTime != null">#{readyTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMesRollStandby" parameterType="MesRollStandby">
|
||||
update mes_roll_standby
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="lineId != null">line_id = #{lineId},</if>
|
||||
<if test="standNo != null">stand_no = #{standNo},</if>
|
||||
<if test="rollNo != null">roll_no = #{rollNo},</if>
|
||||
<if test="rollType != null">roll_type = #{rollType},</if>
|
||||
<if test="position != null">position = #{position},</if>
|
||||
<if test="diameter != null">diameter = #{diameter},</if>
|
||||
<if test="roughness != null">roughness = #{roughness},</if>
|
||||
<if test="crown != null">crown = #{crown},</if>
|
||||
<if test="readyTime != null">ready_time = #{readyTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where standby_id = #{standbyId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMesRollStandbyByStandbyId" parameterType="Long">
|
||||
delete from mes_roll_standby where standby_id = #{standbyId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMesRollStandbyByStandbyIds" parameterType="String">
|
||||
delete from mes_roll_standby where standby_id in
|
||||
<foreach item="standbyId" collection="array" open="(" separator="," close=")">
|
||||
#{standbyId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectByStand" resultMap="MesRollStandbyResult">
|
||||
<include refid="selectMesRollStandbyVo"/>
|
||||
where line_id = #{lineId} and stand_no = #{standNo}
|
||||
</select>
|
||||
|
||||
<delete id="clearByStand">
|
||||
delete from mes_roll_standby
|
||||
where line_id = #{lineId} and stand_no = #{standNo}
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user