feat: 根据部门和层级获取人员 及 区域 及 全部意见CID条件查询
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
package com.adc.da.slrs.utArea.controller;
|
||||
|
||||
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.slrs.utArea.page.UtAreaEOPage;
|
||||
import com.adc.da.slrs.utArea.service.IUtAreaService;
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.adc.da.slrs.utArea.entity.UtArea;
|
||||
import io.swagger.annotations.Api;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-04
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/lawssBase/utArea")
|
||||
@Api(tags = "福田标准法规--标准法规库--区域")
|
||||
public class UtAreaController extends BaseController<UtArea> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(UtAreaController.class);
|
||||
|
||||
@Autowired
|
||||
private IUtAreaService utAreaEOService;
|
||||
|
||||
@ApiOperation(value = "|UtAreaEO|下拉框选项格式查询")
|
||||
@GetMapping("/getAreaList")
|
||||
// @RequiresPermissions("lawssBase:utArea:list")
|
||||
public ResponseMessage<List<SelectionResult>> getAreaList(UtArea utAreaEO) throws Exception {
|
||||
return Result.success(utAreaEOService.getAreaSelList(utAreaEO));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.adc.da.slrs.utArea.dao;
|
||||
|
||||
import com.adc.da.slrs.utArea.entity.UtArea;
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-04
|
||||
*/
|
||||
public interface UtAreaDao extends BaseMapper<UtArea> {
|
||||
|
||||
List<SelectionResult> getAreaSelList(UtArea utAreaEO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.adc.da.slrs.utArea.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-04
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value="UtArea对象", description="")
|
||||
public class UtArea extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
@TableId("ID")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "展示区域名称")
|
||||
@TableField("AREA_NAME")
|
||||
private String areaName;
|
||||
|
||||
@ApiModelProperty(value = "展示顺序")
|
||||
@TableField("SHOW_INDEX")
|
||||
private Integer showIndex;
|
||||
|
||||
@ApiModelProperty(value = "资源类型")
|
||||
@TableField("SAR_TYPE")
|
||||
private String sarType;
|
||||
|
||||
@TableField("CREATION_USER")
|
||||
private String creationUser;
|
||||
|
||||
@ApiModelProperty(value = "是否有效")
|
||||
@TableField("VALID_FLAG")
|
||||
private Integer validFlag;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATION_TIME")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@TableField("MODIFY_TIME")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.adc.da.slrs.utArea.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>UT_AREA UtAreaEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-10-16 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class UtAreaEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String areaName;
|
||||
private String areaNameOperator = "=";
|
||||
private String showIndex;
|
||||
private String showIndexOperator = "=";
|
||||
private String sarType;
|
||||
private String sarTypeOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String notId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.adc.da.slrs.utArea.service;
|
||||
|
||||
import com.adc.da.slrs.utArea.entity.UtArea;
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-04
|
||||
*/
|
||||
public interface IUtAreaService extends IService<UtArea> {
|
||||
|
||||
List<SelectionResult> getAreaSelList(UtArea utAreaEO);
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.adc.da.slrs.utArea.service.impl;
|
||||
|
||||
import com.adc.da.slrs.utArea.entity.UtArea;
|
||||
import com.adc.da.slrs.utArea.dao.UtAreaDao;
|
||||
import com.adc.da.slrs.utArea.service.IUtAreaService;
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-04
|
||||
*/
|
||||
@Service
|
||||
public class UtAreaServiceImpl extends ServiceImpl<UtAreaDao, UtArea> implements IUtAreaService {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(UtAreaServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private UtAreaDao dao;
|
||||
|
||||
public UtAreaDao getDao() {
|
||||
return dao;
|
||||
}
|
||||
|
||||
public List<SelectionResult> getAreaSelList(UtArea utAreaEO){
|
||||
return dao.getAreaSelList(utAreaEO);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user