feat(mill): 添加轧线生产实绩管理功能
- 创建轧线生产实绩实体类 MillProductionActual,包含成品卷号、来料卷号、厚度、宽度等字段 - 实现轧线生产实绩服务接口 IMillProductionActualService,提供增删改查操作方法 - 开发轧线生产实绩控制器 MillProductionActualController,支持列表查询、新增、修改、删除等功能 - 设计轧线生产实绩数据访问层 MillProductionActualMapper,完成数据库CRUD操作 - 配置MyBatis映射文件 MillProductionActualMapper.xml,实现SQL语句与实体类映射 - 添加轧线生产停机和系统日志的服务接口定义 - 实现权限控制注解,支持导出Excel功能
This commit is contained in:
@@ -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