2024-1-9-2 基础信息-工厂-加工厂建模类型

master
A0010407 1 year ago
parent 88bda16f8f
commit 8a8cdaaed4

@ -51,8 +51,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectEquFaultReasonByFaultId" parameterType="String" resultMap="EquFaultReasonResult">
<include refid="selectEquFaultReasonVo"/>
where fault_id = #{faultId}
</select>
<insert id="insertEquFaultReason" parameterType="EquFaultReason">

@ -47,6 +47,10 @@ public class SysFactory extends TreeEntity {
@Excel(name = "工厂编码")
private String factoryCode;
/** 工厂建模类型 */
@Excel(name = "工厂建模类型")
private String fType;
//虚拟字段
private List<Map<String,String>> workCenter;
private String value;
@ -111,6 +115,13 @@ public class SysFactory extends TreeEntity {
this.factoryCode = factoryCode;
}
public String getFType() {
return fType;
}
public void setFType(String fType) {
this.fType = fType;
}
public String getValue() {
return value;
}

@ -21,10 +21,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updateTime" column="update_time" />
<result property="factoryCode" column="factory_code" />
<result property="delFlag" column="del_flag" />
<result property="fType" column="f_type" />
</resultMap>
<sql id="selectSysFactoryVo">
select factory_id, parent_id, ancestors, factory_name, order_num, leader, phone, email, status, del_flag, create_by, create_time, update_by, update_time, factory_code,del_flag from sys_factory
select factory_id, parent_id, ancestors, factory_name, order_num, leader, phone, email, status, del_flag, create_by, create_time, update_by, update_time, factory_code,del_flag , f_type from sys_factory
</sql>
<select id="selectSysFactoryList" parameterType="SysFactory" resultMap="SysFactoryResult">
@ -39,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="email != null and email != ''"> and email = #{email}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="fType != null and fType != ''"> and f_type = #{fType}</if>
and del_flag = '0'
</where>
</select>
@ -66,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="factoryCode != null">factory_code,</if>
<if test="fType != null">f_type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="parentId != null">#{parentId},</if>
@ -82,6 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="factoryCode != null">#{factoryCode},</if>
<if test="fType != null">#{fType},</if>
</trim>
</insert>
@ -102,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
<if test="fType != null">f_type = #{fType},</if>
</trim>
where factory_id = #{factoryId}
</update>

Loading…
Cancel
Save