diff --git a/bonus-common/bonus-common-entity/src/main/java/com/bonus/common/safetycheck/SnapshotBean.java b/bonus-common/bonus-common-entity/src/main/java/com/bonus/common/safetycheck/SnapshotBean.java index 305fecd..df68df4 100644 --- a/bonus-common/bonus-common-entity/src/main/java/com/bonus/common/safetycheck/SnapshotBean.java +++ b/bonus-common/bonus-common-entity/src/main/java/com/bonus/common/safetycheck/SnapshotBean.java @@ -42,4 +42,5 @@ public class SnapshotBean { private String endTime; private String type; private String roleName; + private String shootingLocation; } diff --git a/bonus-modules/bonus-app/src/main/resources/mapper/snapshot/AppSnapshotMapper.xml b/bonus-modules/bonus-app/src/main/resources/mapper/snapshot/AppSnapshotMapper.xml index c29a0e8..b4c4601 100644 --- a/bonus-modules/bonus-app/src/main/resources/mapper/snapshot/AppSnapshotMapper.xml +++ b/bonus-modules/bonus-app/src/main/resources/mapper/snapshot/AppSnapshotMapper.xml @@ -5,10 +5,10 @@ insert into st_snapshot - (pro_id, pro_name, description, status, into_status, create_user_id, create_user_name, phone, dept_id, dept_name, post_id, post_name, is_active) + (pro_id, pro_name, description, status, into_status, create_user_id, create_user_name, phone, dept_id, dept_name, post_id, post_name, is_active,shooting_location) values (#{bean.proId}, #{bean.proName}, #{bean.description}, '1', '0', - #{bean.userId}, #{bean.userName}, #{userInfo.phone}, #{userInfo.deptId}, #{userInfo.deptName}, #{userInfo.postId}, #{userInfo.postName}, '1') + #{bean.userId}, #{bean.userName}, #{userInfo.phone}, #{userInfo.deptId}, #{userInfo.deptName}, #{userInfo.postId}, #{userInfo.postName}, '1',#{bean.shootingLocation}) insert into st_file @@ -28,7 +28,8 @@ update st_snapshot set pro_id = #{bean.proId}, pro_name = #{bean.proName}, - description = #{bean.description} + description = #{bean.description}, + shooting_location = #{bean.shootingLocation} where id = #{bean.snapshotId} @@ -51,7 +52,8 @@ dept_id as deptId, dept_name as deptName, post_id as postId, - post_name as postName + post_name as postName, + shooting_location as shootingLocation from st_snapshot where is_active = '1' diff --git a/bonus-modules/bonus-project/src/main/resources/mapper/system/SnapshotMapper.xml b/bonus-modules/bonus-project/src/main/resources/mapper/system/SnapshotMapper.xml index a33975a..8947e7c 100644 --- a/bonus-modules/bonus-project/src/main/resources/mapper/system/SnapshotMapper.xml +++ b/bonus-modules/bonus-project/src/main/resources/mapper/system/SnapshotMapper.xml @@ -54,7 +54,8 @@ dept_id as deptId, dept_name as deptName, post_id as postId, - post_name as postName + post_name as postName, + shooting_location as shootingLocation from st_snapshot where is_active = '1'