diff --git a/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/domain/XhpcWorkOrderDomain.java b/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/domain/XhpcWorkOrderDomain.java index 2bcb9c8f..da833ba0 100644 --- a/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/domain/XhpcWorkOrderDomain.java +++ b/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/domain/XhpcWorkOrderDomain.java @@ -8,7 +8,7 @@ import java.util.List; /** * xhpc_work_order - * @author + * @author */ @Data public class XhpcWorkOrderDomain implements Serializable { @@ -51,6 +51,8 @@ public class XhpcWorkOrderDomain implements Serializable { */ private String serialNumber; + private Long stationId; + /** * 故障原因 */ diff --git a/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/domain/XhpcWorkTypeDictDomain.java b/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/domain/XhpcWorkTypeDictDomain.java index dcd85905..7756863f 100644 --- a/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/domain/XhpcWorkTypeDictDomain.java +++ b/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/domain/XhpcWorkTypeDictDomain.java @@ -25,6 +25,24 @@ public class XhpcWorkTypeDictDomain implements Serializable { */ private Integer parentTypeId; + + /** + * 是否自动派发(0-不自动派发,1-自动派发) + */ + private Integer autoSend = 0; + + /** + * 自动派发的人员 + */ + private Integer userId; + + /** + * 是否自动采取应急措施(0-不自动采取,1-自动) + */ + private Integer autoRun; + private Integer measure; + + /** * 状态0-禁用,1-启用 */ diff --git a/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/domain/XhpcWorkUserDomain.java b/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/domain/XhpcWorkUserDomain.java index 7e40493d..44f01b75 100644 --- a/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/domain/XhpcWorkUserDomain.java +++ b/xhpc-modules/xhpc-activity/src/main/java/com/xhpc/activity/domain/XhpcWorkUserDomain.java @@ -7,7 +7,7 @@ import java.util.Date; /** * xhpc_work_user - * @author + * @author */ @Data public class XhpcWorkUserDomain implements Serializable { @@ -51,6 +51,15 @@ public class XhpcWorkUserDomain implements Serializable { */ private Short isLeader; + + /** + * 人员类型(1-管理员,2-运维人员) + */ + private Integer type; + + private String operatorIds; + private String stationIds; + /** * 状态(0-未启用,1-正常) */ diff --git a/xhpc-modules/xhpc-activity/src/main/resources/mapper/XhpcWorkOrderMapper.xml b/xhpc-modules/xhpc-activity/src/main/resources/mapper/XhpcWorkOrderMapper.xml index 4b45bc74..dfba4dbc 100644 --- a/xhpc-modules/xhpc-activity/src/main/resources/mapper/XhpcWorkOrderMapper.xml +++ b/xhpc-modules/xhpc-activity/src/main/resources/mapper/XhpcWorkOrderMapper.xml @@ -9,6 +9,7 @@ + @@ -22,7 +23,7 @@ - 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.update_by, o.remark @@ -130,6 +131,9 @@ serial_number, + + station_id, + reason, @@ -172,6 +176,9 @@ #{serialNumber,jdbcType=VARCHAR}, + + #{stationId}, + #{reason,jdbcType=VARCHAR}, @@ -224,6 +231,9 @@ serial_number = #{serialNumber,jdbcType=VARCHAR}, + + station_id = #{stationId}, + reason = #{reason,jdbcType=VARCHAR}, @@ -254,6 +264,7 @@ fault_time = #{faultTime, jdbcType=TIMESTAMP}, device_type = #{deviceType,jdbcType=VARCHAR}, serial_number = #{serialNumber,jdbcType=VARCHAR}, + station_id=#{stationId}, reason = #{reason,jdbcType=VARCHAR}, disposal_method = #{disposalMethod,jdbcType=VARCHAR}, `status` = #{status,jdbcType=SMALLINT}, diff --git a/xhpc-modules/xhpc-activity/src/main/resources/mapper/XhpcWorkTypeDictMapper.xml b/xhpc-modules/xhpc-activity/src/main/resources/mapper/XhpcWorkTypeDictMapper.xml index 6f9cfad3..1675c35f 100644 --- a/xhpc-modules/xhpc-activity/src/main/resources/mapper/XhpcWorkTypeDictMapper.xml +++ b/xhpc-modules/xhpc-activity/src/main/resources/mapper/XhpcWorkTypeDictMapper.xml @@ -7,6 +7,10 @@ + + + + @@ -15,7 +19,7 @@ - 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 @@ -63,7 +67,7 @@ - select + select , su.user_name as 'login_name', GROUP_CONCAT(r.role_id) as 'role_id', "123456" as 'login_password' from xhpc_work_user u left join sys_user su on su.phonenumber = u.phone @@ -69,13 +73,13 @@ - insert into xhpc_work_user (user_name, dept_id, post_name, - phone, email, wechat_openid, - is_leader, `status`, del_flag, - create_time, create_by, update_time, + insert into xhpc_work_user (user_name, dept_id, post_name, + phone, email, wechat_openid, type, operator_ids, station_ids, + is_leader, `status`, del_flag, + create_time, create_by, update_time, update_by) - values (#{userName,jdbcType=VARCHAR}, #{deptId,jdbcType=BIGINT}, #{postName,jdbcType=VARCHAR}, - #{phone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{wechatOpenid,jdbcType=VARCHAR}, + values (#{userName,jdbcType=VARCHAR}, #{deptId,jdbcType=BIGINT}, #{postName,jdbcType=VARCHAR}, + #{phone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{wechatOpenid,jdbcType=VARCHAR}, #{type}, #{operatorIds}, #{stationIds}, #{isLeader,jdbcType=SMALLINT}, #{status,jdbcType=SMALLINT}, 0, sysdate(), #{createBy,jdbcType=VARCHAR}, sysdate(), #{updateBy,jdbcType=VARCHAR}) @@ -90,6 +94,9 @@ phone = #{phone,jdbcType=VARCHAR}, email = #{email,jdbcType=VARCHAR}, wechat_openid = #{wechatOpenid,jdbcType=VARCHAR}, + type = #{type}, + operator_ids=#{operatorIds}, + station_ids=#{stationIds}, is_leader = #{isLeader,jdbcType=SMALLINT}, `status` = #{status,jdbcType=SMALLINT}, update_time = sysdate(),