| | |
| | | WHERE 1=1 |
| | | <if test='comActDynVO.category != null '> |
| | | <if test="comActDynVO.category != 3"> |
| | | <if test='comActDynVO.choice == 0 '> |
| | | and d.community_id = ${comActDynVO.communityId} |
| | | </if> |
| | | <if test='comActDynVO.areaCode !=null '> |
| | | and ca.area_code = ${comActDynVO.areaCode} |
| | | </if> |
| | | </if> |
| | | and d.category = #{comActDynVO.category} |
| | | </if> |
| | |
| | | @Select("select name from sys_user where user_id=#{createBy}") |
| | | String selectNameByUserId(Long createBy); |
| | | |
| | | @Update("update sys_user u set u.is_partymember=0 where u.id_card=#{idCard}") |
| | | void updateUserIsPartymember(String idCard); |
| | | @Update("update sys_user u set u.is_partymember=0 where u.phone=#{phone}") |
| | | void updateUserIsPartymember(String phone); |
| | | |
| | | @Select("<script> " + "SELECT\n" + "o.`name` orgName,\n" + "m.org_id,\n" + "m.id_card,\n" + "m.`id`,\n" |
| | | + "u.phone,\n" + "m.`name`,\n" + "m.photo_path,\n" + "TIMESTAMPDIFF(\n" + "YEAR,\n" + "m.employment_time,\n" |
| | |
| | | int delete = comPbMemberDAO.deleteById(id); |
| | | if (delete > 0) { |
| | | // 维护用户表党员状态 |
| | | comPbMemberDAO.updateUserIsPartymember(comPbMemberDO.getIdCard()); |
| | | comPbMemberDAO.updateUserIsPartymember(comPbMemberDO.getPhone()); |
| | | // 删除缓存 |
| | | String userKey = UserConstants.LOGIN_USER_INFO + comPbMemberDO.getUserId(); |
| | | stringRedisTemplate.delete(userKey); |
| | |
| | | and cpcu.`name` like concat(#{dto.name},'%') |
| | | </if> |
| | | <if test="dto.contacts != null and dto.contacts != ''"> |
| | | and cpcu.`contacts` like concat(#{dto.name},'%') |
| | | and cpcu.`contacts` like concat(#{dto.contacts},'%') |
| | | </if> |
| | | </where> |
| | | order by cpcu.create_at desc |
| | |
| | | select |
| | | m.id, m.org_id, m.name, m.id_card, m.photo_path, m.join_time, m.employment_time, m.audit_result, m.create_at, m.update_at, |
| | | m.community_id, u.user_id, m.refuse_reason, m.phone, m.type, m.position, m.check_unit_id, m.function, m.specialty_category, |
| | | m.specialty_name, m.position_two, m.org_name,cpcu.name as checkUnitName,t2.partyTime,t2.partyInterval, |
| | | canct.name as specialty_name, m.position_two, m.org_name,cpcu.name as checkUnitName,t2.partyTime,t2.partyInterval, |
| | | TIMESTAMPDIFF( |
| | | YEAR, |
| | | m.employment_time, |
| | |
| | | LEFT JOIN sys_user u ON m.id_card = u.id_card and u.type = 1 |
| | | LEFT JOIN com_pb_org o ON m.org_id = o.id |
| | | LEFT JOIN com_pb_check_unit as cpcu ON m.check_unit_id = cpcu.id |
| | | LEFT JOIN com_act_neighbor_circle_topic canct on m.specialty_category = canct.id |
| | | LEFT JOIN (select t1.user_id,sum(t.duration) as partyTime,sum(t.reward_integral) as partyInterval from com_act_activity t LEFT JOIN com_act_act_regist t1 on t.id = t1.activity_id where t.type = 3 |
| | | <if test="dto.startTime !=null"> |
| | | and t.begin_at between #{dto.startTime} and #{dto.endTime} |
| | |
| | | <if test="dto.name != null"> |
| | | and m.name like concat('%',#{dto.name},'%') |
| | | </if> |
| | | <if test="dto.communityId != null"> |
| | | and m.community_id =#{dto.communityId} |
| | | </if> |
| | | order by m.create_at desc |
| | | </select> |
| | | </mapper> |