随手拍app功能优化
This commit is contained in:
parent
cecaeae91b
commit
d1f18db2a2
|
|
@ -42,4 +42,5 @@ public class SnapshotBean {
|
|||
private String endTime;
|
||||
private String type;
|
||||
private String roleName;
|
||||
private String shootingLocation;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@
|
|||
<mapper namespace="com.bonus.app.mapper.AppSnapshotMapper">
|
||||
<insert id="addSnapshotForm" useGeneratedKeys="true" keyProperty="bean.snapshotId">
|
||||
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>
|
||||
<insert id="addSnapshotPhoto">
|
||||
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}
|
||||
</update>
|
||||
<delete id="delSnapshotPhoto">
|
||||
|
|
@ -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'
|
||||
<if test="userId != null and userId != ''">
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
<if test="type != null and type != ''">
|
||||
|
|
|
|||
Loading…
Reference in New Issue