glj-代码提交

This commit is contained in:
管李杰 2024-02-28 11:31:40 +08:00
parent 3a065dd9bc
commit 60e0c3ed00
3 changed files with 10 additions and 3 deletions

View File

@ -87,6 +87,11 @@ public class UserVo {
*/ */
private String roleId; private String roleId;
private String lastName;
private String firstName;
//国家 //国家
private String country; private String country;

View File

@ -885,6 +885,7 @@
LEFT JOIN guest_manage_disaster_ref gmdr on gmdr.disaster_id = di.id LEFT JOIN guest_manage_disaster_ref gmdr on gmdr.disaster_id = di.id
<where> <where>
gmdr.manager_id = #{userId} gmdr.manager_id = #{userId}
and di.respond_status > 1
</where> </where>
</select> </select>

View File

@ -28,8 +28,8 @@
</update> </update>
<update id="updateAccount"> <update id="updateAccount">
update blade_user t set t.name = #{userVo.name}, t.real_name = #{userVo.realName}, t.organization = #{userVo.organization}, update blade_user t set t.name = #{userVo.name}, t.real_name = #{userVo.realName}, t.last_name = #{userVo.lastName}, t.first_name = #{userVo.firstName}, t.organization = #{userVo.organization},
t.research_field = #{userVo.researchField}, t.occupation = #{userVo.occupation}, t.code = #{userVo.country} t.research_field = #{userVo.researchField}, t.occupation = #{userVo.occupation}, t.country = #{userVo.country}
where t.id = #{userVo.id} where t.id = #{userVo.id}
</update> </update>
@ -54,8 +54,9 @@
<select id="getByUserStatisticsTwo" resultType="java.lang.Integer"> <select id="getByUserStatisticsTwo" resultType="java.lang.Integer">
select count(di.id) select count(di.id)
FROM disaster_info di FROM disaster_info di
LEFT JOIN guest_manage_disaster_ref gmdr on gmdr.disaster_id = di.id
<where> <where>
di.chief_id = #{userId} gmdr.manager_id = #{userId}
and di.respond_status > 1 and di.respond_status > 1
</where> </where>
</select> </select>