| | |
| | | private String departDes; |
| | | |
| | | @ApiModelProperty("部门类型") |
| | | private byte departType; |
| | | private Long departType; |
| | | |
| | | @ApiModelProperty("父级id,默认0") |
| | | private Long parentId; |
| | | |
| | | @ApiModelProperty("停用状态,0->false,1->true,默认停用") |
| | | private byte status; |
| | | private Short status; |
| | | |
| | | /** |
| | | * 逻辑删除 0:false 1:true 默认0 |
| | |
| | | } |
| | | UmsDepart depart = new UmsDepart(); |
| | | BeanUtils.copyProperties(addDepartVO, depart); |
| | | depart.setStatus(Short.valueOf("1")); |
| | | if (sccgDepartMapper.insert(depart) != 1) { |
| | | throw new ApiException(ResultCode.RECORD_SAVE_FAIL); |
| | | } |
| | |
| | | private String departDes; |
| | | |
| | | @ApiModelProperty("部门类型") |
| | | private byte departType; |
| | | private Long departType; |
| | | |
| | | @ApiModelProperty("用户Id") |
| | | private Long userId; |
| | |
| | | } |
| | | |
| | | @GetMapping("/queryByCode") |
| | | @ApiOperation(("/根据code获取字段信息")) |
| | | private CommonResult<DataDictionary> queryByCode(@RequestParam(value = "code") String code){ |
| | | DataDictionary dataDictionary = iDatabaseDictionaryService.queryByCode(code); |
| | | @ApiOperation(("根据code获取字段信息")) |
| | | private CommonResult<List<DataDictionary>> queryByCode(@RequestParam(value = "code") String code){ |
| | | List<DataDictionary> dataDictionary = iDatabaseDictionaryService.queryByCode(code); |
| | | return CommonResult.success(dataDictionary); |
| | | } |
| | | } |
| | |
| | | * @param code |
| | | * @return |
| | | */ |
| | | DataDictionary queryByCode(String code); |
| | | List<DataDictionary> queryByCode(String code); |
| | | |
| | | Page listIllegalBuildingSettings(Page<DataDictionary> dataDictionaryPage, String keyWork); |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public DataDictionary queryByCode(String code) { |
| | | public List<DataDictionary> queryByCode(String code) { |
| | | LambdaQueryWrapper<DataDictionary> queryWrapper = new LambdaQueryWrapper<DataDictionary>().eq(DataDictionary::getTypeCode, code); |
| | | DataDictionary dataDictionary = dataDictionaryMapper.selectOne(queryWrapper); |
| | | List<DataDictionary> dataDictionary = dataDictionaryMapper.selectList(queryWrapper); |
| | | return dataDictionary; |
| | | } |
| | | |