Merge remote-tracking branch 'origin/master'
| | |
| | | @RestController |
| | | @RequestMapping(AppConstant.APPLICATION_FLOW_NAME + "/follow") |
| | | @AllArgsConstructor |
| | | @PreAuth("hasAnyRole('administrator', 'admin','jdgly','sqgly')") |
| | | //@PreAuth("hasAnyRole('administrator', 'admin','jdgly','sqgly')") |
| | | @ApiIgnore |
| | | public class FlowFollowController { |
| | | |
| | |
| | | @RequestMapping(AppConstant.APPLICATION_FLOW_NAME + "/manager") |
| | | @AllArgsConstructor |
| | | @Api(value = "流程管理接口", tags = "流程管理接口") |
| | | @PreAuth("hasAnyRole('administrator', 'admin','jdgly','sqgly')") |
| | | //@PreAuth("hasAnyRole('administrator', 'admin','jdgly','sqgly')") |
| | | @ApiIgnore |
| | | public class FlowManagerController { |
| | | |
| | |
| | | @RestController |
| | | @RequestMapping(AppConstant.APPLICATION_FLOW_NAME + "/model") |
| | | @AllArgsConstructor |
| | | @PreAuth("hasAnyRole('administrator', 'admin','jdgly','sqgly')") |
| | | //@PreAuth("hasAnyRole('administrator', 'admin','jdgly','sqgly')") |
| | | @ApiIgnore |
| | | public class FlowModelController { |
| | | |
| | |
| | | houseParam.setUserId(userId); |
| | | if (null != houseParam.getRoleName() && !houseParam.getRoleName().equals("")) { |
| | | if (houseParam.getRoleName().equals("民警") && !userId.equals("1726859808689696770")) { |
| | | // 查询对应的房屋地址code |
| | | stringList = policeAffairsGridService.getCommunityCodeListByUserId(AuthUtil.getUserId()); |
| | | // 查询对应社区编号集合 |
| | | stringList = SysCache.getPoliceRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | } |
| | | } |
| | | return stringList; |
| | |
| | | * 新增或修改 |
| | | */ |
| | | @PostMapping("/submit") |
| | | @PreAuth(RoleConstant.HAS_ROLE_ADMINISTRATOR) |
| | | // @PreAuth(RoleConstant.HAS_ROLE_ADMINISTRATOR) |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "新增或修改", notes = "传入menu") |
| | | public R submit(@Valid @RequestBody MenuDTO menu) { |
| | |
| | | List<ECallEventVO> selectECallEventPage(IPage page, |
| | | @Param("eCallEvent") ECallEventVO eCallEvent, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("gridCodeList") List<String> gridCodeList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | |
| | |
| | | <!--取保候审人员查询--> |
| | | <select id="getBailReportingPage" resultType="org.springblade.modules.task.vo.TaskVO"> |
| | | SELECT |
| | | IFNULL( jda.address_name, jp.location ) AS address_name, |
| | | IFNULL( jda.address_name, jh.house_name ) AS address_name, |
| | | jtbre.apply_name, |
| | | jh.district_code aoiCode, |
| | | jda.region_code, |
| | |
| | | </if> |
| | | |
| | | <if test="task.aoiCode != null and task.aoiCode != null"> |
| | | and jgr.district_code = #{task.aoiCode} |
| | | and jh.district_code = #{task.aoiCode} |
| | | </if> |
| | | |
| | | <if test="task.neiCode != null and task.neiCode != null"> |
| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.common.param.CommonParamSet; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.system.entity.Dept; |
| | | import org.springblade.modules.system.service.IDeptService; |
| | |
| | | |
| | | @Override |
| | | public IPage<ECallEventVO> selectECallEventPage(IPage<ECallEventVO> page, ECallEventVO eCallEvent) { |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | return page.setRecords(baseMapper.selectECallEventPage(page, eCallEvent,regionChildCodesList,isAdministrator)); |
| | | CommonParamSet invoke = new CommonParamSet<>().invoke(ECallEventVO.class, eCallEvent); |
| | | return page.setRecords(baseMapper.selectECallEventPage(page, |
| | | eCallEvent, |
| | | invoke.getRegionChildCodesList(), |
| | | invoke.getGridCodeList(), |
| | | invoke.getIsAdministrator())); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | private String communityName; |
| | | |
| | | /** |
| | | * 角色名称 |
| | | */ |
| | | private String roleName; |
| | | |
| | | } |