feat(mill): 添加轧线生产实绩管理功能
- 创建轧线生产实绩实体类 MillProductionActual,包含成品卷号、来料卷号、厚度、宽度等字段 - 实现轧线生产实绩服务接口 IMillProductionActualService,提供增删改查操作方法 - 开发轧线生产实绩控制器 MillProductionActualController,支持列表查询、新增、修改、删除等功能 - 设计轧线生产实绩数据访问层 MillProductionActualMapper,完成数据库CRUD操作 - 配置MyBatis映射文件 MillProductionActualMapper.xml,实现SQL语句与实体类映射 - 添加轧线生产停机和系统日志的服务接口定义 - 实现权限控制注解,支持导出Excel功能
This commit is contained in:
@@ -0,0 +1,255 @@
|
||||
<?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.MillProductionActualMapper">
|
||||
|
||||
<resultMap type="MillProductionActual" id="MillProductionActualResult">
|
||||
<result property="actualId" column="actual_id" />
|
||||
<result property="exitMatId" column="exit_mat_id" />
|
||||
<result property="entryMatId" column="entry_mat_id" />
|
||||
<result property="subId" column="sub_id" />
|
||||
<result property="startPosition" column="start_position" />
|
||||
<result property="endPosition" column="end_position" />
|
||||
<result property="planId" column="plan_id" />
|
||||
<result property="planNo" column="plan_no" />
|
||||
<result property="prodCode" column="prod_code" />
|
||||
<result property="groupNo" column="group_no" />
|
||||
<result property="shiftNo" column="shift_no" />
|
||||
<result property="status" column="status" />
|
||||
<result property="steelGrade" column="steel_grade" />
|
||||
<result property="entryThick" column="entry_thick" />
|
||||
<result property="entryWidth" column="entry_width" />
|
||||
<result property="entryLength" column="entry_length" />
|
||||
<result property="entryWeight" column="entry_weight" />
|
||||
<result property="weightTop" column="weight_top" />
|
||||
<result property="weightBottom" column="weight_bottom" />
|
||||
<result property="exitLength" column="exit_length" />
|
||||
<result property="exitNetWeight" column="exit_net_weight" />
|
||||
<result property="theoryWeight" column="theory_weight" />
|
||||
<result property="actualWeight" column="actual_weight" />
|
||||
<result property="exitOuterDiameter" column="exit_outer_diameter" />
|
||||
<result property="exitThickness" column="exit_thickness" />
|
||||
<result property="exitWidth" column="exit_width" />
|
||||
<result property="customer" column="customer" />
|
||||
<result property="onlineTime" column="online_time" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="endTime" column="end_time" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="processCode" column="process_code" />
|
||||
<result property="lastFlag" column="last_flag" />
|
||||
<result property="separateFlag" column="separate_flag" />
|
||||
<result property="planOrigin" column="plan_origin" />
|
||||
<result property="zincCoatingThickness" column="zinc_coating_thickness" />
|
||||
<result property="enterCoilNo" column="enter_coil_no" />
|
||||
<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" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMillProductionActualVo">
|
||||
select actual_id, exit_mat_id, entry_mat_id, sub_id, start_position, end_position, plan_id, plan_no, prod_code, group_no, shift_no, status, steel_grade, entry_thick, entry_width, entry_length, entry_weight, weight_top, weight_bottom, exit_length, exit_net_weight, theory_weight, actual_weight, exit_outer_diameter, exit_thickness, exit_width, customer, online_time, start_time, end_time, unit_code, process_code, last_flag, separate_flag, plan_origin, zinc_coating_thickness, enter_coil_no, create_by, create_time, update_by, update_time, remark, del_flag from mill_production_actual
|
||||
</sql>
|
||||
|
||||
<select id="selectMillProductionActualList" parameterType="MillProductionActual" resultMap="MillProductionActualResult">
|
||||
<include refid="selectMillProductionActualVo"/>
|
||||
<where>
|
||||
<if test="exitMatId != null and exitMatId != ''"> and exit_mat_id = #{exitMatId}</if>
|
||||
<if test="entryMatId != null and entryMatId != ''"> and entry_mat_id = #{entryMatId}</if>
|
||||
<if test="subId != null "> and sub_id = #{subId}</if>
|
||||
<if test="startPosition != null "> and start_position = #{startPosition}</if>
|
||||
<if test="endPosition != null "> and end_position = #{endPosition}</if>
|
||||
<if test="planId != null "> and plan_id = #{planId}</if>
|
||||
<if test="planNo != null and planNo != ''"> and plan_no = #{planNo}</if>
|
||||
<if test="prodCode != null and prodCode != ''"> and prod_code = #{prodCode}</if>
|
||||
<if test="groupNo != null and groupNo != ''"> and group_no = #{groupNo}</if>
|
||||
<if test="shiftNo != null and shiftNo != ''"> and shift_no = #{shiftNo}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="steelGrade != null and steelGrade != ''"> and steel_grade = #{steelGrade}</if>
|
||||
<if test="entryThick != null "> and entry_thick = #{entryThick}</if>
|
||||
<if test="entryWidth != null "> and entry_width = #{entryWidth}</if>
|
||||
<if test="entryLength != null "> and entry_length = #{entryLength}</if>
|
||||
<if test="entryWeight != null "> and entry_weight = #{entryWeight}</if>
|
||||
<if test="weightTop != null "> and weight_top = #{weightTop}</if>
|
||||
<if test="weightBottom != null "> and weight_bottom = #{weightBottom}</if>
|
||||
<if test="exitLength != null "> and exit_length = #{exitLength}</if>
|
||||
<if test="exitNetWeight != null "> and exit_net_weight = #{exitNetWeight}</if>
|
||||
<if test="theoryWeight != null "> and theory_weight = #{theoryWeight}</if>
|
||||
<if test="actualWeight != null "> and actual_weight = #{actualWeight}</if>
|
||||
<if test="exitOuterDiameter != null "> and exit_outer_diameter = #{exitOuterDiameter}</if>
|
||||
<if test="exitThickness != null "> and exit_thickness = #{exitThickness}</if>
|
||||
<if test="exitWidth != null "> and exit_width = #{exitWidth}</if>
|
||||
<if test="customer != null and customer != ''"> and customer = #{customer}</if>
|
||||
<if test="onlineTime != null "> and online_time = #{onlineTime}</if>
|
||||
<if test="startTime != null "> and start_time = #{startTime}</if>
|
||||
<if test="endTime != null "> and end_time = #{endTime}</if>
|
||||
<if test="unitCode != null and unitCode != ''"> and unit_code = #{unitCode}</if>
|
||||
<if test="processCode != null and processCode != ''"> and process_code = #{processCode}</if>
|
||||
<if test="lastFlag != null "> and last_flag = #{lastFlag}</if>
|
||||
<if test="separateFlag != null "> and separate_flag = #{separateFlag}</if>
|
||||
<if test="planOrigin != null and planOrigin != ''"> and plan_origin = #{planOrigin}</if>
|
||||
<if test="zincCoatingThickness != null "> and zinc_coating_thickness = #{zincCoatingThickness}</if>
|
||||
<if test="enterCoilNo != null and enterCoilNo != ''"> and enter_coil_no = #{enterCoilNo}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMillProductionActualByActualId" parameterType="Long" resultMap="MillProductionActualResult">
|
||||
<include refid="selectMillProductionActualVo"/>
|
||||
where actual_id = #{actualId}
|
||||
</select>
|
||||
|
||||
<insert id="insertMillProductionActual" parameterType="MillProductionActual" useGeneratedKeys="true" keyProperty="actualId">
|
||||
insert into mill_production_actual
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="exitMatId != null">exit_mat_id,</if>
|
||||
<if test="entryMatId != null">entry_mat_id,</if>
|
||||
<if test="subId != null">sub_id,</if>
|
||||
<if test="startPosition != null">start_position,</if>
|
||||
<if test="endPosition != null">end_position,</if>
|
||||
<if test="planId != null">plan_id,</if>
|
||||
<if test="planNo != null">plan_no,</if>
|
||||
<if test="prodCode != null">prod_code,</if>
|
||||
<if test="groupNo != null">group_no,</if>
|
||||
<if test="shiftNo != null">shift_no,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="steelGrade != null">steel_grade,</if>
|
||||
<if test="entryThick != null">entry_thick,</if>
|
||||
<if test="entryWidth != null">entry_width,</if>
|
||||
<if test="entryLength != null">entry_length,</if>
|
||||
<if test="entryWeight != null">entry_weight,</if>
|
||||
<if test="weightTop != null">weight_top,</if>
|
||||
<if test="weightBottom != null">weight_bottom,</if>
|
||||
<if test="exitLength != null">exit_length,</if>
|
||||
<if test="exitNetWeight != null">exit_net_weight,</if>
|
||||
<if test="theoryWeight != null">theory_weight,</if>
|
||||
<if test="actualWeight != null">actual_weight,</if>
|
||||
<if test="exitOuterDiameter != null">exit_outer_diameter,</if>
|
||||
<if test="exitThickness != null">exit_thickness,</if>
|
||||
<if test="exitWidth != null">exit_width,</if>
|
||||
<if test="customer != null">customer,</if>
|
||||
<if test="onlineTime != null">online_time,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="endTime != null">end_time,</if>
|
||||
<if test="unitCode != null">unit_code,</if>
|
||||
<if test="processCode != null">process_code,</if>
|
||||
<if test="lastFlag != null">last_flag,</if>
|
||||
<if test="separateFlag != null">separate_flag,</if>
|
||||
<if test="planOrigin != null">plan_origin,</if>
|
||||
<if test="zincCoatingThickness != null">zinc_coating_thickness,</if>
|
||||
<if test="enterCoilNo != null">enter_coil_no,</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>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="exitMatId != null">#{exitMatId},</if>
|
||||
<if test="entryMatId != null">#{entryMatId},</if>
|
||||
<if test="subId != null">#{subId},</if>
|
||||
<if test="startPosition != null">#{startPosition},</if>
|
||||
<if test="endPosition != null">#{endPosition},</if>
|
||||
<if test="planId != null">#{planId},</if>
|
||||
<if test="planNo != null">#{planNo},</if>
|
||||
<if test="prodCode != null">#{prodCode},</if>
|
||||
<if test="groupNo != null">#{groupNo},</if>
|
||||
<if test="shiftNo != null">#{shiftNo},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="steelGrade != null">#{steelGrade},</if>
|
||||
<if test="entryThick != null">#{entryThick},</if>
|
||||
<if test="entryWidth != null">#{entryWidth},</if>
|
||||
<if test="entryLength != null">#{entryLength},</if>
|
||||
<if test="entryWeight != null">#{entryWeight},</if>
|
||||
<if test="weightTop != null">#{weightTop},</if>
|
||||
<if test="weightBottom != null">#{weightBottom},</if>
|
||||
<if test="exitLength != null">#{exitLength},</if>
|
||||
<if test="exitNetWeight != null">#{exitNetWeight},</if>
|
||||
<if test="theoryWeight != null">#{theoryWeight},</if>
|
||||
<if test="actualWeight != null">#{actualWeight},</if>
|
||||
<if test="exitOuterDiameter != null">#{exitOuterDiameter},</if>
|
||||
<if test="exitThickness != null">#{exitThickness},</if>
|
||||
<if test="exitWidth != null">#{exitWidth},</if>
|
||||
<if test="customer != null">#{customer},</if>
|
||||
<if test="onlineTime != null">#{onlineTime},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="endTime != null">#{endTime},</if>
|
||||
<if test="unitCode != null">#{unitCode},</if>
|
||||
<if test="processCode != null">#{processCode},</if>
|
||||
<if test="lastFlag != null">#{lastFlag},</if>
|
||||
<if test="separateFlag != null">#{separateFlag},</if>
|
||||
<if test="planOrigin != null">#{planOrigin},</if>
|
||||
<if test="zincCoatingThickness != null">#{zincCoatingThickness},</if>
|
||||
<if test="enterCoilNo != null">#{enterCoilNo},</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>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMillProductionActual" parameterType="MillProductionActual">
|
||||
update mill_production_actual
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="exitMatId != null">exit_mat_id = #{exitMatId},</if>
|
||||
<if test="entryMatId != null">entry_mat_id = #{entryMatId},</if>
|
||||
<if test="subId != null">sub_id = #{subId},</if>
|
||||
<if test="startPosition != null">start_position = #{startPosition},</if>
|
||||
<if test="endPosition != null">end_position = #{endPosition},</if>
|
||||
<if test="planId != null">plan_id = #{planId},</if>
|
||||
<if test="planNo != null">plan_no = #{planNo},</if>
|
||||
<if test="prodCode != null">prod_code = #{prodCode},</if>
|
||||
<if test="groupNo != null">group_no = #{groupNo},</if>
|
||||
<if test="shiftNo != null">shift_no = #{shiftNo},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="steelGrade != null">steel_grade = #{steelGrade},</if>
|
||||
<if test="entryThick != null">entry_thick = #{entryThick},</if>
|
||||
<if test="entryWidth != null">entry_width = #{entryWidth},</if>
|
||||
<if test="entryLength != null">entry_length = #{entryLength},</if>
|
||||
<if test="entryWeight != null">entry_weight = #{entryWeight},</if>
|
||||
<if test="weightTop != null">weight_top = #{weightTop},</if>
|
||||
<if test="weightBottom != null">weight_bottom = #{weightBottom},</if>
|
||||
<if test="exitLength != null">exit_length = #{exitLength},</if>
|
||||
<if test="exitNetWeight != null">exit_net_weight = #{exitNetWeight},</if>
|
||||
<if test="theoryWeight != null">theory_weight = #{theoryWeight},</if>
|
||||
<if test="actualWeight != null">actual_weight = #{actualWeight},</if>
|
||||
<if test="exitOuterDiameter != null">exit_outer_diameter = #{exitOuterDiameter},</if>
|
||||
<if test="exitThickness != null">exit_thickness = #{exitThickness},</if>
|
||||
<if test="exitWidth != null">exit_width = #{exitWidth},</if>
|
||||
<if test="customer != null">customer = #{customer},</if>
|
||||
<if test="onlineTime != null">online_time = #{onlineTime},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="endTime != null">end_time = #{endTime},</if>
|
||||
<if test="unitCode != null">unit_code = #{unitCode},</if>
|
||||
<if test="processCode != null">process_code = #{processCode},</if>
|
||||
<if test="lastFlag != null">last_flag = #{lastFlag},</if>
|
||||
<if test="separateFlag != null">separate_flag = #{separateFlag},</if>
|
||||
<if test="planOrigin != null">plan_origin = #{planOrigin},</if>
|
||||
<if test="zincCoatingThickness != null">zinc_coating_thickness = #{zincCoatingThickness},</if>
|
||||
<if test="enterCoilNo != null">enter_coil_no = #{enterCoilNo},</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>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where actual_id = #{actualId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMillProductionActualByActualId" parameterType="Long">
|
||||
delete from mill_production_actual where actual_id = #{actualId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMillProductionActualByActualIds" parameterType="String">
|
||||
delete from mill_production_actual where actual_id in
|
||||
<foreach item="actualId" collection="array" open="(" separator="," close=")">
|
||||
#{actualId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -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.MillProductionStopMapper">
|
||||
|
||||
<resultMap type="MillProductionStop" id="MillProductionStopResult">
|
||||
<result property="stopId" column="stop_id" />
|
||||
<result property="coilId" column="coil_id" />
|
||||
<result property="shift" column="shift" />
|
||||
<result property="crew" column="crew" />
|
||||
<result property="area" column="area" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="setOn" column="set_on" />
|
||||
<result property="startDate" column="start_date" />
|
||||
<result property="endDate" column="end_date" />
|
||||
<result property="duration" column="duration" />
|
||||
<result property="insDate" column="ins_date" />
|
||||
<result property="stopType" column="stop_type" />
|
||||
<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" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMillProductionStopVo">
|
||||
select stop_id, coil_id, shift, crew, area, unit, set_on, start_date, end_date, duration, ins_date, stop_type, create_by, create_time, update_by, update_time, remark, del_flag from mill_production_stop
|
||||
</sql>
|
||||
|
||||
<select id="selectMillProductionStopList" parameterType="MillProductionStop" resultMap="MillProductionStopResult">
|
||||
<include refid="selectMillProductionStopVo"/>
|
||||
<where>
|
||||
<if test="coilId != null and coilId != ''"> and coil_id = #{coilId}</if>
|
||||
<if test="shift != null and shift != ''"> and shift = #{shift}</if>
|
||||
<if test="crew != null and crew != ''"> and crew = #{crew}</if>
|
||||
<if test="area != null and area != ''"> and area = #{area}</if>
|
||||
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
||||
<if test="setOn != null and setOn != ''"> and set_on = #{setOn}</if>
|
||||
<if test="startDate != null "> and start_date = #{startDate}</if>
|
||||
<if test="endDate != null "> and end_date = #{endDate}</if>
|
||||
<if test="duration != null "> and duration = #{duration}</if>
|
||||
<if test="insDate != null "> and ins_date = #{insDate}</if>
|
||||
<if test="stopType != null and stopType != ''"> and stop_type = #{stopType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMillProductionStopByStopId" parameterType="Long" resultMap="MillProductionStopResult">
|
||||
<include refid="selectMillProductionStopVo"/>
|
||||
where stop_id = #{stopId}
|
||||
</select>
|
||||
|
||||
<insert id="insertMillProductionStop" parameterType="MillProductionStop" useGeneratedKeys="true" keyProperty="stopId">
|
||||
insert into mill_production_stop
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="coilId != null">coil_id,</if>
|
||||
<if test="shift != null">shift,</if>
|
||||
<if test="crew != null">crew,</if>
|
||||
<if test="area != null">area,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="setOn != null">set_on,</if>
|
||||
<if test="startDate != null">start_date,</if>
|
||||
<if test="endDate != null">end_date,</if>
|
||||
<if test="duration != null">duration,</if>
|
||||
<if test="insDate != null">ins_date,</if>
|
||||
<if test="stopType != null">stop_type,</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>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="coilId != null">#{coilId},</if>
|
||||
<if test="shift != null">#{shift},</if>
|
||||
<if test="crew != null">#{crew},</if>
|
||||
<if test="area != null">#{area},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="setOn != null">#{setOn},</if>
|
||||
<if test="startDate != null">#{startDate},</if>
|
||||
<if test="endDate != null">#{endDate},</if>
|
||||
<if test="duration != null">#{duration},</if>
|
||||
<if test="insDate != null">#{insDate},</if>
|
||||
<if test="stopType != null">#{stopType},</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>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMillProductionStop" parameterType="MillProductionStop">
|
||||
update mill_production_stop
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="coilId != null">coil_id = #{coilId},</if>
|
||||
<if test="shift != null">shift = #{shift},</if>
|
||||
<if test="crew != null">crew = #{crew},</if>
|
||||
<if test="area != null">area = #{area},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="setOn != null">set_on = #{setOn},</if>
|
||||
<if test="startDate != null">start_date = #{startDate},</if>
|
||||
<if test="endDate != null">end_date = #{endDate},</if>
|
||||
<if test="duration != null">duration = #{duration},</if>
|
||||
<if test="insDate != null">ins_date = #{insDate},</if>
|
||||
<if test="stopType != null">stop_type = #{stopType},</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>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where stop_id = #{stopId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMillProductionStopByStopId" parameterType="Long">
|
||||
delete from mill_production_stop where stop_id = #{stopId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMillProductionStopByStopIds" parameterType="String">
|
||||
delete from mill_production_stop where stop_id in
|
||||
<foreach item="stopId" collection="array" open="(" separator="," close=")">
|
||||
#{stopId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,110 @@
|
||||
<?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.MillSystemLogMapper">
|
||||
|
||||
<resultMap type="MillSystemLog" id="MillSystemLogResult">
|
||||
<result property="logId" column="log_id" />
|
||||
<result property="seqid" column="seqid" />
|
||||
<result property="timestamp" column="timestamp" />
|
||||
<result property="module" column="module" />
|
||||
<result property="logType" column="log_type" />
|
||||
<result property="logText" column="log_text" />
|
||||
<result property="status" column="status" />
|
||||
<result property="confirmTime" column="confirm_time" />
|
||||
<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" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMillSystemLogVo">
|
||||
select log_id, seqid, timestamp, module, log_type, log_text, status, confirm_time, create_by, create_time, update_by, update_time, remark, del_flag from mill_system_log
|
||||
</sql>
|
||||
|
||||
<select id="selectMillSystemLogList" parameterType="MillSystemLog" resultMap="MillSystemLogResult">
|
||||
<include refid="selectMillSystemLogVo"/>
|
||||
<where>
|
||||
<if test="seqid != null "> and seqid = #{seqid}</if>
|
||||
<if test="timestamp != null "> and timestamp = #{timestamp}</if>
|
||||
<if test="module != null and module != ''"> and module = #{module}</if>
|
||||
<if test="logType != null and logType != ''"> and log_type = #{logType}</if>
|
||||
<if test="logText != null and logText != ''"> and log_text = #{logText}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="confirmTime != null "> and confirm_time = #{confirmTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMillSystemLogByLogId" parameterType="Long" resultMap="MillSystemLogResult">
|
||||
<include refid="selectMillSystemLogVo"/>
|
||||
where log_id = #{logId}
|
||||
</select>
|
||||
|
||||
<insert id="insertMillSystemLog" parameterType="MillSystemLog" useGeneratedKeys="true" keyProperty="logId">
|
||||
insert into mill_system_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="seqid != null">seqid,</if>
|
||||
<if test="timestamp != null">timestamp,</if>
|
||||
<if test="module != null">module,</if>
|
||||
<if test="logType != null">log_type,</if>
|
||||
<if test="logText != null">log_text,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="confirmTime != null">confirm_time,</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>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="seqid != null">#{seqid},</if>
|
||||
<if test="timestamp != null">#{timestamp},</if>
|
||||
<if test="module != null">#{module},</if>
|
||||
<if test="logType != null">#{logType},</if>
|
||||
<if test="logText != null">#{logText},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="confirmTime != null">#{confirmTime},</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>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMillSystemLog" parameterType="MillSystemLog">
|
||||
update mill_system_log
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="seqid != null">seqid = #{seqid},</if>
|
||||
<if test="timestamp != null">timestamp = #{timestamp},</if>
|
||||
<if test="module != null">module = #{module},</if>
|
||||
<if test="logType != null">log_type = #{logType},</if>
|
||||
<if test="logText != null">log_text = #{logText},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="confirmTime != null">confirm_time = #{confirmTime},</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>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where log_id = #{logId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMillSystemLogByLogId" parameterType="Long">
|
||||
delete from mill_system_log where log_id = #{logId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMillSystemLogByLogIds" parameterType="String">
|
||||
delete from mill_system_log where log_id in
|
||||
<foreach item="logId" collection="array" open="(" separator="," close=")">
|
||||
#{logId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user