Merge branch 'zigonggao_dev' of http://gitlab.nhys.cdnhxx.com/root/zhihuishequ into zigonggao_dev
| | |
| | | @ApiOperation("编辑角色") |
| | | @PostMapping("/update") |
| | | @Authorization |
| | | public ResultData updateConfig(@RequestBody RoleManagementEntity entity) |
| | | public ResultData updateConfig(@RequestBody RoleManagementEntity entity,@CurrentUser SysUser sysUser) |
| | | { |
| | | // entity.setUpdateUserId(sysUser.getUserId()+""); |
| | | entity.setUpdateUserId(sysUser.getUserId()+""); |
| | | return toAjax(iRoleManagementService.updateConfig(entity)); |
| | | } |
| | | |
| | |
| | | ( classify_id in ( SELECT id FROM automessage_classify_administration WHERE classify_name like concat('%', #{matterName}, '%') ) ) |
| | | or (classify_id in (SELECT id FROM automessage_classify_administration WHERE automessage_classify_administration.parent_id in |
| | | (SELECT id FROM automessage_classify_administration WHERE classify_name like concat('%', #{matterName}, '%'))) |
| | | or (select user_name from automessage_sys_user where a.guide_user_id=automessage_sys_user.user_id ) like concat('%', #{matterName}, '%') ) |
| | | or (select user_name from automessage_sys_user where automessage_guide_repair_order.guide_user_id=automessage_sys_user.user_id ) like concat('%', #{matterName}, '%') ) |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND automessage_guide_repair_order.state=#{status} |
| | |
| | | * @return |
| | | */ |
| | | SysUserVO selectUser(@Param("phone") String phone); |
| | | |
| | | /** |
| | | * 插入一条人大代表记录 |
| | | * */ |
| | | int insertComActDpc(@Param("comActDpc") ComActDpc comActDpc); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.constants.UserConstants; |
| | | import com.panzhihua.common.model.vos.user.SysUserVO; |
| | | import com.panzhihua.common.utlis.Snowflake; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | import com.panzhihua.service_community.service.ComActDpcService; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 人大代表(ComActDpc)表服务实现类 |
| | |
| | | |
| | | @Resource |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | @Resource |
| | | private ComActDpcDAO comActDpcDAO; |
| | | |
| | | /** |
| | | * 新增人大代表 |
| | |
| | | } |
| | | } |
| | | dpc = new ComActDpc(); |
| | | dpc.setId(Snowflake.getId()); |
| | | dpc.setCreatedAt(new Date()); |
| | | BeanUtils.copyProperties(addDpcDTO, dpc); |
| | | int result = this.baseMapper.insert(dpc); |
| | | int result = comActDpcDAO.insertComActDpc(dpc); |
| | | if (result > 0) { |
| | | refreshAssociateUserCash(addDpcDTO.getPhone()); |
| | | return R.ok(); |
| | |
| | | SELECT user_id, `name`, phone |
| | | FROM sys_user WHERE `type` = 1 AND phone = #{phone} |
| | | </select> |
| | | <insert id="insertComActDpc"> |
| | | insert into com_act_dpc |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="comActDpc.id != null"> |
| | | id, |
| | | </if> |
| | | <if test="comActDpc.name != null and comActDpc.name != ''"> |
| | | name, |
| | | </if> |
| | | <if test="comActDpc.phone != null and comActDpc.phone != ''"> |
| | | phone, |
| | | </if> |
| | | <if test="comActDpc.nation != null and comActDpc.nation != ''"> |
| | | nation, |
| | | </if> |
| | | <if test="comActDpc.sex != null"> |
| | | sex, |
| | | </if> |
| | | <if test="comActDpc.area != null and comActDpc.area != ''"> |
| | | area, |
| | | </if> |
| | | <if test="comActDpc.belong != null and comActDpc.belong != ''"> |
| | | belong, |
| | | </if> |
| | | <if test="comActDpc.category != null and comActDpc.category != ''"> |
| | | category, |
| | | </if> |
| | | <if test="comActDpc.position != null and comActDpc.position != ''"> |
| | | position, |
| | | </if> |
| | | <if test="comActDpc.photo != null and comActDpc.photo != ''"> |
| | | photo, |
| | | </if> |
| | | <if test="comActDpc.communityId != null"> |
| | | community_id, |
| | | </if> |
| | | <if test="comActDpc.createdBy != null "> |
| | | created_by, |
| | | </if> |
| | | <if test="comActDpc.createdAt != null "> |
| | | created_at, |
| | | </if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="comActDpc.id != null"> |
| | | #{comActDpc.id}, |
| | | </if> |
| | | <if test="comActDpc.name != null and comActDpc.name != ''"> |
| | | #{comActDpc.name}, |
| | | </if> |
| | | <if test="comActDpc.phone != null and comActDpc.phone != ''"> |
| | | #{comActDpc.phone}, |
| | | </if> |
| | | <if test="comActDpc.nation != null and comActDpc.nation != ''"> |
| | | #{comActDpc.nation}, |
| | | </if> |
| | | <if test="comActDpc.sex != null"> |
| | | #{comActDpc.sex}, |
| | | </if> |
| | | <if test="comActDpc.area != null and comActDpc.area != ''"> |
| | | #{comActDpc.area}, |
| | | </if> |
| | | <if test="comActDpc.belong != null and comActDpc.belong != ''"> |
| | | #{comActDpc.belong}, |
| | | </if> |
| | | <if test="comActDpc.category != null and comActDpc.category != ''"> |
| | | #{comActDpc.category}, |
| | | </if> |
| | | <if test="comActDpc.position != null and comActDpc.position != ''"> |
| | | #{comActDpc.position}, |
| | | </if> |
| | | <if test="comActDpc.photo != null and comActDpc.photo != ''"> |
| | | #{comActDpc.photo}, |
| | | </if> |
| | | <if test="comActDpc.communityId != null "> |
| | | #{comActDpc.communityId}, |
| | | </if> |
| | | <if test="comActDpc.createdBy != null "> |
| | | #{comActDpc.createdBy}, |
| | | </if> |
| | | <if test="comActDpc.createdAt != null "> |
| | | #{comActDpc.createdAt}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | </mapper> |
| | | |