Merge remote-tracking branch 'origin/wb' into wb
| | |
| | | return ResultMessage.ok(professions); |
| | | } |
| | | |
| | | @ApiOperation(value = "责任单位", notes = "责任单位") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "token", value = "token", required = true, paramType = "header", dataType = "String") |
| | | }) |
| | | @RequestMapping(value = "unit", method = RequestMethod.GET) |
| | | public ResultMessage unit() { |
| | | List<ResponsibilityUnit> responsibilityUnits = allocationService.seleteUnit(); |
| | | return ResultMessage.ok(responsibilityUnits); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 添加交办单 |
| | |
| | | |
| | | List<Map<String, Object>> sysDictData(String code); |
| | | |
| | | List<ResponsibilityUnit> seleteUnit(); |
| | | |
| | | Integer insertAllocation(AllocationAddCond allocation); |
| | | |
| | | void updateAll(AllocationUpdateCond allocationUpdateCond); |
| | |
| | | return sysDictDataMapper.selectMaps(dataQueryWrapper); |
| | | } |
| | | |
| | | /** |
| | | * 查询责任主体 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ResponsibilityUnit> seleteUnit() { |
| | | QueryWrapper<ResponsibilityUnit> wrapper = new QueryWrapper<>(); |
| | | wrapper.select("unit_name","unit_id"); |
| | | wrapper.eq("is_del",Constants.NOT_DELETE); |
| | | wrapper.eq("state",0); |
| | | wrapper.eq("is_invalid",0); |
| | | |
| | | //获取用户信息 |
| | | List<Integer> unitList = unitResult(); |
| | | if (CollectionUtils.isNotEmpty(unitList)){ |
| | | wrapper.in("unit_id",unitList); |
| | | } |
| | | List<ResponsibilityUnit> responsibilityUnits = responsibilityUnitMapper.selectList(wrapper); |
| | | return responsibilityUnits; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 添加交办单 |