增加字段
This commit is contained in:
parent
0c5bcb9dff
commit
1a00701bd4
@ -8,7 +8,7 @@ import java.util.List;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* xhpc_work_order
|
* xhpc_work_order
|
||||||
* @author
|
* @author
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class XhpcWorkOrderDomain implements Serializable {
|
public class XhpcWorkOrderDomain implements Serializable {
|
||||||
@ -51,6 +51,8 @@ public class XhpcWorkOrderDomain implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String serialNumber;
|
private String serialNumber;
|
||||||
|
|
||||||
|
private Long stationId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 故障原因
|
* 故障原因
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -25,6 +25,24 @@ public class XhpcWorkTypeDictDomain implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer parentTypeId;
|
private Integer parentTypeId;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否自动派发(0-不自动派发,1-自动派发)
|
||||||
|
*/
|
||||||
|
private Integer autoSend = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自动派发的人员
|
||||||
|
*/
|
||||||
|
private Integer userId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否自动采取应急措施(0-不自动采取,1-自动)
|
||||||
|
*/
|
||||||
|
private Integer autoRun;
|
||||||
|
private Integer measure;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态0-禁用,1-启用
|
* 状态0-禁用,1-启用
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import java.util.Date;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* xhpc_work_user
|
* xhpc_work_user
|
||||||
* @author
|
* @author
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class XhpcWorkUserDomain implements Serializable {
|
public class XhpcWorkUserDomain implements Serializable {
|
||||||
@ -51,6 +51,15 @@ public class XhpcWorkUserDomain implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Short isLeader;
|
private Short isLeader;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 人员类型(1-管理员,2-运维人员)
|
||||||
|
*/
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
private String operatorIds;
|
||||||
|
private String stationIds;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态(0-未启用,1-正常)
|
* 状态(0-未启用,1-正常)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
<result column="fault_time" jdbcType="TIMESTAMP" property="faultTime" />
|
<result column="fault_time" jdbcType="TIMESTAMP" property="faultTime" />
|
||||||
<result column="device_type" jdbcType="VARCHAR" property="deviceType" />
|
<result column="device_type" jdbcType="VARCHAR" property="deviceType" />
|
||||||
<result column="serial_number" jdbcType="VARCHAR" property="serialNumber" />
|
<result column="serial_number" jdbcType="VARCHAR" property="serialNumber" />
|
||||||
|
<result column="station_id" javaType="BIGINT" property="stationId" />
|
||||||
<result column="reason" jdbcType="VARCHAR" property="reason" />
|
<result column="reason" jdbcType="VARCHAR" property="reason" />
|
||||||
<result column="disposal_method" jdbcType="VARCHAR" property="disposalMethod" />
|
<result column="disposal_method" jdbcType="VARCHAR" property="disposalMethod" />
|
||||||
<result column="status" jdbcType="SMALLINT" property="status" />
|
<result column="status" jdbcType="SMALLINT" property="status" />
|
||||||
@ -22,7 +23,7 @@
|
|||||||
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
o.work_order_id, o.`type`, o.title, o.content, o.fault_time, o.device_type, o.serial_number,
|
o.work_order_id, o.`type`, o.title, o.content, o.fault_time, o.device_type, o.serial_number, o.station_id,
|
||||||
o.reason, o.disposal_method, o.`status`, o.del_flag, o.tenant_id, o.create_time, o.create_by, o.update_time,
|
o.reason, o.disposal_method, o.`status`, o.del_flag, o.tenant_id, o.create_time, o.create_by, o.update_time,
|
||||||
o.update_by, o.remark
|
o.update_by, o.remark
|
||||||
</sql>
|
</sql>
|
||||||
@ -130,6 +131,9 @@
|
|||||||
<if test="serialNumber != null">
|
<if test="serialNumber != null">
|
||||||
serial_number,
|
serial_number,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="stationId != null">
|
||||||
|
station_id,
|
||||||
|
</if>
|
||||||
<if test="reason != null">
|
<if test="reason != null">
|
||||||
reason,
|
reason,
|
||||||
</if>
|
</if>
|
||||||
@ -172,6 +176,9 @@
|
|||||||
<if test="serialNumber != null">
|
<if test="serialNumber != null">
|
||||||
#{serialNumber,jdbcType=VARCHAR},
|
#{serialNumber,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="stationId != null">
|
||||||
|
#{stationId},
|
||||||
|
</if>
|
||||||
<if test="reason != null">
|
<if test="reason != null">
|
||||||
#{reason,jdbcType=VARCHAR},
|
#{reason,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@ -224,6 +231,9 @@
|
|||||||
<if test="serialNumber != null">
|
<if test="serialNumber != null">
|
||||||
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="stationId != null">
|
||||||
|
station_id = #{stationId},
|
||||||
|
</if>
|
||||||
<if test="reason != null">
|
<if test="reason != null">
|
||||||
reason = #{reason,jdbcType=VARCHAR},
|
reason = #{reason,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@ -254,6 +264,7 @@
|
|||||||
fault_time = #{faultTime, jdbcType=TIMESTAMP},
|
fault_time = #{faultTime, jdbcType=TIMESTAMP},
|
||||||
device_type = #{deviceType,jdbcType=VARCHAR},
|
device_type = #{deviceType,jdbcType=VARCHAR},
|
||||||
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
||||||
|
station_id=#{stationId},
|
||||||
reason = #{reason,jdbcType=VARCHAR},
|
reason = #{reason,jdbcType=VARCHAR},
|
||||||
disposal_method = #{disposalMethod,jdbcType=VARCHAR},
|
disposal_method = #{disposalMethod,jdbcType=VARCHAR},
|
||||||
`status` = #{status,jdbcType=SMALLINT},
|
`status` = #{status,jdbcType=SMALLINT},
|
||||||
|
|||||||
@ -7,6 +7,10 @@
|
|||||||
<result column="sort" jdbcType="SMALLINT" property="sort" />
|
<result column="sort" jdbcType="SMALLINT" property="sort" />
|
||||||
<result column="parent_type_id" jdbcType="INTEGER" property="parentTypeId" />
|
<result column="parent_type_id" jdbcType="INTEGER" property="parentTypeId" />
|
||||||
<result column="status" jdbcType="SMALLINT" property="status" />
|
<result column="status" jdbcType="SMALLINT" property="status" />
|
||||||
|
<result column="auto_send" property="autoSend" />
|
||||||
|
<result column="user_id" property="userId" />
|
||||||
|
<result column="auto_run" property="autoRun" />
|
||||||
|
<result column="measure" property="measure" />
|
||||||
<result column="del_flag" jdbcType="SMALLINT" property="delFlag" />
|
<result column="del_flag" jdbcType="SMALLINT" property="delFlag" />
|
||||||
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
@ -15,7 +19,7 @@
|
|||||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
work_type_id, name, sort, parent_type_id, `status`, del_flag, tenant_id,
|
work_type_id, name, sort, parent_type_id, `status`, del_flag, tenant_id, auto_send, user_id, auto_run, measure,
|
||||||
create_time, create_by, update_time, update_by
|
create_time, create_by, update_time, update_by
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
@ -63,7 +67,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||||
select
|
select
|
||||||
<include refid="Base_Column_List" />
|
<include refid="Base_Column_List" />
|
||||||
from xhpc_work_type_dict
|
from xhpc_work_type_dict
|
||||||
where work_type_id = #{workTypeId,jdbcType=INTEGER}
|
where work_type_id = #{workTypeId,jdbcType=INTEGER}
|
||||||
@ -91,11 +95,11 @@
|
|||||||
</update>
|
</update>
|
||||||
<insert id="insert" keyColumn="work_type_id" keyProperty="workTypeId" parameterType="com.xhpc.activity.domain.XhpcWorkTypeDictDomain" useGeneratedKeys="true">
|
<insert id="insert" keyColumn="work_type_id" keyProperty="workTypeId" parameterType="com.xhpc.activity.domain.XhpcWorkTypeDictDomain" useGeneratedKeys="true">
|
||||||
insert into xhpc_work_type_dict (name, sort,
|
insert into xhpc_work_type_dict (name, sort,
|
||||||
parent_type_id, `status`, del_flag,
|
parent_type_id, `status`, del_flag, auto_send, user_id, auto_run, measure,
|
||||||
tenant_id, create_time, create_by,
|
tenant_id, create_time, create_by,
|
||||||
update_time, update_by)
|
update_time, update_by)
|
||||||
values (#{name,jdbcType=VARCHAR}, #{sort,jdbcType=SMALLINT},
|
values (#{name,jdbcType=VARCHAR}, #{sort,jdbcType=SMALLINT},
|
||||||
#{parentTypeId,jdbcType=INTEGER}, #{status,jdbcType=SMALLINT}, 0,
|
#{parentTypeId,jdbcType=INTEGER}, #{status,jdbcType=SMALLINT}, 0, #{autoSend}, #{userId}, #{autoRun}, #{measure},
|
||||||
#{tenantId,jdbcType=VARCHAR}, SYSDATE(), #{createBy,jdbcType=VARCHAR},
|
#{tenantId,jdbcType=VARCHAR}, SYSDATE(), #{createBy,jdbcType=VARCHAR},
|
||||||
SYSDATE(), #{updateBy,jdbcType=VARCHAR})
|
SYSDATE(), #{updateBy,jdbcType=VARCHAR})
|
||||||
</insert>
|
</insert>
|
||||||
@ -115,6 +119,18 @@
|
|||||||
`status`,
|
`status`,
|
||||||
</if>
|
</if>
|
||||||
del_flag,
|
del_flag,
|
||||||
|
<if test="autoSend != null">
|
||||||
|
`auto_send`,
|
||||||
|
</if>
|
||||||
|
<if test="userId != null">
|
||||||
|
`user_id`,
|
||||||
|
</if>
|
||||||
|
<if test="autoRun != null">
|
||||||
|
`auto_run`,
|
||||||
|
</if>
|
||||||
|
<if test="measure != null">
|
||||||
|
`measure`,
|
||||||
|
</if>
|
||||||
<if test="tenantId != null">
|
<if test="tenantId != null">
|
||||||
tenant_id,
|
tenant_id,
|
||||||
</if>
|
</if>
|
||||||
@ -141,6 +157,18 @@
|
|||||||
#{status,jdbcType=SMALLINT},
|
#{status,jdbcType=SMALLINT},
|
||||||
</if>
|
</if>
|
||||||
0,
|
0,
|
||||||
|
<if test="autoSend != null">
|
||||||
|
#{autoSend},
|
||||||
|
</if>
|
||||||
|
<if test="userId != null">
|
||||||
|
#{userId},
|
||||||
|
</if>
|
||||||
|
<if test="autoRun != null">
|
||||||
|
#{autoRun},
|
||||||
|
</if>
|
||||||
|
<if test="measure != null">
|
||||||
|
#{measure},
|
||||||
|
</if>
|
||||||
<if test="tenantId != null">
|
<if test="tenantId != null">
|
||||||
#{tenantId,jdbcType=VARCHAR},
|
#{tenantId,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@ -166,6 +194,18 @@
|
|||||||
<if test="parentTypeId != null">
|
<if test="parentTypeId != null">
|
||||||
parent_type_id = #{parentTypeId,jdbcType=INTEGER},
|
parent_type_id = #{parentTypeId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="autoSend != null">
|
||||||
|
`auto_send` =#{autoSend},
|
||||||
|
</if>
|
||||||
|
<if test="userId != null">
|
||||||
|
`user_id`=#{userId},
|
||||||
|
</if>
|
||||||
|
<if test="autoRun != null">
|
||||||
|
`auto_run`=#{autoRun},
|
||||||
|
</if>
|
||||||
|
<if test="measure != null">
|
||||||
|
`measure`=#{measure},
|
||||||
|
</if>
|
||||||
<if test="status != null">
|
<if test="status != null">
|
||||||
`status` = #{status,jdbcType=SMALLINT},
|
`status` = #{status,jdbcType=SMALLINT},
|
||||||
</if>
|
</if>
|
||||||
@ -184,6 +224,10 @@
|
|||||||
set name = #{name,jdbcType=VARCHAR},
|
set name = #{name,jdbcType=VARCHAR},
|
||||||
sort = #{sort,jdbcType=SMALLINT},
|
sort = #{sort,jdbcType=SMALLINT},
|
||||||
parent_type_id = #{parentTypeId,jdbcType=INTEGER},
|
parent_type_id = #{parentTypeId,jdbcType=INTEGER},
|
||||||
|
`auto_send` =#{autoSend},
|
||||||
|
`user_id`=#{userId},
|
||||||
|
`auto_run`=#{autoRun},
|
||||||
|
`measure`=#{measure},
|
||||||
`status` = #{status,jdbcType=SMALLINT},
|
`status` = #{status,jdbcType=SMALLINT},
|
||||||
tenant_id = #{tenantId,jdbcType=VARCHAR},
|
tenant_id = #{tenantId,jdbcType=VARCHAR},
|
||||||
update_time = SYSDATE(),
|
update_time = SYSDATE(),
|
||||||
|
|||||||
@ -11,14 +11,18 @@
|
|||||||
<result column="wechat_openid" jdbcType="VARCHAR" property="wechatOpenid" />
|
<result column="wechat_openid" jdbcType="VARCHAR" property="wechatOpenid" />
|
||||||
<result column="is_leader" jdbcType="SMALLINT" property="isLeader" />
|
<result column="is_leader" jdbcType="SMALLINT" property="isLeader" />
|
||||||
<result column="status" jdbcType="SMALLINT" property="status" />
|
<result column="status" jdbcType="SMALLINT" property="status" />
|
||||||
|
<result column="type" property="type" />
|
||||||
|
<result column="operator_ids" property="operatorIds" />
|
||||||
|
<result column="station_ids" property="stationIds" />
|
||||||
<result column="del_flag" jdbcType="SMALLINT" property="delFlag" />
|
<result column="del_flag" jdbcType="SMALLINT" property="delFlag" />
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
u.work_user_id, u.user_name, u.dept_id, u.post_name, u.phone, u.email, u.wechat_openid, u.is_leader,
|
u.work_user_id, u.user_name, u.dept_id, u.post_name, u.phone, u.email, u.wechat_openid, u.is_leader, u.type, u.operator_ids, u.station_ids,
|
||||||
u.`status`, u.del_flag, u.create_time, u.create_by, u.update_time, u.update_by
|
u.`status`, u.del_flag, u.create_time, u.create_by, u.update_time, u.update_by
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
@ -53,7 +57,7 @@
|
|||||||
|
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long"
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long"
|
||||||
resultType="com.xhpc.activity.domain.XhpcWorkUserDomain">
|
resultType="com.xhpc.activity.domain.XhpcWorkUserDomain">
|
||||||
select
|
select
|
||||||
<include refid="Base_Column_List" />, su.user_name as 'login_name', GROUP_CONCAT(r.role_id) as 'role_id', "123456" as 'login_password'
|
<include refid="Base_Column_List" />, su.user_name as 'login_name', GROUP_CONCAT(r.role_id) as 'role_id', "123456" as 'login_password'
|
||||||
from xhpc_work_user u
|
from xhpc_work_user u
|
||||||
left join sys_user su on su.phonenumber = u.phone
|
left join sys_user su on su.phonenumber = u.phone
|
||||||
@ -69,13 +73,13 @@
|
|||||||
|
|
||||||
|
|
||||||
<insert id="insert" keyColumn="work_user_id" keyProperty="workUserId" parameterType="com.xhpc.activity.domain.XhpcWorkUserDomain" useGeneratedKeys="true">
|
<insert id="insert" keyColumn="work_user_id" keyProperty="workUserId" parameterType="com.xhpc.activity.domain.XhpcWorkUserDomain" useGeneratedKeys="true">
|
||||||
insert into xhpc_work_user (user_name, dept_id, post_name,
|
insert into xhpc_work_user (user_name, dept_id, post_name,
|
||||||
phone, email, wechat_openid,
|
phone, email, wechat_openid, type, operator_ids, station_ids,
|
||||||
is_leader, `status`, del_flag,
|
is_leader, `status`, del_flag,
|
||||||
create_time, create_by, update_time,
|
create_time, create_by, update_time,
|
||||||
update_by)
|
update_by)
|
||||||
values (#{userName,jdbcType=VARCHAR}, #{deptId,jdbcType=BIGINT}, #{postName,jdbcType=VARCHAR},
|
values (#{userName,jdbcType=VARCHAR}, #{deptId,jdbcType=BIGINT}, #{postName,jdbcType=VARCHAR},
|
||||||
#{phone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{wechatOpenid,jdbcType=VARCHAR},
|
#{phone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{wechatOpenid,jdbcType=VARCHAR}, #{type}, #{operatorIds}, #{stationIds},
|
||||||
#{isLeader,jdbcType=SMALLINT}, #{status,jdbcType=SMALLINT}, 0,
|
#{isLeader,jdbcType=SMALLINT}, #{status,jdbcType=SMALLINT}, 0,
|
||||||
sysdate(), #{createBy,jdbcType=VARCHAR}, sysdate(),
|
sysdate(), #{createBy,jdbcType=VARCHAR}, sysdate(),
|
||||||
#{updateBy,jdbcType=VARCHAR})
|
#{updateBy,jdbcType=VARCHAR})
|
||||||
@ -90,6 +94,9 @@
|
|||||||
phone = #{phone,jdbcType=VARCHAR},
|
phone = #{phone,jdbcType=VARCHAR},
|
||||||
email = #{email,jdbcType=VARCHAR},
|
email = #{email,jdbcType=VARCHAR},
|
||||||
wechat_openid = #{wechatOpenid,jdbcType=VARCHAR},
|
wechat_openid = #{wechatOpenid,jdbcType=VARCHAR},
|
||||||
|
type = #{type},
|
||||||
|
operator_ids=#{operatorIds},
|
||||||
|
station_ids=#{stationIds},
|
||||||
is_leader = #{isLeader,jdbcType=SMALLINT},
|
is_leader = #{isLeader,jdbcType=SMALLINT},
|
||||||
`status` = #{status,jdbcType=SMALLINT},
|
`status` = #{status,jdbcType=SMALLINT},
|
||||||
update_time = sysdate(),
|
update_time = sysdate(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user