feat(business): 添加生产计划参数详情及相关服务接口
- 新增 PdiSetup 实体类,定义字段生产计划参数详情 - 创建 IPdiSetupService 接口,包含增删改查方法- 添加 PdiSetupController 控制器,实现 RESTful API - 配置 PdiSetupMapper 及其 XML 映射文件- 注释 MessageSubscriptionRunner 类中的 @Component 注解 - 新增多个设备参数相关的 Service 接口(SetupTension、SetupTl 等)
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
<?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.fizz.business.mapper.SetupTmBendforceMapper">
|
||||
|
||||
<resultMap type="SetupTmBendforce" id="SetupTmBendforceResult">
|
||||
<result property="WIDTH" column="WIDTH" />
|
||||
<result property="rollForce" column="ROLL_FORCE" />
|
||||
<result property="VALUE1" column="VALUE1" />
|
||||
<result property="VALUE2" column="VALUE2" />
|
||||
<result property="VALUE3" column="VALUE3" />
|
||||
<result property="VALUE4" column="VALUE4" />
|
||||
<result property="updateTime" column="UPDATE_TIME" />
|
||||
<result property="createTime" column="CREATE_TIME" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSetupTmBendforceVo">
|
||||
select WIDTH, ROLL_FORCE, VALUE1, VALUE2, VALUE3, VALUE4, UPDATE_TIME, CREATE_TIME from setup_tm_bendforce
|
||||
</sql>
|
||||
|
||||
<select id="selectSetupTmBendforceList" parameterType="SetupTmBendforce" resultMap="SetupTmBendforceResult">
|
||||
<include refid="selectSetupTmBendforceVo"/>
|
||||
<where>
|
||||
<if test="VALUE1 != null "> and VALUE1 = #{VALUE1}</if>
|
||||
<if test="VALUE2 != null "> and VALUE2 = #{VALUE2}</if>
|
||||
<if test="VALUE3 != null "> and VALUE3 = #{VALUE3}</if>
|
||||
<if test="VALUE4 != null "> and VALUE4 = #{VALUE4}</if>
|
||||
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
|
||||
<if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSetupTmBendforceByWIDTH" parameterType="Long" resultMap="SetupTmBendforceResult">
|
||||
<include refid="selectSetupTmBendforceVo"/>
|
||||
where WIDTH = #{WIDTH}
|
||||
</select>
|
||||
|
||||
<insert id="insertSetupTmBendforce" parameterType="SetupTmBendforce">
|
||||
insert into setup_tm_bendforce
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="WIDTH != null">WIDTH,</if>
|
||||
<if test="rollForce != null">ROLL_FORCE,</if>
|
||||
<if test="VALUE1 != null">VALUE1,</if>
|
||||
<if test="VALUE2 != null">VALUE2,</if>
|
||||
<if test="VALUE3 != null">VALUE3,</if>
|
||||
<if test="VALUE4 != null">VALUE4,</if>
|
||||
<if test="updateTime != null">UPDATE_TIME,</if>
|
||||
<if test="createTime != null">CREATE_TIME,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="WIDTH != null">#{WIDTH},</if>
|
||||
<if test="rollForce != null">#{rollForce},</if>
|
||||
<if test="VALUE1 != null">#{VALUE1},</if>
|
||||
<if test="VALUE2 != null">#{VALUE2},</if>
|
||||
<if test="VALUE3 != null">#{VALUE3},</if>
|
||||
<if test="VALUE4 != null">#{VALUE4},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSetupTmBendforce" parameterType="SetupTmBendforce">
|
||||
update setup_tm_bendforce
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="rollForce != null">ROLL_FORCE = #{rollForce},</if>
|
||||
<if test="VALUE1 != null">VALUE1 = #{VALUE1},</if>
|
||||
<if test="VALUE2 != null">VALUE2 = #{VALUE2},</if>
|
||||
<if test="VALUE3 != null">VALUE3 = #{VALUE3},</if>
|
||||
<if test="VALUE4 != null">VALUE4 = #{VALUE4},</if>
|
||||
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
||||
<if test="createTime != null">CREATE_TIME = #{createTime},</if>
|
||||
</trim>
|
||||
where WIDTH = #{WIDTH}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSetupTmBendforceByWIDTH" parameterType="Long">
|
||||
delete from setup_tm_bendforce where WIDTH = #{WIDTH}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSetupTmBendforceByWIDTHs" parameterType="String">
|
||||
delete from setup_tm_bendforce where WIDTH in
|
||||
<foreach item="WIDTH" collection="array" open="(" separator="," close=")">
|
||||
#{WIDTH}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user