feat: 添加slrs业务子项目 修改问题文件
This commit is contained in:
@@ -4,7 +4,7 @@ import com.adc.da.att.dao.AttFileEODao;
|
||||
import com.adc.da.att.entity.AttFileEO;
|
||||
import com.adc.da.att.service.IAttFileEOService;
|
||||
import com.adc.da.att.vo.AttFileVo;
|
||||
import com.adc.da.common.ValidFlagEnum;
|
||||
import com.adc.da.sys.constant.ValidFlagEnum;
|
||||
import com.adc.da.util.FileUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
@@ -18,15 +18,18 @@ import java.util.List;
|
||||
*/
|
||||
public interface PersonCollectEODao extends BaseMapper<PersonCollectEO> {
|
||||
|
||||
List<PersonCollectEO> queryByList(BasePage page);
|
||||
public List<PersonCollectEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage var1);
|
||||
public int queryByCount(BasePage var1);
|
||||
|
||||
List<PersonCollectEO> queryByPage(BasePage page);
|
||||
public List<PersonCollectEO> queryByPage(BasePage page);
|
||||
|
||||
public List<PersonCollectEO> queryByPersonCollectPage(PersonCollectEOPage page);
|
||||
|
||||
int queryByPersonCollectPageCount(PersonCollectEOPage page);
|
||||
public int queryByPersonCollectPageCount(PersonCollectEOPage page);
|
||||
|
||||
public int deleteByIdList(@Param("idList") List<String> idList);
|
||||
|
||||
public int deleteByResId(@Param("resId") String resId);
|
||||
|
||||
int deleteByIdList(@Param("idList") List<String> idList);
|
||||
}
|
||||
|
||||
@@ -26,4 +26,6 @@ public interface PersonShareEODao extends BaseMapper<PersonShareEO> {
|
||||
void deleteByIdList(@Param("idList") List<String> idList);
|
||||
|
||||
void deleteByIdListForward(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteByResId(@Param("resId") String resId);
|
||||
}
|
||||
|
||||
@@ -18,4 +18,6 @@ public interface IPersonCollectEOService extends IService<PersonCollectEO> {
|
||||
|
||||
public int deleteByIdList(List<String> idList);
|
||||
|
||||
public int deleteByResId(String resId);
|
||||
|
||||
}
|
||||
|
||||
@@ -16,13 +16,13 @@ public interface IPersonConfEOService extends IService<PersonConfEO> {
|
||||
|
||||
public PersonConfEO saveBean(PersonConfEO personConfEO);
|
||||
|
||||
public PersonConfEO insert1(PersonConfEO personConfEO );
|
||||
public PersonConfEO insert1(PersonConfEO personConfEO);
|
||||
|
||||
public List<HashMap> selectByUserid(String userId);
|
||||
|
||||
public Map selectPersonConfByUserid(String userId);
|
||||
|
||||
public String[] updatePersonConfList(String[] kes,String userId);
|
||||
public String[] updatePersonConfList(String[] kes, String userId);
|
||||
|
||||
public List<PersonConfEO> saveConfList(String userId);
|
||||
|
||||
|
||||
@@ -19,4 +19,6 @@ public interface IPersonShareEOService extends IService<PersonShareEO> {
|
||||
|
||||
public void deleteByIdListForward(List<String> idList);
|
||||
|
||||
public int deleteByResId(String resId);
|
||||
|
||||
}
|
||||
|
||||
+5
@@ -91,4 +91,9 @@ public class PersonCollectEOServiceImpl extends ServiceImpl<PersonCollectEODao,
|
||||
public int deleteByIdList(List<String> idList){
|
||||
return this.baseMapper.deleteByIdList(idList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByResId(String resId) {
|
||||
return this.baseMapper.deleteByResId(resId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,4 +48,9 @@ public class PersonShareEOServiceImpl extends ServiceImpl<PersonShareEODao, Pers
|
||||
this.baseMapper.deleteByIdListForward(idList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByResId(String resId) {
|
||||
return this.baseMapper.deleteByResId(resId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.adc.da.sys.common;
|
||||
|
||||
/**
|
||||
* @Description: 用于返回下拉框格式数据
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/9/3 10:05
|
||||
*/
|
||||
public class SelectionResult {
|
||||
|
||||
private String label;
|
||||
|
||||
private String value;
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.adc.da.sys.constant;
|
||||
|
||||
public enum CollectEnum {
|
||||
|
||||
INLAND_MSG("INLAND_MSG","国内动态"),
|
||||
FOREIGN_MSG("FOREIGN_MSG","国外动态"),
|
||||
INLAND_STAND("INLAND_STAND","国内标准库"),
|
||||
INLAND_LAWS("INLAND_LAWS","国内法规库"),
|
||||
FOREIGN_STAND("FOREIGN_STAND","国外标准库"),
|
||||
FOREIGN_LAWS("FOREIGN_LAWS","国外法规库"),
|
||||
BUSINESS_STAND("BUSINESS_STAND","企业标准库");
|
||||
|
||||
private String value;
|
||||
private String lable;
|
||||
private CollectEnum(String value, String lable) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
}
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adc.da.sys.constant;
|
||||
|
||||
/**
|
||||
* 工厂/公司类型区分
|
||||
*/
|
||||
public enum FactoryTypeEnum {
|
||||
DLFAC("动力基地","DLFAC"),
|
||||
ZCFAC("整车基地","ZCFAC"),
|
||||
OTFAC("其他","OTFAC");
|
||||
|
||||
|
||||
private String lable;
|
||||
private String value;
|
||||
|
||||
private FactoryTypeEnum(String lable, String value) {
|
||||
this.lable = lable;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.adc.da.sys.constant;
|
||||
|
||||
public enum GenderEnum {
|
||||
|
||||
MAN(0,"男"),WOMAN(1,"女");
|
||||
|
||||
private int value;
|
||||
private String lable;
|
||||
private GenderEnum(int value, String lable) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
}
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.adc.da.sys.constant;
|
||||
|
||||
public enum OrgTypeEnum {
|
||||
|
||||
ROOM("室","ROOM"),
|
||||
FAMILY("科","FAMILY"),
|
||||
DEPART("部门","DEPART");
|
||||
|
||||
private String lable;
|
||||
private String value;
|
||||
|
||||
private OrgTypeEnum(String lable, String value) {
|
||||
this.lable = lable;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ public enum PersonModelEnum {
|
||||
private String lable;
|
||||
private String path;
|
||||
|
||||
private PersonModelEnum(String value, String lable, String path) {
|
||||
private PersonModelEnum(String value, String lable,String path) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
this.path = path;
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.adc.da.sys.constant;
|
||||
|
||||
public enum ResourceTypeEnum {
|
||||
|
||||
INLAND_MSG("INLAND_MSG","国内动态"),
|
||||
FOREIGN_MSG("FOREIGN_MSG","国外动态"),
|
||||
INLAND_STAND("INLAND_STAND","国内标准库"),
|
||||
INLAND_LAWS("INLAND_LAWS","国内法规库"),
|
||||
FOREIGN_STAND("FOREIGN_STAND","国外标准库"),
|
||||
FOREIGN_LAWS("FOREIGN_LAWS","国外法规库"),
|
||||
BUSINESS_STAND("BUSINESS_STAND","企业标准库");
|
||||
|
||||
|
||||
private String value;
|
||||
private String lable;
|
||||
private ResourceTypeEnum(String value, String lable) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
}
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.adc.da.sys.constant;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2018/11/8 15:47
|
||||
*/
|
||||
public enum RoleEnum {
|
||||
LOCAL_USER("LOCAL","广汽研究院用户"),OTHER_USER("OTHER","非广汽研究院用户"),CONADMIN("CONADMIN","配置管理员"),;
|
||||
|
||||
private String value;
|
||||
private String lable;
|
||||
private RoleEnum(String value, String lable) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
}
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adc.da.sys.constant;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2018/11/5 16:49
|
||||
* 用户状态:启用,禁用
|
||||
*/
|
||||
public enum UserDisableFlagEnum {
|
||||
DISABLE_FLAG_TRUE("0", "启用"), DISABLE_FLAG_FALSE("1", "禁用");
|
||||
|
||||
private String value;
|
||||
private String lable;
|
||||
|
||||
UserDisableFlagEnum(String value, String lable) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.adc.da.sys.constant;
|
||||
|
||||
public enum ValidFlagEnum {
|
||||
VALID_TRUE(0, "有效"), VALID_FALSE(1, "无效");
|
||||
|
||||
private int value;
|
||||
private String lable;
|
||||
|
||||
private ValidFlagEnum(int value, String lable) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.adc.da.sys.constant;
|
||||
|
||||
public enum ValueStateEnum {
|
||||
|
||||
VALUE_TRUE(0,"TRUE"),VALUE_FALSE(1,"FALSE");
|
||||
|
||||
private int value;
|
||||
private String lable;
|
||||
|
||||
|
||||
private ValueStateEnum(int value, String lable) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
}
|
||||
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adc.da.sys.constant;
|
||||
/***
|
||||
* 预警时间枚举
|
||||
* @MethodName:
|
||||
* @author: zhangyanduan
|
||||
* @param:
|
||||
* @return:
|
||||
* date: 2018/9/17 17:26
|
||||
*/
|
||||
public enum WarnTimeEnum {
|
||||
THREEMONTH("THREEMONTH","3个月"),
|
||||
SIXMONTH("SIXMONTH","6个月"),
|
||||
ONEYEAR("SIXMONTH","1年"),
|
||||
TWOYEAR("TWOYEAR","2年");
|
||||
|
||||
private String label;
|
||||
private String value;
|
||||
|
||||
private WarnTimeEnum(String value, String label) {
|
||||
this.value = value;
|
||||
this.label = label;
|
||||
}
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.adc.da.sys.entity.DictionaryEO;
|
||||
import com.adc.da.sys.page.DictionaryEOPage;
|
||||
import com.adc.da.sys.service.IDicEOService;
|
||||
import com.adc.da.sys.service.IDicTypeEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
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 javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/sys/dictionary")
|
||||
@Api(description = "数据字典管理")
|
||||
public class DicEORestController extends BaseController<DictionaryEO> {
|
||||
private static final Logger logger = LoggerFactory.getLogger(DictionaryEO.class);
|
||||
|
||||
@Autowired
|
||||
private IDicEOService dicEOService;
|
||||
|
||||
@ApiOperation(value = "|DictionaryEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
// @RequiresPermissions("lawssBase:dictionary:page")
|
||||
public ResponseMessage<PageInfo<DictionaryEO>> page(DictionaryEOPage page) throws Exception {
|
||||
page.setDictionaryCodeOperator("like");
|
||||
page.setDictionaryNameOperator("like");
|
||||
List<DictionaryEO> rows = dicEOService.queryAllDicByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|DictionaryEO|查询")
|
||||
@GetMapping("/queryByList")
|
||||
// @RequiresPermissions("lawssBase:dictionary:list")
|
||||
public ResponseMessage<List<DictionaryEO>> list(DictionaryEOPage page) throws Exception {
|
||||
return Result.success(dicEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|DictionaryEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
// @RequiresPermissions("lawssBase:dictionary:get")
|
||||
public ResponseMessage<DictionaryEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(dicEOService.getById(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|DictionaryEO|新增")
|
||||
@PostMapping("/addDictionary")
|
||||
// @RequiresPermissions("lawssBase:dictionary:save")
|
||||
public ResponseMessage<DictionaryEO> addDictionary(@RequestBody DictionaryEO dictionaryEO) throws Exception {
|
||||
String resultMsg = dicEOService.createDictionary(dictionaryEO);
|
||||
if ("success".equals(resultMsg)) {
|
||||
return Result.success("0","新增成功",dictionaryEO);
|
||||
} else {
|
||||
return Result.error("新增失败," + resultMsg);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|DictionaryEO|修改")
|
||||
@PutMapping("/updateDictionary")
|
||||
// @RequiresPermissions("lawssBase:dictionary:update")
|
||||
public ResponseMessage<DictionaryEO> updateDictionary(@RequestBody DictionaryEO dictionaryEO) throws Exception {
|
||||
String resultMsg = dicEOService.updateDictionary(dictionaryEO);
|
||||
if ("success".equals(resultMsg)) {
|
||||
return Result.success("0","修改成功",dictionaryEO);
|
||||
} else {
|
||||
return Result.error("修改失败," + resultMsg);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|DictionaryEO|删除")
|
||||
@PutMapping("/deleteByIds")
|
||||
// @RequiresPermissions("lawssBase:dictionary:delete")
|
||||
public ResponseMessage deleteByIds(String id) throws Exception {
|
||||
int countRes = dicEOService.queryUseByCount(id);
|
||||
if (countRes > 0) {
|
||||
return Result.error("0","有引用,无法删除",null);
|
||||
} else {
|
||||
dicEOService.deleteDicAndType(id);
|
||||
return Result.success("0","删除成功",null);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|DictionaryEO|删除字典和相关明细")
|
||||
@DeleteMapping("/deleteDicAndType/{id}")
|
||||
// @RequiresPermissions("sys:dic:delete")
|
||||
public ResponseMessage deleteDicAndType(@NotNull @PathVariable(value = "id") String id) throws Exception {
|
||||
dicEOService.deleteDicAndType(id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/*
|
||||
* 数据字典下拉框接口(通用)
|
||||
* @MethodName:getByDicCode
|
||||
* @author: DuYunbao
|
||||
* @date: 2018/5/3 10:36
|
||||
*/
|
||||
@ApiOperation(value = "数据字典下拉框接口")
|
||||
@GetMapping("/dicCode/{dicCode}")
|
||||
// @RequiresPermissions("sys:dic:getByDicCode")
|
||||
public ResponseMessage<DictionaryEO> getByDicCode(@NotNull @PathVariable("dicCode") String dicCode) throws Exception {
|
||||
DictionaryEO dictionaryVO = dicEOService.getDicEOAndTypeEoByDicCode(dicCode);
|
||||
return Result.success(dictionaryVO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "以下拉框格式查询所有类别")
|
||||
@GetMapping("/getDictionarySelList")
|
||||
// @RequiresPermissions("sys:dic:getByDicCode")
|
||||
public ResponseMessage<List<SelectionResult>> getDictionarySelList(String id) {
|
||||
List<SelectionResult> getList = dicEOService.getDictionarySelList(id);
|
||||
return Result.success(getList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "以下拉框格式查询所有类别Code")
|
||||
@GetMapping("/getDictionaryCodeSelList")
|
||||
// @RequiresPermissions("sys:dic:getByDicCode")
|
||||
public ResponseMessage<List<SelectionResult>> getDictionaryCodeSelList(String id) {
|
||||
List<SelectionResult> getList = dicEOService.getDictionaryCodeSelList(id);
|
||||
return Result.success(getList);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,377 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import com.adc.da.base.page.Pager;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.adc.da.sys.entity.DicTypeEO;
|
||||
import com.adc.da.sys.page.DicTypeEOPage;
|
||||
import com.adc.da.sys.service.IDicTypeEOService;
|
||||
import com.adc.da.sys.vo.DicTypeVO;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.*;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/sys/dictype")
|
||||
@Api(description = "字典类型明细管理")
|
||||
public class DicTypeEORestController extends BaseController<DicTypeEO> {
|
||||
private static final Logger logger = LoggerFactory.getLogger(DicTypeEO.class);
|
||||
@Autowired
|
||||
private IDicTypeEOService dicTypeEOService;
|
||||
|
||||
List<DicTypeEO> dicTypeEOTypeNameAndCode = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.sys.vo.DicTypeVO>
|
||||
* @Author liwenxuan
|
||||
* @Description 新增数据字典,必填字段:字典类型编码、字典类型名称
|
||||
* @Date Administrator 2018/9/17
|
||||
* @Param [dicTypeVO]
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|新增")
|
||||
@PostMapping("/create")
|
||||
@RequiresPermissions("sys:dicType:create")
|
||||
public ResponseMessage<Integer> create(@RequestBody DicTypeEO dicTypeVO) throws Exception {
|
||||
|
||||
//通过传入的code获取对象(此时id为空,sql做了判断)
|
||||
// List<DicTypeEO> dicTypeEOList = dicTypeEOService.getDicTypeEOByDicTypeCode(dicTypeVO.getDicId(),dicTypeVO.getId(),dicTypeVO.getDicTypeCode(),dicTypeVO.getParentId());
|
||||
//通过传入的name和数据字典id获取对象
|
||||
dicTypeVO.setId(null);
|
||||
List<DicTypeEO> dicTypeEOS = dicTypeEOService.getTypeIdByDicIdAndTypeName(dicTypeVO.getDicId(), dicTypeVO.getId(), dicTypeVO.getDicTypeName(), dicTypeVO.getParentId());
|
||||
if (dicTypeEOS != null && !dicTypeEOS.isEmpty()) {
|
||||
return Result.error("选项已存在");
|
||||
}
|
||||
//前台需要返回message和true,底层封装的返回方法只有这个返回值能用(返回的对象t:1前台不需要)
|
||||
Integer dicTypeEO = dicTypeEOService.saveDictype(dicTypeVO);
|
||||
if (dicTypeEO > 0) {
|
||||
return Result.success("", "新增成功", 1);
|
||||
}
|
||||
return Result.error("新增失败");
|
||||
}
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.lang.Integer>
|
||||
* @Author liwenxuan
|
||||
* @Description 企业标准大类
|
||||
* @Date Administrator 2018/10/9
|
||||
* @Param [dicTypeVO]
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|企标大类新增")
|
||||
@PostMapping("/createEnterpriseStandard")
|
||||
@RequiresPermissions("sys:dicType:createEnterpriseStandard")
|
||||
public ResponseMessage<Integer> createEnterpriseStandard(@RequestBody DicTypeEO dicTypeVO) throws Exception {
|
||||
dicTypeVO.setId(UUIDUtils.randomUUID20());
|
||||
// liwenxuan:用来企业大类判断新增是否重复 有parentId代表查询里面的数据 (企业大类分页查找只显示根节点,编辑每条数据里面是他对应的孩子节点,是dicTypeEOService.getDicTypeEOTypeNameAndCode1方法)
|
||||
if (dicTypeVO.getParentId() != null) {
|
||||
dicTypeEOTypeNameAndCode = dicTypeEOService.getDicTypeEOTypeNameAndCode(dicTypeVO.getId(), dicTypeVO.getDicTypeName(), dicTypeVO.getDicTypeCode(), dicTypeVO.getParentId());
|
||||
} else {
|
||||
dicTypeEOTypeNameAndCode = dicTypeEOService.getDicTypeEOTypeNameAndCode1(dicTypeVO.getId(), dicTypeVO.getDicTypeName(), dicTypeVO.getDicTypeCode(), dicTypeVO.getParentId());
|
||||
}
|
||||
if (dicTypeEOTypeNameAndCode.size() != 0) {
|
||||
for (DicTypeEO dicTypeEO : dicTypeEOTypeNameAndCode) {
|
||||
if (dicTypeEO.getDicTypeName().equals(dicTypeVO.getDicTypeName())) {
|
||||
return Result.error("选项已存在");
|
||||
}
|
||||
}
|
||||
}
|
||||
Integer dicTypeEO = dicTypeEOService.saveDictype(dicTypeVO);
|
||||
if (dicTypeEO > 0) {
|
||||
return Result.success("", "新增成功", 1);
|
||||
}
|
||||
|
||||
return Result.error("新增失败");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.util.http.PageInfo < com.adc.da.sys.entity.DicTypeEO>>
|
||||
* @Author liwenxuan
|
||||
* @Description 分页查询(根据code也可以进行模糊查找)
|
||||
* 1.供所有的数据字典参照表使用
|
||||
* 2.供国家地区的编辑和查看的回显使用(需要传入id作为parentId进行查找国家地区下面的孩子节点)
|
||||
* @Date Administrator 2018/9/17
|
||||
* @Param [pageNo, pageSize, dicId, dicTypeName, dicTypeCode]
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|分页列表")
|
||||
@GetMapping("/page")
|
||||
//@RequiresPermissions("sys:dicType:pageListByDicId")
|
||||
public ResponseMessage<PageInfo<DicTypeEO>> pageListByDicId(DicTypeEOPage page) throws Exception {
|
||||
page.setPager(new Pager());
|
||||
page.setValidFlag("0");
|
||||
page.setOrderBy("show_index,modify_time desc");
|
||||
List<DicTypeEO> rows = dicTypeEOService.queryByPage(page);
|
||||
/*企标细类加入分类代号*/
|
||||
if("FGFBTYGHGHMB".equals(page.getDicId()) && rows!=null && rows.size()>0){
|
||||
for(DicTypeEO row:rows){
|
||||
List<DicTypeEO> getClassify = dicTypeEOService.getDicTypeEOByDicTypeCode(null,null,null,row.getId());
|
||||
if(getClassify!=null && getClassify.size()>0){
|
||||
row.setClassifyCode(getClassify.get(0).getDicTypeName());
|
||||
row.setClassifyCodeId(getClassify.get(0).getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|DicTypeEO|国家/地区分页列表")
|
||||
@GetMapping("/pageCountry")
|
||||
@RequiresPermissions("sys:dicType:pageListByDicIdAndNoParentId")
|
||||
public ResponseMessage<PageInfo<DicTypeEO>> pageListByDicIdAndNoParentId(DicTypeEOPage page) throws Exception {
|
||||
page.setPager(new Pager());
|
||||
page.setValidFlag("0");
|
||||
page.setOrderBy("show_index,modify_time desc");
|
||||
List<DicTypeEO> rows = dicTypeEOService.queryByPageNoParentId(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
/***
|
||||
* 获取数据字典属性所有内容
|
||||
* @MethodName:getDicTypeList
|
||||
* @author: zhangyanduan
|
||||
* @param:[dicId]
|
||||
* @return:com.adc.da.util.http.ResponseMessage<java.util.List<com.adc.da.sys.entity.DicTypeEO>>
|
||||
* date: 2018/11/1 15:42
|
||||
*/
|
||||
@ApiOperation(value = "|DicTypeEO|查询所有数据字典数据")
|
||||
@GetMapping("/getDicTypeList")
|
||||
// @RequiresPermissions("sys:dicType:getDicTypeList")
|
||||
public ResponseMessage<List<DicTypeEO>> getDicTypeList(String dicId) throws Exception {
|
||||
DicTypeEOPage page = new DicTypeEOPage();
|
||||
page.setDicId(dicId);
|
||||
page.setValidFlag("0");
|
||||
List<DicTypeEO> typeEOList = dicTypeEOService.queryByList(page);
|
||||
return Result.success(typeEOList);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.sys.vo.DicTypeVO>
|
||||
* @Author liwenxuan
|
||||
* @Description 修改数据字典编码和名称
|
||||
* 1.如果修改的字典类型编码不改变也可以进行修改 通过用户id获得字段名字和输入的名字一致也可以
|
||||
* 2.原name和新输入的name进行对比,如果一样不算在字典类型编码重复
|
||||
* @Date Administrator 2018/9/17
|
||||
* @Param [dicTypeVO]
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("sys:dicType:update")
|
||||
public ResponseMessage<Integer> update(@RequestBody DicTypeEO dicTypeVO) throws Exception {
|
||||
// liwenxuan:用来企业大类判断新增是否重复 有parentId代表查询里面的数据
|
||||
if (dicTypeVO.getParentId() != null) {
|
||||
dicTypeEOTypeNameAndCode = dicTypeEOService.getDicTypeEOTypeNameAndCode(dicTypeVO.getId(), dicTypeVO.getDicTypeName(), dicTypeVO.getDicTypeCode(), dicTypeVO.getParentId());
|
||||
} else {
|
||||
dicTypeEOTypeNameAndCode = dicTypeEOService.getTypeIdByDicIdAndTypeName(dicTypeVO.getDicId(), dicTypeVO.getId(), dicTypeVO.getDicTypeName(), dicTypeVO.getParentId());
|
||||
}
|
||||
for (DicTypeEO dicTypeEO : dicTypeEOTypeNameAndCode) {
|
||||
if (dicTypeEO.getDicTypeName().equals(dicTypeVO.getDicTypeName())) {
|
||||
return Result.error("选项已存在");
|
||||
}
|
||||
}
|
||||
dicTypeVO.setModifyTime(new Date());
|
||||
int i = dicTypeEOService.updateByPrimaryKeySelective(dicTypeVO);
|
||||
//如果修改数据为标准类别,将国家地区关联的标准类别同时修改
|
||||
if ("JKSADFH564S".equals(dicTypeVO.getDicId())) {
|
||||
dicTypeEOService.updateByDicTypeCode(dicTypeVO);
|
||||
}
|
||||
//修改细类中分类代号
|
||||
if(StringUtils.isNotEmpty(dicTypeVO.getClassifyCode()) && StringUtils.isNotEmpty(dicTypeVO.getClassifyCodeId())){
|
||||
DicTypeEO upClassiEo = new DicTypeEO();
|
||||
upClassiEo.setId(dicTypeVO.getClassifyCodeId());
|
||||
upClassiEo.setDicTypeName(dicTypeVO.getClassifyCode());
|
||||
upClassiEo.setModifyTime(new Date());
|
||||
dicTypeEOService.updateByPrimaryKeySelective(upClassiEo);
|
||||
} else if(StringUtils.isNotEmpty(dicTypeVO.getClassifyCodeId()) && StringUtils.isEmpty(dicTypeVO.getClassifyCode())){
|
||||
DicTypeEO upClassiEo = new DicTypeEO();
|
||||
upClassiEo.setId(dicTypeVO.getClassifyCodeId());
|
||||
upClassiEo.setValidFlag(1);
|
||||
dicTypeEOService.updateByPrimaryKeySelective(upClassiEo);
|
||||
}else if(StringUtils.isEmpty(dicTypeVO.getClassifyCodeId()) && StringUtils.isNotEmpty(dicTypeVO.getClassifyCode())){
|
||||
DicTypeEO dicClassifyCode = new DicTypeEO();
|
||||
dicClassifyCode.setDicTypeName(dicTypeVO.getClassifyCode());
|
||||
dicClassifyCode.setDicId("YDWVSVOAQG");
|
||||
dicClassifyCode.setParentId(dicTypeVO.getId());
|
||||
dicClassifyCode.setId(UUIDUtils.randomUUID20());
|
||||
dicClassifyCode.setValidFlag(0);
|
||||
dicClassifyCode.setCreationTime(new Date());
|
||||
dicClassifyCode.setModifyTime(new Date());
|
||||
dicClassifyCode.setDicTypeCode(UUIDUtils.randomUUID10());
|
||||
dicTypeEOService.insertSelective(dicClassifyCode);
|
||||
}
|
||||
if (i == 0) {
|
||||
return Result.error("修改失败");
|
||||
}
|
||||
return Result.success("true", "修改成功", 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.sys.vo.DicTypeVO>
|
||||
* @Author liwenxuan
|
||||
* @Description 根据数据字典参数表id获取数据字典参数表信息
|
||||
* @Date Administrator 2018/9/17
|
||||
* @Param [id]
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
@RequiresPermissions("sys:dicType:get")
|
||||
public ResponseMessage<DicTypeEO> getById(@NotNull @PathVariable("id") String id) throws Exception {
|
||||
DicTypeEO dicTypeVO = dicTypeEOService.getDicTypeById(id);
|
||||
return Result.success(dicTypeVO);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage
|
||||
* @Author liwenxuan
|
||||
* @Description 删除多条数据 ,实际上设置vilid_flag=1
|
||||
* @Date Administrator 2018/9/17
|
||||
* @Param [ids]
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|删除多条数据")
|
||||
//@DeleteMapping("/deleteArr/{ids}")
|
||||
@DeleteMapping("/deleteArr")
|
||||
//@RequiresPermissions("sys:dicType:deleteArr")
|
||||
public ResponseMessage deleteArr(String[] ids, String[] dicTypeCodes) throws Exception {
|
||||
if (dicTypeCodes != null) {
|
||||
List<String> list = Arrays.asList(dicTypeCodes);
|
||||
for (String dicTypeCode : list) {
|
||||
boolean dicTypeByDicTypeCode = dicTypeEOService.getDicTypeByDicTypeCode(dicTypeCode);
|
||||
if (dicTypeByDicTypeCode == false) {
|
||||
return Result.error("有引用,无法删除");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 标准类别判断
|
||||
List<String> list = Arrays.asList(ids);
|
||||
for (String id : list) {
|
||||
DicTypeEO dicTypeEO = dicTypeEOService.getDicTypeById(id);
|
||||
// 通过对应的国家code,和 标准类别code 判断是否被引用
|
||||
DicTypeEO countryEO = dicTypeEOService.getDicTypeById(dicTypeEO.getParentId());
|
||||
//在主表中,标准类别的code和name 是同一个是
|
||||
boolean dicTypeByDicTypeCode = dicTypeEOService.judgeHaveUse(dicTypeEO.getDicTypeCode(),countryEO.getDicTypeCode());
|
||||
if (!dicTypeByDicTypeCode) {
|
||||
return Result.error("有引用,无法删除");
|
||||
}
|
||||
}
|
||||
}
|
||||
dicTypeEOService.delete(Arrays.asList(ids));
|
||||
if (dicTypeCodes != null) {
|
||||
// 如果dicTypeCode不为空,说明删除标准类别,国家下的标准类别也需要同步删除
|
||||
dicTypeEOService.deleteDicTypeByCodeAndParentid(Arrays.asList(dicTypeCodes));
|
||||
}
|
||||
return Result.success("", "删除成功", null);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage
|
||||
* @Author liwenxuan
|
||||
* @Description 删除一条数据
|
||||
* @Date Administrator 2018/9/17
|
||||
* @Param [id]
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|删除一条数据")
|
||||
@DeleteMapping("/delete")
|
||||
//@RequiresPermissions("sys:dicType:removeDicType")
|
||||
public ResponseMessage delete(String dicTypeEOId, String dicTypeCode) throws Exception {
|
||||
if (dicTypeCode != null) {
|
||||
boolean dicTypeByDicTypeCode = dicTypeEOService.getDicTypeByDicTypeCode(dicTypeCode);
|
||||
if (dicTypeByDicTypeCode == false) {
|
||||
return Result.error("有引用,无法删除");
|
||||
}
|
||||
}else {
|
||||
// 标准类别判断
|
||||
DicTypeEO dicTypeEO = dicTypeEOService.getDicTypeById(dicTypeEOId);
|
||||
// 通过对应的国家code,和 标准类别code 判断是否被引用
|
||||
DicTypeEO countryEO = dicTypeEOService.getDicTypeById(dicTypeEO.getParentId());
|
||||
//在主表中,标准类别的code和name 是同一个是
|
||||
boolean dicTypeByDicTypeCode = dicTypeEOService.judgeHaveUse(dicTypeEO.getDicTypeName(),countryEO.getDicTypeCode());
|
||||
if (!dicTypeByDicTypeCode) {
|
||||
return Result.error("有引用,无法删除");
|
||||
}
|
||||
}
|
||||
dicTypeEOService.deleteDicTypeByDicId(dicTypeEOId);
|
||||
if (dicTypeCode != null) {
|
||||
// 如果dicTypeCode不为空,说明删除标准类别,国家下的标准类别也需要同步删除
|
||||
List<String> codes = new ArrayList<>();
|
||||
codes.add(dicTypeCode);
|
||||
dicTypeEOService.deleteDicTypeByCodeAndParentid(codes);
|
||||
}
|
||||
return Result.success("", "删除成功", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.util.Map < java.lang.String , java.lang.String>>
|
||||
* @Author yangxuenan
|
||||
* @Description 根据数据字典编码查询字典类型
|
||||
* Date 2018/9/12 10:12
|
||||
* @Param [dicCode]
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|查询字典类型")
|
||||
@GetMapping("/getDicTypeByDicCode")
|
||||
// @RequiresPermissions("sys:dicType:getDicTypeByDicCode")
|
||||
public ResponseMessage<List<Map<String, String>>> getDicTypeByDicCode(@RequestParam String dicCode) throws Exception {
|
||||
List<Map<String, String>> dicTypeEO = dicTypeEOService.getDicTypeByDicCode(dicCode);
|
||||
return Result.success(dicTypeEO);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.util.List < com.adc.da.sys.entity.DicTypeEO>>
|
||||
* @Author gaoyan
|
||||
* @Description 分组查询全部字典类型
|
||||
* Date 2018/9/11 19:09
|
||||
* @Param [dicCode]
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|查询字典类型")
|
||||
@GetMapping("/getDicTypeListCode")
|
||||
//@RequiresPermissions("sys:dicType:getDicTypeListCode")
|
||||
public ResponseMessage<Map<String, Object>> getDicTypeListCode() throws Exception {
|
||||
Map<String, Object> dicTypeEO = dicTypeEOService.getDicTypeListCode();
|
||||
return Result.success(dicTypeEO);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.util.List < java.util.Map < java.lang.String , java.lang.String>>>
|
||||
* @Author yangxuenan
|
||||
* @Description 根据父级code查询
|
||||
* Date 2018/10/9 14:11
|
||||
* @Param [dicTypeCode]
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|根据父级code查询")
|
||||
@GetMapping("/getDicTypeByParentCode")
|
||||
// @RequiresPermissions("sys:dicType:getDicTypeByParentCode")
|
||||
public ResponseMessage<List<Map<String, String>>> getDicTypeByParentCode(@RequestParam String dicTypeCode) throws Exception {
|
||||
List<Map<String, String>> dicTypeEO = dicTypeEOService.getDicTypeByParentCode(dicTypeCode);
|
||||
return Result.success(dicTypeEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|DicTypeEO|根据父级多个code查询")
|
||||
@GetMapping("/getDicTypeByParentCodes")
|
||||
// @RequiresPermissions("sys:dicType:getDicTypeByParentCode")
|
||||
public ResponseMessage<List<Map<String, String>>> getDicTypeByParentCodes(@RequestParam String dicTypeCode) throws Exception {
|
||||
List<Map<String, String>> dicTypeEO = dicTypeEOService.getDicTypeByParentCodes(dicTypeCode);
|
||||
return Result.success(dicTypeEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|DicTypeEO|根据DicId查询下拉列表")
|
||||
@GetMapping("/getDicTypeByDicId")
|
||||
public ResponseMessage<List<SelectionResult>> getDicTypeByDicId(String dicId) {
|
||||
List<SelectionResult> dicTypeEO = dicTypeEOService.getDicTypeByDicId(dicId);
|
||||
return Result.success(dicTypeEO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,11 +3,11 @@ package com.adc.da.sys.controller;
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.adc.da.base.page.Pager;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.common.ValidFlagEnum;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.constant.IsBelongEnum;
|
||||
import com.adc.da.sys.constant.ValidFlagEnum;
|
||||
import com.adc.da.sys.entity.RoleEO;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.entity.UserRoleEO;
|
||||
|
||||
@@ -3,10 +3,10 @@ package com.adc.da.sys.controller;
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.adc.da.base.page.Pager;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.common.ValidFlagEnum;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.constant.ValidFlagEnum;
|
||||
import com.adc.da.sys.entity.RoleEO;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.page.UserEOPage;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.common.ValidFlagEnum;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.constant.ValidFlagEnum;
|
||||
import com.adc.da.sys.entity.RoleEO;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.entity.UserInfoEO;
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.adc.da.sys.entity.DictionaryEO;
|
||||
import com.adc.da.sys.page.DictionaryEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DicEODao extends BaseMapper<DictionaryEO> {
|
||||
|
||||
public DictionaryEO getDictionaryEOById(String id);
|
||||
|
||||
public DictionaryEO getDictionaryEOByDicCode(String dictionaryCode);
|
||||
|
||||
public DictionaryEO getDicEOAndTypeEoByDicCode(String dictionaryCode);
|
||||
|
||||
public DictionaryEO getDictionaryEOByDicName(String dictionaryName);
|
||||
|
||||
public void deleteDic(String id);
|
||||
|
||||
//gaoyan
|
||||
public List<DictionaryEO> getDictionaryEO();
|
||||
|
||||
public Integer countByCodeOrName(DictionaryEOPage page);
|
||||
|
||||
public List<DictionaryEO> queryAllDicByPage(DictionaryEOPage page);
|
||||
|
||||
public Integer queryAllDicByCount(DictionaryEOPage page);
|
||||
|
||||
public List<SelectionResult> getDictionarySelList(@Param("id") String id);
|
||||
|
||||
public List<SelectionResult> getDictionaryCodeSelList(@Param("id") String id);
|
||||
|
||||
public int queryUseByCount(@Param("id") String id);
|
||||
|
||||
public int insertSelective(DictionaryEO dictionaryEO);
|
||||
|
||||
public int updateByPrimaryKeySelective(DictionaryEO dictionaryEO);
|
||||
|
||||
public List<DictionaryEO> queryByPage(DictionaryEOPage page);
|
||||
|
||||
public int queryByCount(DictionaryEOPage page);
|
||||
|
||||
public List<DictionaryEO> queryByList(DictionaryEOPage page);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.adc.da.sys.entity.DicTypeEO;
|
||||
import com.adc.da.sys.page.DicTypeEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DicTypeEODao extends BaseMapper<DicTypeEO> {
|
||||
|
||||
public DicTypeEO getDicTypeEOById(String id);
|
||||
|
||||
public void deleteDicTypeByIdInBatch(List<String> ids);
|
||||
|
||||
public List<DicTypeEO> getTypeIdByDicIdAndTypeName(@Param("dicId") String dicId, @Param("id") String id, @Param("typeName") String typeName, @Param("parentId") String parentId);
|
||||
|
||||
|
||||
public List<DicTypeEO> getDicTypeEOByDicTypeCode(@Param("dicId") String dicId, @Param("id") String id, @Param("dicTypeCode") String dicTypeCode, @Param("parentId") String parentId);
|
||||
|
||||
public void batchInsertTypeEo(List<DicTypeEO> ModelType);
|
||||
|
||||
public void deleteDicTypeByDicId(String id);
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 根据数据字典编码查询字典类型
|
||||
* Date 2018/9/11 15:09
|
||||
* @Param [dictionaryCode]
|
||||
* @return java.util.List<com.adc.da.sys.entity.DicTypeEO>
|
||||
**/
|
||||
public List<DicTypeEO> getDicTypeByDicCode(String dictionaryCode);
|
||||
|
||||
public List<DicTypeEO> getFineDicTypeByDicCode(String dictionaryCode);
|
||||
|
||||
//liwenxuan:国家地区新增
|
||||
public List<DicTypeEO> queryByPageNoParentId(DicTypeEOPage page);
|
||||
|
||||
public int queryByCountCounter(DicTypeEOPage page);
|
||||
public List<DicTypeEO> getDicTypeByParentCode(String dicTypeCode);
|
||||
|
||||
public List<DicTypeEO> getDicTypeByDicTypeName(DicTypeEO dicTypeEO);
|
||||
|
||||
public List<DicTypeEO> getDicTypeEOTypeNameAndCode(@Param("id") String id, @Param("dicTypeName") String dicTypeName, @Param("dicTypeCode") String dicTypeCode, @Param("parentId") String parentId);
|
||||
public List<DicTypeEO> getDicTypeEOTypeNameAndCode1(@Param("id") String id, @Param("dicTypeName") String dicTypeName, @Param("dicTypeCode") String dicTypeCode, @Param("parentId") String parentId);
|
||||
|
||||
// 标准法规属性管理中删除之前查看其它地方是否引用
|
||||
public List<Integer> getDicTypeByDicTypeCode(String dicTypeCode);
|
||||
|
||||
public List<DicTypeEO> getDicEOByDicTypeCode(String dicTypeCode);
|
||||
|
||||
public List<DicTypeEO> getDicEOByDicTypeCodeParent(String dicTypeCode);
|
||||
|
||||
public int deleteByDicIdAndDicTypeCode(DicTypeEO dicTypeEO);
|
||||
|
||||
public int updateByDicTypeCode(DicTypeEO dicTypeEO);
|
||||
|
||||
public int judgeHaveUse(@Param("sortCode") String sortCode, @Param("countryCode") String countryCode);
|
||||
|
||||
public void deleteDicTypeByCodeAndParentid(List<String> codes);
|
||||
|
||||
public int deleteByDictionaryId(@Param("dicId") String dicId);
|
||||
|
||||
public List<SelectionResult> getDicTypeByDicId(@Param("dicId") String dicId);
|
||||
|
||||
public String getDicNamesByCodes(@Param("codeList") List<String> codeList);
|
||||
|
||||
public int insertSelective(DicTypeEO dictionaryEO);
|
||||
|
||||
public int updateByPrimaryKeySelective(DicTypeEO dictionaryEO);
|
||||
|
||||
public List<DicTypeEO> queryByPage(DicTypeEOPage page);
|
||||
|
||||
public int queryByCount(DicTypeEOPage page);
|
||||
|
||||
public List<DicTypeEO> queryByList(DicTypeEOPage page);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.sys.entity.FeedbackInfoEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_FEEDBACK_INFO FeedbackInfoEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface FeedbackInfoEODao extends BaseMapper<FeedbackInfoEO> {
|
||||
|
||||
List<FeedbackInfoEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage var1);
|
||||
|
||||
List<FeedbackInfoEO> queryByPage(BasePage page);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.sys.entity.LinkInfoEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_LINK_INFO LinkInfoEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-13 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface LinkInfoEODao extends BaseMapper<LinkInfoEO> {
|
||||
|
||||
List<LinkInfoEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage page);
|
||||
|
||||
List<LinkInfoEO> queryByPage(BasePage page);
|
||||
|
||||
int deleteByIds(@Param("idList") List<String> idList);
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.sys.entity.LoginInfoEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2018/10/11 17:36
|
||||
*/
|
||||
public interface LoginInfoEODao extends BaseMapper<LoginInfoEO> {
|
||||
|
||||
List<LoginInfoEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage page);
|
||||
|
||||
List<LoginInfoEO> queryByPage(BasePage page);
|
||||
|
||||
// liwenxuan:系统用户访问数量 和 Top10
|
||||
List<String> sysUserVisitCount(Date visitTime);
|
||||
List<String> sysUserVisitCountTop10();
|
||||
int count();
|
||||
|
||||
LoginInfoEO sysUserVisitCountByDate(LoginInfoEO loginInfoEO);
|
||||
|
||||
int sysUserVisitCountByAll(LoginInfoEO loginInfoEO);
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.sys.entity.MenuEO;
|
||||
import com.adc.da.sys.page.MenuEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <br>
|
||||
* <b>功能:</b>TS_MENU MenuEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2017-11-06 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface MenuEODao extends BaseMapper<MenuEO> {
|
||||
|
||||
List<MenuEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage page);
|
||||
|
||||
/**
|
||||
* 获取所有的菜单
|
||||
* @return 所有菜单
|
||||
*/
|
||||
List<MenuEO> findAll();
|
||||
|
||||
/**
|
||||
* 获取角色对应的所有菜单
|
||||
* @param roleId 角色ID
|
||||
* @return 角色对应的所有菜单
|
||||
*/
|
||||
List<MenuEO> listMenuEOByRoleID(String roleId);
|
||||
|
||||
/**
|
||||
* 获取用户的所有菜单
|
||||
* @param userId 用户ID
|
||||
* @return 用户的所有菜单
|
||||
*/
|
||||
List<MenuEO> listMenuEOByUserId(String userId);
|
||||
|
||||
/**
|
||||
* 获取当前节点的所有子节点
|
||||
* @param parentId 当前节点
|
||||
* @return 返回所有子节点
|
||||
*/
|
||||
List<MenuEO> getChildMenus(String parentId);
|
||||
|
||||
/**
|
||||
* 逻辑删除所有菜单
|
||||
* @param ids 菜单ID
|
||||
*/
|
||||
void deleteMenuLogic(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除角色与当前菜单以及子菜单关系
|
||||
* @param ids
|
||||
*/
|
||||
void deleteRoleMenus(String[] ids);
|
||||
|
||||
/**
|
||||
* 判定菜单是否属于角色
|
||||
* @param roleId 角色ID
|
||||
* @param menuId 菜单ID
|
||||
* @return 如果>0说明存在记录,菜单属于角色
|
||||
*/
|
||||
int isBelong(@Param("roleId") String roleId, @Param("menuId") String menuId);
|
||||
|
||||
List<MenuEO> selectPersonalByUserId(String userId);
|
||||
|
||||
List<MenuEO> queryByAllMenu(MenuEOPage page);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.sys.entity.OrgEO;
|
||||
import com.adc.da.sys.entity.UserOrgEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface OrgEODao extends BaseMapper<OrgEO> {
|
||||
|
||||
public List<OrgEO> listOrgEOByOrgName(@Param("orgName") String orgName);
|
||||
|
||||
public OrgEO getOrgEOByNameAndPid(@Param("orgName") String orgName, @Param("pId") String pId);
|
||||
|
||||
//liwenxuan:判断组织机构名称不重复
|
||||
public OrgEO getOrgEOByorgNameAndPidAndId(@Param("orgName") String orgName, @Param("pId") String pId, @Param("id") String id);
|
||||
|
||||
//liwenxuan:判断组织机构简称不重复
|
||||
public OrgEO getOrgEOByShotNameAndPidAndId(@Param("shotName") String shotName, @Param("pId") String pId, @Param("id") String id);
|
||||
|
||||
|
||||
public List<OrgEO> getOrgEOByPid(@Param("pId") String pId);
|
||||
|
||||
public OrgEO getOrgEOById(String id);
|
||||
|
||||
public int deleteLogic(String id);
|
||||
|
||||
//获取根节点, pid 和 CORP_ID 为 null
|
||||
public LinkedList<OrgEO> selectOrgAllNode();
|
||||
|
||||
List<OrgEO> getChildDept(@Param("orgId") String orgId);
|
||||
|
||||
public LinkedList<OrgEO> selectRootNode();
|
||||
|
||||
public LinkedList<OrgEO> selectNodeByPid(String id);
|
||||
|
||||
public List<OrgEO> queryByObject(OrgEO eo);
|
||||
|
||||
public int delOrgRelatedUser(UserOrgEO userOrgEO);
|
||||
|
||||
public int addOrgRelatedUsers(List<UserOrgEO> userOrgEOs);
|
||||
|
||||
public int delOrgRelatedUserByUserId(String usId);
|
||||
|
||||
public int addOrgRelatedUser(UserOrgEO userOrgEO);
|
||||
|
||||
public int updateUserOrg(UserOrgEO userOrgEO);
|
||||
|
||||
public int deleteUserOrgByOrgId(String orgId);
|
||||
/***
|
||||
* SSO查询组织机构
|
||||
* @MethodName:getOrgListOfSSO
|
||||
* @author: zhangyanduan
|
||||
* @param:[]
|
||||
* @return:java.util.List<com.adc.da.sys.entity.OrgEO>
|
||||
* date: 2018/10/16 19:18
|
||||
*/
|
||||
public List<OrgEO> getOrgListOfSSO();
|
||||
|
||||
/***
|
||||
* 从SSO添加组织机构
|
||||
* @MethodName:addOrgOfSSO
|
||||
* @author: zhangyanduan
|
||||
* @param:[orgEO]
|
||||
* @return:void
|
||||
* date: 2018/10/16 19:19
|
||||
*/
|
||||
public void addOrgOfSSO(OrgEO orgEO);
|
||||
|
||||
/***
|
||||
* SSO更新组织机构
|
||||
* @MethodName:updateOrgOfSSO
|
||||
* @author: zhangyanduan
|
||||
* @param:[orgEO]
|
||||
* @return:void
|
||||
* date: 2018/10/16 20:42
|
||||
*/
|
||||
public void updateOrgOfSSO(OrgEO orgEO);
|
||||
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description //根据角色名称,查找该角色的用户(用于流程中心)
|
||||
* @Date Administrator 2018/10/24
|
||||
* @Param [roleName]
|
||||
* @return java.lang.String
|
||||
**/
|
||||
public List<OrgEO> getTreeByRole1(String roleName);
|
||||
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description //根据用户查找其组织结构,筛选出唯一的组织结构
|
||||
* @Date Administrator 2018/10/24
|
||||
* @Param
|
||||
* @return
|
||||
**/
|
||||
public List<OrgEO> getTreeByRole2(String roleName);
|
||||
|
||||
|
||||
// liwenxuan:1.查找该用户所在的组织结构,拿到parent_ids
|
||||
// liwenxuan:2.根据第一步返回的parent_ids,和id 组成list ,使用in查询,筛选组织结构
|
||||
// liwenxuan:3.根据2中获取的组织结构id,和角色名称roleName删选用户
|
||||
public OrgEO getLeaderByUserId1(String usId);
|
||||
public List<String> getLeaderByUserId2(@Param("orgType") String orgType, @Param("parentIds") List<String> parentIds);
|
||||
public List<OrgEO> getLeaderByUserId3(@Param("roleName") String roleName, @Param("id") String id);
|
||||
|
||||
|
||||
// liwenxuan:根据orgId获取其所在的组织结构
|
||||
public List<String> getTreeByRoleAndOrgId1(@Param("orgId") String orgId);
|
||||
//liwenxuan:根据parentIds获取当前组织结构树分支 此parentIds中封装了id
|
||||
public List<OrgEO> getTreeByRoleAndOrgId2(@Param("ids") List<String> ids);
|
||||
// liwenxuan:使用mybatis的foreach标签,遍历list
|
||||
public List<OrgEO> getTreeByRoleAndOrgId3(@Param("roleName") String roleName, @Param("orgEOList") List<OrgEO> orgEOList);
|
||||
|
||||
List<OrgEO> getManagerByOrgId(@Param("roleName") String roleName, @Param("orgId") String orgId);
|
||||
|
||||
//根据orgType查询部及以上组织结构
|
||||
public List<OrgEO> getIdsByorgType();
|
||||
/**
|
||||
* @Author gaoyan
|
||||
* @Description //根据不忙部门名称查询部门id
|
||||
* @Date Administrator 2018/10/24
|
||||
* @Param
|
||||
* @return
|
||||
**/
|
||||
public List<OrgEO> getIdByName(String orgName);
|
||||
|
||||
//liwenxuan:1.根据orgId,roleId查看用户
|
||||
public List<OrgEO> getLeaderByOrgIdAndRoleId(@Param("orgIds") List<String> orgIds);
|
||||
|
||||
//根据orgId查找所有组织结构
|
||||
public OrgEO getAllOrgbyOrgId(String orgId);
|
||||
|
||||
// 根据orgIds查询下面的用户集合
|
||||
public List<OrgEO> getLeaderByUserId4(@Param("id") List<String> id);
|
||||
|
||||
// 查找科级部门下的科级负责人,根据orgId和roleId确定是否有一个用户
|
||||
public OrgEO getHeadOfSection(@Param("orgId") String orgId, @Param("userId") String userId);
|
||||
|
||||
// 查找部门下的部门负责人,根据orgId和roleId确定是否有一个用户
|
||||
public OrgEO getDepartmentHeads(@Param("orgId") String orgId, @Param("userId") String userId);
|
||||
|
||||
// 根据SSOOrgId获取OrgEO对象
|
||||
public OrgEO getOrgInfoBySSOOrgId(String SSOOrgId);
|
||||
|
||||
|
||||
public void updateOrgOfSSOById(OrgEO orgEO);
|
||||
|
||||
List<OrgEO> queryOrgByList(@Param("orgName") String orgName);
|
||||
|
||||
List<OrgEO> getTreeByRole3(String roleId);
|
||||
|
||||
List<OrgEO> getTreeByRole4(String roleId);
|
||||
|
||||
public OrgEO getOrgInfoByOrgId(String OrgId);
|
||||
|
||||
public OrgEO getOrgParentInfoOrgId(OrgEO orgEO);
|
||||
|
||||
public List<OrgEO> getOrgRootTree();
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.sys.entity.RoleEO;
|
||||
import com.adc.da.sys.entity.UserRoleEO;
|
||||
import com.adc.da.sys.vo.RoleVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <br>
|
||||
* <b>功能:</b>TS_ROLE RoleEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2017-11-06 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface RoleEODao extends BaseMapper<RoleEO> {
|
||||
|
||||
List<RoleEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage page);
|
||||
|
||||
List<RoleEO> queryByPage(BasePage page);
|
||||
|
||||
|
||||
public void save(RoleEO sysRoleEO);
|
||||
|
||||
public RoleEO getRoleWithMenus(String id);
|
||||
|
||||
public List<RoleEO> getRoleListByUserId(String userId);
|
||||
|
||||
public void deleteLogic(String roleId);
|
||||
|
||||
public void deleteRoleMenuByRoleId(String roleId);
|
||||
|
||||
public List<RoleEO> findAll(RoleVO roleVO);
|
||||
|
||||
/**
|
||||
* 查询角色所对应的用户
|
||||
*/
|
||||
public List<UserRoleEO> getUserRoleListByRoleId(String roleId);
|
||||
|
||||
public List<String> getMenuIdListByRoleId(String roleId);
|
||||
|
||||
public void saveRoleMenu(@Param("roleId") String roleId, @Param("menuId") String menuId);
|
||||
|
||||
/**
|
||||
* 判断角色是否属于相应用户
|
||||
*/
|
||||
public int isBelong(@Param("userId") String userId, @Param("roleId") String roleId);
|
||||
|
||||
public List<RoleEO> findByUserId(String userId);
|
||||
|
||||
/**
|
||||
* 通过用户名查询所有用户信息
|
||||
*/
|
||||
public List<RoleEO> selectByNameAndId(@Param("id") String id, @Param("name") String name);
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @Author liwenxuan
|
||||
* @Description //根据角色id判断此角色对应的用户数量
|
||||
* @Date Administrator 2018/11/5
|
||||
* @Param
|
||||
**/
|
||||
public int countByRoleId(@Param("roleId") String roleId, @Param("userId") String userId);
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description //所在组织组织机构下科级负责人和部门负责人的个数
|
||||
* @Date Administrator 2018/11/5
|
||||
* @Param
|
||||
* @return
|
||||
**/
|
||||
/*public int countByOrgId(String orgId);*/
|
||||
|
||||
//查找部门负责人和科级负责人
|
||||
public int countByRoleIdOfDepartmentAndSection(String roleId);
|
||||
//查找科级负责人
|
||||
public int querySectionCount(String roleId);
|
||||
//查找部门负责人
|
||||
public int querySectionCount1(String roleId);
|
||||
|
||||
public List<String> selectIdByNames(@Param("nameList") List<String> nameList);
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.sys.entity.RoleSarMenuEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_ROLE_SAR_MENU RoleSarMenuEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2019-02-19 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface RoleSarMenuEODao extends BaseMapper<RoleSarMenuEO> {
|
||||
|
||||
List<RoleSarMenuEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage page);
|
||||
|
||||
List<RoleSarMenuEO> queryByPage(BasePage page);
|
||||
|
||||
List<RoleSarMenuEO> findRoleSarMenu(String roleId);
|
||||
|
||||
String queryBusinessStandRootId(String sorDivide);
|
||||
|
||||
List<RoleSarMenuEO> selectSarMenuRoots();
|
||||
|
||||
int insertSubMenu(RoleSarMenuEO roleSarMenuEO);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.sys.entity.LoginInfoEO;
|
||||
import com.adc.da.sys.entity.UserConfigEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_USER_CONFIG UserConfigEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface UserConfigEODao extends BaseMapper<UserConfigEO> {
|
||||
|
||||
List<UserConfigEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage page);
|
||||
|
||||
List<UserConfigEO> queryByPage(BasePage page);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.page.UserEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_USER UserEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2017-12-18 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface UserEODao extends BaseMapper<UserEO> {
|
||||
|
||||
public void updatePassword(@Param("usid") String usid, @Param("oldPassword") String oldPassword,
|
||||
@Param("newPassword") String newPassword);
|
||||
|
||||
public void updateUserEO(UserEO userEO);
|
||||
|
||||
public List<Integer> getRoleIdListByUserId(Integer usid);
|
||||
|
||||
public void saveUserRole(@Param("usid") String usid, @Param("roleId") String roleId);
|
||||
|
||||
public void saveUserOrg(@Param("usid") String usid, @Param("orgId") String orgId);
|
||||
|
||||
public int queryByCount(BasePage queryPage);
|
||||
|
||||
public List<UserEO> queryByPage(BasePage queryPage);
|
||||
|
||||
/***
|
||||
* 用户管理查询分页
|
||||
* @MethodName:queryUserInfoByCount
|
||||
* @author: zhangyanduan
|
||||
* @param:[basePage]
|
||||
* @return:int
|
||||
* date: 2018/9/15 15:59
|
||||
*/
|
||||
public int queryUserInfoByCount(BasePage basePage);
|
||||
|
||||
public List<UserEO> queryUserInfoByPage(BasePage basePage);
|
||||
|
||||
/**
|
||||
* 物理删除用户角色关联
|
||||
*
|
||||
* @param usid
|
||||
* 用户ID
|
||||
*/
|
||||
public void deleteUserRoleByUsid(String usid);
|
||||
/**
|
||||
* 物理删除用户组织机构关联
|
||||
*
|
||||
* @param usid
|
||||
* 用户ID
|
||||
*/
|
||||
public void deleteUserOrgByUsid(String usid);
|
||||
|
||||
public int deleteLogicInBatch(List<String> usids);
|
||||
|
||||
/**
|
||||
* 批量删除用户角色关联
|
||||
*
|
||||
* @param usids
|
||||
* 用户ID集合
|
||||
*/
|
||||
public int deleteUserRoleByUsidInBatch(List<String> usids);
|
||||
|
||||
/**
|
||||
* 批量删除用户组织机构关联
|
||||
*
|
||||
* @param usids
|
||||
* 用户ID集合
|
||||
*/
|
||||
public int deleteUserOrgByUsidInBatch(List<String> usids);
|
||||
|
||||
public UserEO getUserEOByAccount(@Param("account") String account, @Param("usid") String usid);
|
||||
|
||||
/**
|
||||
* 查询用户及用户所对应的角色
|
||||
*/
|
||||
public UserEO getUserWithRoles(String id);
|
||||
|
||||
public UserEO getUserWithRolesAll(String id);
|
||||
|
||||
public UserEO get(String id);
|
||||
|
||||
/**
|
||||
* 根据当前登录用户id查询个人信息及部门
|
||||
* @param usid
|
||||
* @return
|
||||
*/
|
||||
UserEO selectOrgByPrimaryKey(String usid);
|
||||
|
||||
Integer selectOrgCountByPrimaryKey(String usid);
|
||||
|
||||
UserEO selectRoleMessageByPrimaryKey(String usid);
|
||||
|
||||
public List<UserEO> queryByOrg(BasePage basePage);
|
||||
|
||||
public UserEO selectByUnameAndPwd(UserEO userEO);
|
||||
public int queryByOrgCount(BasePage basePage);
|
||||
|
||||
public int updatePasswordByPrimaryKey(UserEO userEO);
|
||||
|
||||
//liwenxuan:查找未分配组织结构的用户的行数
|
||||
public int findBySetOrgCount(BasePage basePage);
|
||||
//liwenxuan:查询未分配组织机构人员信息
|
||||
public List<UserEO> findBySetOrg(BasePage basePage);
|
||||
|
||||
List<String> selectThatOrgUser(String orgId);
|
||||
|
||||
String selectOrgByUserId(String userId);
|
||||
|
||||
List<UserEO> queryUserEoList(UserEOPage page);
|
||||
/***
|
||||
* 添加SSO来源用户
|
||||
* @MethodName:addSSOUser
|
||||
* @author: zhangyanduan
|
||||
* @param:[userEO]
|
||||
* @return:void
|
||||
* date: 2018/10/23 20:17
|
||||
*/
|
||||
public void addSSOUser(UserEO userEO);
|
||||
/***
|
||||
* 根据工号查询用户信息
|
||||
* @MethodName:selectUserByWorkNum
|
||||
* @author: zhangyanduan
|
||||
* @param:[workNum]
|
||||
* @return:java.util.List<com.adc.da.sys.entity.UserEO>
|
||||
* date: 2018/10/25 16:20
|
||||
*/
|
||||
public List<UserEO> selectUserByWorkNum(String workNum);
|
||||
|
||||
/***
|
||||
* 根据对接ID获取用户信息
|
||||
* @MethodName:getUserBySSOId
|
||||
* @author: DuYunbao
|
||||
* @param:[ssoId]
|
||||
* @return:com.adc.da.sys.entity.UserEO
|
||||
* date: 2018/11/1 21:23
|
||||
*/
|
||||
public List<UserEO> getUserBySSOId(String ssoId);
|
||||
|
||||
public List<UserEO> getUserListByRoleName(String RoleName);
|
||||
//根据角色id查询用户信息
|
||||
public List<UserEO> getUserListByUserId(String userId);
|
||||
|
||||
public List<UserEO> getUserEOBySpecRole(@Param("orgId") String orgId, @Param("userId") String userId);
|
||||
|
||||
public List<UserEO> selectAllUserInfoBySSO();
|
||||
|
||||
//根据用户id查部门id
|
||||
public UserEO getOrgIdByUserId(String userId);
|
||||
|
||||
public UserEO getUserEOByAccountNotDeleted(String account);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.entity.UserInfoEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_USER_INFO UserInfoEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface UserInfoEODao extends BaseMapper<UserInfoEO> {
|
||||
|
||||
List<UserInfoEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage page);
|
||||
|
||||
List<UserInfoEO> queryByPage(BasePage page);
|
||||
|
||||
|
||||
UserInfoEO getUserInfoByUserId(UserInfoEO userInfo);
|
||||
|
||||
|
||||
int updateByUserId(UserInfoEO userId);
|
||||
|
||||
// liwenxuan:修改用户详细信息
|
||||
int updateByPrimaryKey(UserInfoEO userInfoEO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.sys.entity.UserRoleEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TR_USER_ROLE UserRoleEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2017-11-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface UserRoleEODao extends BaseMapper<UserRoleEO> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.sys.entity.WarnTimeEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_WARN_TIME WarnTimeEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface WarnTimeEODao extends BaseMapper<WarnTimeEO> {
|
||||
List<WarnTimeEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage page);
|
||||
|
||||
List<WarnTimeEO> queryByPage(BasePage page);
|
||||
}
|
||||
@@ -0,0 +1,236 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_DICTYPE DictypeEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class DicTypeEO extends BaseEntity {
|
||||
|
||||
private Integer validFlag;
|
||||
private String parentId;
|
||||
private String dicTypeCode;
|
||||
private String dicTypeName;
|
||||
private String dicId;
|
||||
private String id;
|
||||
private String describes;
|
||||
private Integer showIndex;
|
||||
private String addCountrySortFlag;
|
||||
|
||||
// 新增字段
|
||||
private Date creationTime;
|
||||
private Date modifyTime;
|
||||
|
||||
private String classifyCode;
|
||||
private String classifyCodeId;
|
||||
|
||||
//新增字段用于存储企业细类父ID
|
||||
private String businessParentId;
|
||||
private String treePid;
|
||||
private String others;
|
||||
private String creationUser;
|
||||
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>parentId -> parent_id</li>
|
||||
* <li>dicTypeCode -> dic_type_code</li>
|
||||
* <li>dicTypeName -> dic_type_name</li>
|
||||
* <li>dicId -> dic_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "showIndex": return "show_index";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "parentId": return "parent_id";
|
||||
case "dicTypeCode": return "dic_type_code";
|
||||
case "dicTypeName": return "dic_type_name";
|
||||
case "dicId": return "dic_id";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>parent_id -> parentId</li>
|
||||
* <li>dic_type_code -> dicTypeCode</li>
|
||||
* <li>dic_type_name -> dicTypeName</li>
|
||||
* <li>dic_id -> dicId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "show_index": return "showIndex";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "parent_id": return "parentId";
|
||||
case "dic_type_code": return "dicTypeCode";
|
||||
case "dic_type_name": return "dicTypeName";
|
||||
case "dic_id": return "dicId";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getDicTypeCode() {
|
||||
return this.dicTypeCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDicTypeCode(String dicTypeCode) {
|
||||
this.dicTypeCode = dicTypeCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getDicTypeName() {
|
||||
return this.dicTypeName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDicTypeName(String dicTypeName) {
|
||||
this.dicTypeName = dicTypeName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getDicId() {
|
||||
return this.dicId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDicId(String dicId) {
|
||||
this.dicId = dicId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Date getCreationTime() {
|
||||
return creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime() {
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getDescribes() {
|
||||
return describes;
|
||||
}
|
||||
|
||||
public void setDescribes(String describes) {
|
||||
this.describes = describes;
|
||||
}
|
||||
|
||||
public String getClassifyCode() {
|
||||
return classifyCode;
|
||||
}
|
||||
|
||||
public void setClassifyCode(String classifyCode) {
|
||||
this.classifyCode = classifyCode;
|
||||
}
|
||||
|
||||
public String getClassifyCodeId() {
|
||||
return classifyCodeId;
|
||||
}
|
||||
|
||||
public void setClassifyCodeId(String classifyCodeId) {
|
||||
this.classifyCodeId = classifyCodeId;
|
||||
}
|
||||
|
||||
public Integer getShowIndex() {
|
||||
return showIndex;
|
||||
}
|
||||
|
||||
public void setShowIndex(Integer showIndex) {
|
||||
this.showIndex = showIndex;
|
||||
}
|
||||
|
||||
public String getAddCountrySortFlag() {
|
||||
return addCountrySortFlag;
|
||||
}
|
||||
|
||||
public void setAddCountrySortFlag(String addCountrySortFlag) {
|
||||
this.addCountrySortFlag = addCountrySortFlag;
|
||||
}
|
||||
|
||||
public String getBusinessParentId() {
|
||||
return businessParentId;
|
||||
}
|
||||
|
||||
public void setBusinessParentId(String businessParentId) {
|
||||
this.businessParentId = businessParentId;
|
||||
}
|
||||
|
||||
public String getTreePid() {
|
||||
return treePid;
|
||||
}
|
||||
|
||||
public void setTreePid(String treePid) {
|
||||
this.treePid = treePid;
|
||||
}
|
||||
|
||||
public String getOthers() {
|
||||
return others;
|
||||
}
|
||||
|
||||
public void setOthers(String others) {
|
||||
this.others = others;
|
||||
}
|
||||
|
||||
public String getCreationUser() {
|
||||
return creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_DICTIONARY DictionaryEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class DictionaryEO extends BaseEntity {
|
||||
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private String validFlag;
|
||||
private String dictionaryName;
|
||||
private String dictionaryCode;
|
||||
private String id;
|
||||
private Integer orderNum;
|
||||
private String enable;
|
||||
private String dictionType;
|
||||
private String creationUser;
|
||||
private String isRelate;
|
||||
private String relateDicId;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>dictionarySeq -> dictionary_seq</li>
|
||||
* <li>dictionaryName -> dictionary_name</li>
|
||||
* <li>dictionaryCode -> dictionary_code</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "dictionarySeq": return "dictionary_seq";
|
||||
case "dictionaryName": return "dictionary_name";
|
||||
case "dictionaryCode": return "dictionary_code";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>dictionary_seq -> dictionarySeq</li>
|
||||
* <li>dictionary_name -> dictionaryName</li>
|
||||
* <li>dictionary_code -> dictionaryCode</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "dictionary_seq": return "dictionarySeq";
|
||||
case "dictionary_name": return "dictionaryName";
|
||||
case "dictionary_code": return "dictionaryCode";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getDictionaryName() {
|
||||
return this.dictionaryName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDictionaryName(String dictionaryName) {
|
||||
this.dictionaryName = dictionaryName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getDictionaryCode() {
|
||||
return this.dictionaryCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDictionaryCode(String dictionaryCode) {
|
||||
this.dictionaryCode = dictionaryCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(Integer orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getEnable() {
|
||||
return enable;
|
||||
}
|
||||
|
||||
public void setEnable(String enable) {
|
||||
this.enable = enable;
|
||||
}
|
||||
|
||||
public String getDictionType() {
|
||||
return dictionType;
|
||||
}
|
||||
|
||||
public void setDictionType(String dictionType) {
|
||||
this.dictionType = dictionType;
|
||||
}
|
||||
|
||||
public String getCreationUser() {
|
||||
return creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getIsRelate() {
|
||||
return isRelate;
|
||||
}
|
||||
|
||||
public void setIsRelate(String isRelate) {
|
||||
this.isRelate = isRelate;
|
||||
}
|
||||
|
||||
public String getRelateDicId() {
|
||||
return relateDicId;
|
||||
}
|
||||
|
||||
public void setRelateDicId(String relateDicId) {
|
||||
this.relateDicId = relateDicId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_DICTYPE DictypeEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class DicTypeEOPage extends BasePage {
|
||||
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "like";
|
||||
private String parentId;
|
||||
private String parentIdOperator = "like";
|
||||
private String dicTypeCode;
|
||||
private String dicTypeCodeOperator = "=";
|
||||
private String dicTypeName;
|
||||
private String dicTypeNameOperator = "like";
|
||||
private String dicId;
|
||||
private String dicIdOperator = "like";
|
||||
private String id;
|
||||
private String idOperator = "like";
|
||||
private String describes;
|
||||
private String describesOperator = "like";
|
||||
private Integer showIndex;
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getParentIdOperator() {
|
||||
return this.parentIdOperator;
|
||||
}
|
||||
|
||||
public void setParentIdOperator(String parentIdOperator) {
|
||||
this.parentIdOperator = parentIdOperator;
|
||||
}
|
||||
|
||||
public String getDicTypeCode() {
|
||||
return this.dicTypeCode;
|
||||
}
|
||||
|
||||
public void setDicTypeCode(String dicTypeCode) {
|
||||
this.dicTypeCode = dicTypeCode;
|
||||
}
|
||||
|
||||
public String getDicTypeCodeOperator() {
|
||||
return this.dicTypeCodeOperator;
|
||||
}
|
||||
|
||||
public void setDicTypeCodeOperator(String dicTypeCodeOperator) {
|
||||
this.dicTypeCodeOperator = dicTypeCodeOperator;
|
||||
}
|
||||
|
||||
public String getDicTypeName() {
|
||||
return this.dicTypeName;
|
||||
}
|
||||
|
||||
public void setDicTypeName(String dicTypeName) {
|
||||
this.dicTypeName = dicTypeName;
|
||||
}
|
||||
|
||||
public String getDicTypeNameOperator() {
|
||||
return this.dicTypeNameOperator;
|
||||
}
|
||||
|
||||
public void setDicTypeNameOperator(String dicTypeNameOperator) {
|
||||
this.dicTypeNameOperator = dicTypeNameOperator;
|
||||
}
|
||||
|
||||
public String getDicId() {
|
||||
return this.dicId;
|
||||
}
|
||||
|
||||
public void setDicId(String dicId) {
|
||||
this.dicId = dicId;
|
||||
}
|
||||
|
||||
public String getDicIdOperator() {
|
||||
return this.dicIdOperator;
|
||||
}
|
||||
|
||||
public void setDicIdOperator(String dicIdOperator) {
|
||||
this.dicIdOperator = dicIdOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getDescribes() {
|
||||
return describes;
|
||||
}
|
||||
|
||||
public void setDescribes(String describes) {
|
||||
this.describes = describes;
|
||||
}
|
||||
|
||||
public String getDescribesOperator() {
|
||||
return describesOperator;
|
||||
}
|
||||
|
||||
public void setDescribesOperator(String describesOperator) {
|
||||
this.describesOperator = describesOperator;
|
||||
}
|
||||
|
||||
public Integer getShowIndex() {
|
||||
return showIndex;
|
||||
}
|
||||
|
||||
public void setShowIndex(Integer showIndex) {
|
||||
this.showIndex = showIndex;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,185 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_DICTIONARY DictionaryEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class DictionaryEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String dictionarySeq;
|
||||
private String dictionarySeqOperator = "=";
|
||||
private String dictionaryName;
|
||||
private String dictionaryNameOperator = "=";
|
||||
private String dictionaryCode;
|
||||
private String dictionaryCodeOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String notId;
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getDictionarySeq() {
|
||||
return this.dictionarySeq;
|
||||
}
|
||||
|
||||
public void setDictionarySeq(String dictionarySeq) {
|
||||
this.dictionarySeq = dictionarySeq;
|
||||
}
|
||||
|
||||
public String getDictionarySeqOperator() {
|
||||
return this.dictionarySeqOperator;
|
||||
}
|
||||
|
||||
public void setDictionarySeqOperator(String dictionarySeqOperator) {
|
||||
this.dictionarySeqOperator = dictionarySeqOperator;
|
||||
}
|
||||
|
||||
public String getDictionaryName() {
|
||||
return this.dictionaryName;
|
||||
}
|
||||
|
||||
public void setDictionaryName(String dictionaryName) {
|
||||
this.dictionaryName = dictionaryName;
|
||||
}
|
||||
|
||||
public String getDictionaryNameOperator() {
|
||||
return this.dictionaryNameOperator;
|
||||
}
|
||||
|
||||
public void setDictionaryNameOperator(String dictionaryNameOperator) {
|
||||
this.dictionaryNameOperator = dictionaryNameOperator;
|
||||
}
|
||||
|
||||
public String getDictionaryCode() {
|
||||
return this.dictionaryCode;
|
||||
}
|
||||
|
||||
public void setDictionaryCode(String dictionaryCode) {
|
||||
this.dictionaryCode = dictionaryCode;
|
||||
}
|
||||
|
||||
public String getDictionaryCodeOperator() {
|
||||
return this.dictionaryCodeOperator;
|
||||
}
|
||||
|
||||
public void setDictionaryCodeOperator(String dictionaryCodeOperator) {
|
||||
this.dictionaryCodeOperator = dictionaryCodeOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getNotId() {
|
||||
return notId;
|
||||
}
|
||||
|
||||
public void setNotId(String notId) {
|
||||
this.notId = notId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,266 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_MENU MenuEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class MenuEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String remarks;
|
||||
private String remarksOperator = "=";
|
||||
private String permission;
|
||||
private String permissionOperator = "=";
|
||||
private String isShow;
|
||||
private String isShowOperator = "=";
|
||||
private String icon;
|
||||
private String iconOperator = "=";
|
||||
private String href;
|
||||
private String hrefOperator = "=";
|
||||
private String parentIds;
|
||||
private String parentIdsOperator = "=";
|
||||
private String parentId;
|
||||
private String parentIdOperator = "=";
|
||||
private String name;
|
||||
private String nameOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public String getRemarksOperator() {
|
||||
return this.remarksOperator;
|
||||
}
|
||||
|
||||
public void setRemarksOperator(String remarksOperator) {
|
||||
this.remarksOperator = remarksOperator;
|
||||
}
|
||||
|
||||
public String getPermission() {
|
||||
return this.permission;
|
||||
}
|
||||
|
||||
public void setPermission(String permission) {
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
public String getPermissionOperator() {
|
||||
return this.permissionOperator;
|
||||
}
|
||||
|
||||
public void setPermissionOperator(String permissionOperator) {
|
||||
this.permissionOperator = permissionOperator;
|
||||
}
|
||||
|
||||
public String getIsShow() {
|
||||
return this.isShow;
|
||||
}
|
||||
|
||||
public void setIsShow(String isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
public String getIsShowOperator() {
|
||||
return this.isShowOperator;
|
||||
}
|
||||
|
||||
public void setIsShowOperator(String isShowOperator) {
|
||||
this.isShowOperator = isShowOperator;
|
||||
}
|
||||
|
||||
public String getIcon() {
|
||||
return this.icon;
|
||||
}
|
||||
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public String getIconOperator() {
|
||||
return this.iconOperator;
|
||||
}
|
||||
|
||||
public void setIconOperator(String iconOperator) {
|
||||
this.iconOperator = iconOperator;
|
||||
}
|
||||
|
||||
public String getHref() {
|
||||
return this.href;
|
||||
}
|
||||
|
||||
public void setHref(String href) {
|
||||
this.href = href;
|
||||
}
|
||||
|
||||
public String getHrefOperator() {
|
||||
return this.hrefOperator;
|
||||
}
|
||||
|
||||
public void setHrefOperator(String hrefOperator) {
|
||||
this.hrefOperator = hrefOperator;
|
||||
}
|
||||
|
||||
public String getParentIds() {
|
||||
return this.parentIds;
|
||||
}
|
||||
|
||||
public void setParentIds(String parentIds) {
|
||||
this.parentIds = parentIds;
|
||||
}
|
||||
|
||||
public String getParentIdsOperator() {
|
||||
return this.parentIdsOperator;
|
||||
}
|
||||
|
||||
public void setParentIdsOperator(String parentIdsOperator) {
|
||||
this.parentIdsOperator = parentIdsOperator;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getParentIdOperator() {
|
||||
return this.parentIdOperator;
|
||||
}
|
||||
|
||||
public void setParentIdOperator(String parentIdOperator) {
|
||||
this.parentIdOperator = parentIdOperator;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getNameOperator() {
|
||||
return this.nameOperator;
|
||||
}
|
||||
|
||||
public void setNameOperator(String nameOperator) {
|
||||
this.nameOperator = nameOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,312 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_ORG OrgEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class OrgEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "like";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "like";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "like";
|
||||
private String isShow;
|
||||
private String isShowOperator = "like";
|
||||
private String parentIds;
|
||||
private String parentIdsOperator = "like";
|
||||
private String parentId;
|
||||
private String parentIdOperator = "like";
|
||||
private String shotName;
|
||||
private String shotNameOperator = "like";
|
||||
private String remarks;
|
||||
private String remarksOperator = "like";
|
||||
private String orgDesc;
|
||||
private String orgDescOperator = "like";
|
||||
private String orgType;
|
||||
private String orgTypeOperator = "like";
|
||||
private String orgCode;
|
||||
private String orgCodeOperator = "like";
|
||||
private String orgName;
|
||||
private String orgNameOperator = "like";
|
||||
private String id;
|
||||
private String idOperator = "like";
|
||||
|
||||
private String orgId;
|
||||
private String roleName;
|
||||
|
||||
private String processFlag;
|
||||
|
||||
public String getRoleName() {
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public void setRoleName(String roleName) {
|
||||
this.roleName = roleName;
|
||||
}
|
||||
|
||||
public String getOrgId() {
|
||||
return orgId;
|
||||
}
|
||||
|
||||
public void setOrgId(String orgId) {
|
||||
this.orgId = orgId;
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getIsShow() {
|
||||
return this.isShow;
|
||||
}
|
||||
|
||||
public void setIsShow(String isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
public String getIsShowOperator() {
|
||||
return this.isShowOperator;
|
||||
}
|
||||
|
||||
public void setIsShowOperator(String isShowOperator) {
|
||||
this.isShowOperator = isShowOperator;
|
||||
}
|
||||
|
||||
public String getParentIds() {
|
||||
return this.parentIds;
|
||||
}
|
||||
|
||||
public void setParentIds(String parentIds) {
|
||||
this.parentIds = parentIds;
|
||||
}
|
||||
|
||||
public String getParentIdsOperator() {
|
||||
return this.parentIdsOperator;
|
||||
}
|
||||
|
||||
public void setParentIdsOperator(String parentIdsOperator) {
|
||||
this.parentIdsOperator = parentIdsOperator;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getParentIdOperator() {
|
||||
return this.parentIdOperator;
|
||||
}
|
||||
|
||||
public void setParentIdOperator(String parentIdOperator) {
|
||||
this.parentIdOperator = parentIdOperator;
|
||||
}
|
||||
|
||||
public String getShotName() {
|
||||
return this.shotName;
|
||||
}
|
||||
|
||||
public void setShotName(String shotName) {
|
||||
this.shotName = shotName;
|
||||
}
|
||||
|
||||
public String getShotNameOperator() {
|
||||
return this.shotNameOperator;
|
||||
}
|
||||
|
||||
public void setShotNameOperator(String shotNameOperator) {
|
||||
this.shotNameOperator = shotNameOperator;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public String getRemarksOperator() {
|
||||
return this.remarksOperator;
|
||||
}
|
||||
|
||||
public void setRemarksOperator(String remarksOperator) {
|
||||
this.remarksOperator = remarksOperator;
|
||||
}
|
||||
|
||||
public String getOrgDesc() {
|
||||
return this.orgDesc;
|
||||
}
|
||||
|
||||
public void setOrgDesc(String orgDesc) {
|
||||
this.orgDesc = orgDesc;
|
||||
}
|
||||
|
||||
public String getOrgDescOperator() {
|
||||
return this.orgDescOperator;
|
||||
}
|
||||
|
||||
public void setOrgDescOperator(String orgDescOperator) {
|
||||
this.orgDescOperator = orgDescOperator;
|
||||
}
|
||||
|
||||
public String getOrgType() {
|
||||
return this.orgType;
|
||||
}
|
||||
|
||||
public void setOrgType(String orgType) {
|
||||
this.orgType = orgType;
|
||||
}
|
||||
|
||||
public String getOrgTypeOperator() {
|
||||
return this.orgTypeOperator;
|
||||
}
|
||||
|
||||
public void setOrgTypeOperator(String orgTypeOperator) {
|
||||
this.orgTypeOperator = orgTypeOperator;
|
||||
}
|
||||
|
||||
public String getOrgCode() {
|
||||
return this.orgCode;
|
||||
}
|
||||
|
||||
public void setOrgCode(String orgCode) {
|
||||
this.orgCode = orgCode;
|
||||
}
|
||||
|
||||
public String getOrgCodeOperator() {
|
||||
return this.orgCodeOperator;
|
||||
}
|
||||
|
||||
public void setOrgCodeOperator(String orgCodeOperator) {
|
||||
this.orgCodeOperator = orgCodeOperator;
|
||||
}
|
||||
|
||||
public String getOrgName() {
|
||||
return this.orgName;
|
||||
}
|
||||
|
||||
public void setOrgName(String orgName) {
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
public String getOrgNameOperator() {
|
||||
return this.orgNameOperator;
|
||||
}
|
||||
|
||||
public void setOrgNameOperator(String orgNameOperator) {
|
||||
this.orgNameOperator = orgNameOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getProcessFlag() {
|
||||
return processFlag;
|
||||
}
|
||||
|
||||
public void setProcessFlag(String processFlag) {
|
||||
this.processFlag = processFlag;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_ORG_MENU OrgMenuEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-09-23 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class OrgMenuEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String orgId;
|
||||
private String orgIdOperator = "=";
|
||||
private String orgRootId;
|
||||
private String orgRootIdOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getOrgId() {
|
||||
return this.orgId;
|
||||
}
|
||||
|
||||
public void setOrgId(String orgId) {
|
||||
this.orgId = orgId;
|
||||
}
|
||||
|
||||
public String getOrgIdOperator() {
|
||||
return this.orgIdOperator;
|
||||
}
|
||||
|
||||
public void setOrgIdOperator(String orgIdOperator) {
|
||||
this.orgIdOperator = orgIdOperator;
|
||||
}
|
||||
|
||||
public String getOrgRootId() {
|
||||
return this.orgRootId;
|
||||
}
|
||||
|
||||
public void setOrgRootId(String orgRootId) {
|
||||
this.orgRootId = orgRootId;
|
||||
}
|
||||
|
||||
public String getOrgRootIdOperator() {
|
||||
return this.orgRootIdOperator;
|
||||
}
|
||||
|
||||
public void setOrgRootIdOperator(String orgRootIdOperator) {
|
||||
this.orgRootIdOperator = orgRootIdOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.adc.da.sys.service;
|
||||
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.adc.da.sys.entity.DictionaryEO;
|
||||
import com.adc.da.sys.page.DictionaryEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IDicEOService extends IService<DictionaryEO> {
|
||||
|
||||
public DictionaryEO getDictionaryEOById(String id);
|
||||
|
||||
public DictionaryEO getDictionaryEOByDicCode(String dictionaryCode);
|
||||
|
||||
public DictionaryEO getDicEOAndTypeEoByDicCode(String dictionaryCode);
|
||||
|
||||
public DictionaryEO getDictionaryEOByDicName(String dictionaryName);
|
||||
|
||||
public void deleteDic(String id);
|
||||
|
||||
//gaoyan
|
||||
public List<DictionaryEO> getDictionaryEO();
|
||||
|
||||
public Integer countByCodeOrName(DictionaryEOPage page);
|
||||
|
||||
public List<DictionaryEO> queryAllDicByPage(DictionaryEOPage page);
|
||||
|
||||
public Integer queryAllDicByCount(DictionaryEOPage page);
|
||||
|
||||
public List<SelectionResult> getDictionarySelList(String id);
|
||||
|
||||
public List<SelectionResult> getDictionaryCodeSelList(String id);
|
||||
|
||||
public int queryUseByCount(String id);
|
||||
|
||||
public int insertSelective(DictionaryEO dictionaryEO);
|
||||
|
||||
public int updateByPrimaryKeySelective(DictionaryEO dictionaryEO);
|
||||
|
||||
public List<DictionaryEO> queryByPage(DictionaryEOPage page);
|
||||
|
||||
public int queryByCount(DictionaryEOPage page);
|
||||
|
||||
public List<DictionaryEO> queryByList(DictionaryEOPage page);
|
||||
|
||||
public String createDictionary(DictionaryEO dictionaryEO);
|
||||
|
||||
public String updateDictionary(DictionaryEO dictionaryEO);
|
||||
|
||||
public void deleteDicAndType(String id);
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.adc.da.sys.service;
|
||||
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.adc.da.sys.entity.DicTypeEO;
|
||||
import com.adc.da.sys.page.DicTypeEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface IDicTypeEOService extends IService<DicTypeEO> {
|
||||
|
||||
public DicTypeEO getDicTypeEOById(String id);
|
||||
|
||||
public void deleteDicTypeByIdInBatch(List<String> ids);
|
||||
|
||||
public List<DicTypeEO> getTypeIdByDicIdAndTypeName(String dicId, String id, String typeName, String parentId);
|
||||
|
||||
|
||||
public List<DicTypeEO> getDicTypeEOByDicTypeCode(String dicId, String id, String dicTypeCode, String parentId);
|
||||
|
||||
public void batchInsertTypeEo(List<DicTypeEO> ModelType);
|
||||
|
||||
public void deleteDicTypeByDicId(String id);
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 根据数据字典编码查询字典类型
|
||||
* Date 2018/9/11 15:09
|
||||
* @Param [dictionaryCode]
|
||||
* @return java.util.List<com.adc.da.sys.entity.DicTypeEO>
|
||||
**/
|
||||
public List<Map<String,String>> getDicTypeByDicCode(String dictionaryCode);
|
||||
|
||||
public List<DicTypeEO> getFineDicTypeByDicCode(String dictionaryCode);
|
||||
|
||||
//liwenxuan:国家地区新增
|
||||
public List<DicTypeEO> queryByPageNoParentId(DicTypeEOPage page);
|
||||
|
||||
public int queryByCountCounter(DicTypeEOPage page);
|
||||
public List<Map<String,String>> getDicTypeByParentCode(String dicTypeCode);
|
||||
|
||||
public List<DicTypeEO> getDicTypeByDicTypeName(DicTypeEO dicTypeEO);
|
||||
|
||||
public List<DicTypeEO> getDicTypeEOTypeNameAndCode(String id, String dicTypeName, String dicTypeCode, String parentId);
|
||||
public List<DicTypeEO> getDicTypeEOTypeNameAndCode1(String id, String dicTypeName, String dicTypeCode, String parentId);
|
||||
|
||||
// 标准法规属性管理中删除之前查看其它地方是否引用
|
||||
public boolean getDicTypeByDicTypeCode(String dicTypeCode);
|
||||
|
||||
public List<DicTypeEO> getDicEOByDicTypeCode(String dicTypeCode);
|
||||
|
||||
public List<DicTypeEO> getDicEOByDicTypeCodeParent(String dicTypeCode);
|
||||
|
||||
public int deleteByDicIdAndDicTypeCode(DicTypeEO dicTypeEO);
|
||||
|
||||
public int updateByDicTypeCode(DicTypeEO dicTypeEO);
|
||||
|
||||
public boolean judgeHaveUse(String sortCode, String countryCode);
|
||||
|
||||
public void deleteDicTypeByCodeAndParentid(List<String> codes);
|
||||
|
||||
public int deleteByDictionaryId(String dicId);
|
||||
|
||||
public List<SelectionResult> getDicTypeByDicId(String dicId);
|
||||
|
||||
public String getDicNamesByCodes(List<String> codeList);
|
||||
|
||||
public int insertSelective(DicTypeEO dictionaryEO);
|
||||
|
||||
public int updateByPrimaryKeySelective(DicTypeEO dictionaryEO);
|
||||
|
||||
public List<DicTypeEO> queryByPage(DicTypeEOPage page);
|
||||
|
||||
public int queryByCount(DicTypeEOPage page);
|
||||
|
||||
public List<DicTypeEO> queryByList(DicTypeEOPage page);
|
||||
|
||||
public Integer saveDictype(DicTypeEO dicTypeEO);
|
||||
|
||||
public DicTypeEO getDicTypeById(String id);
|
||||
|
||||
public void delete(List<String> ids);
|
||||
|
||||
public Map<String,Object> getDicTypeListCode();
|
||||
|
||||
public List<Map<String,String>> getDicTypeByParentCodes(String dicTypeCode);
|
||||
|
||||
}
|
||||
@@ -38,6 +38,6 @@ public interface IRoleEOService extends IService<RoleEO> {
|
||||
|
||||
public List<RoleEO> selectByNameAndId(String id, String name);
|
||||
|
||||
|
||||
public List<String> selectIdByNames(List<String> nameList);
|
||||
|
||||
}
|
||||
|
||||
@@ -18,6 +18,6 @@ public interface IRoleSarMenuEOService extends IService<RoleSarMenuEO> {
|
||||
|
||||
public List<RoleSarMenuEO> selectSarMenuRoots();
|
||||
|
||||
public int insertSubMenu (RoleSarMenuEO roleSarMenuEO);
|
||||
public int insertSubMenu(RoleSarMenuEO roleSarMenuEO);
|
||||
|
||||
}
|
||||
|
||||
@@ -12,6 +12,6 @@ public interface IUserConfigEOService extends IService<UserConfigEO> {
|
||||
|
||||
public List<UserConfigEO> queryByList(UserConfigEOPage page);
|
||||
|
||||
public int createPageConfig (String userId);
|
||||
public int createPageConfig(String userId);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,233 @@
|
||||
package com.adc.da.sys.service.impl;
|
||||
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.adc.da.sys.dao.DicEODao;
|
||||
import com.adc.da.sys.entity.DictionaryEO;
|
||||
import com.adc.da.sys.page.DictionaryEOPage;
|
||||
import com.adc.da.sys.service.IDicEOService;
|
||||
import com.adc.da.sys.service.IDicTypeEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 新增数据字典属性
|
||||
* */
|
||||
@Service("dicEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
@Slf4j
|
||||
public class DicEOServiceImpl extends ServiceImpl<DicEODao,DictionaryEO> implements IDicEOService {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(DictionaryEO.class);
|
||||
|
||||
@Autowired
|
||||
private DicEODao dicEODao;
|
||||
@Autowired
|
||||
private IDicTypeEOService dicTypeEODao;
|
||||
|
||||
public DicEODao getDao() {
|
||||
return dicEODao;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询字典详情
|
||||
*/
|
||||
@Transactional(readOnly = true, rollbackFor = Exception.class)
|
||||
public DictionaryEO getDictionaryById(String id) {
|
||||
return dicEODao.getDictionaryEOById(id);
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true, rollbackFor = Exception.class)
|
||||
public DictionaryEO getDictionaryByDicCode(String dictionaryCode) {
|
||||
return dicEODao.getDictionaryEOByDicCode(dictionaryCode);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DictionaryEO getDictionaryEOById(String id) {
|
||||
return dicEODao.getDictionaryEOById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DictionaryEO getDictionaryEOByDicCode(String dictionaryCode) {
|
||||
return dicEODao.getDictionaryEOByDicCode(dictionaryCode);
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true, rollbackFor = Exception.class)
|
||||
public DictionaryEO getDicEOAndTypeEoByDicCode(String dictionaryCode) {
|
||||
return dicEODao.getDicEOAndTypeEoByDicCode(dictionaryCode);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DictionaryEO getDictionaryEOByDicName(String dictionaryName) {
|
||||
return dicEODao.getDictionaryEOByDicName(dictionaryName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDic(String id) {
|
||||
dicEODao.deleteDic(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DictionaryEO> getDictionaryEO() {
|
||||
return dicEODao.getDictionaryEO();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer countByCodeOrName(DictionaryEOPage page) {
|
||||
return dicEODao.countByCodeOrName(page);
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true, rollbackFor = Exception.class)
|
||||
public DictionaryEO getDictionaryByDicName(String dictionaryName) {
|
||||
return dicEODao.getDictionaryEOByDicName(dictionaryName);
|
||||
}
|
||||
|
||||
//删除字典
|
||||
public void delete(String id) {
|
||||
dicEODao.deleteDic(id);
|
||||
}
|
||||
|
||||
//删除字典
|
||||
public void deleteDicAndType(String id) {
|
||||
dicEODao.deleteDic(id);
|
||||
dicTypeEODao.deleteByDictionaryId(id);
|
||||
}
|
||||
|
||||
public int queryUseByCount(String id){
|
||||
return dicEODao.queryUseByCount(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(DictionaryEO dictionaryEO) {
|
||||
return dicEODao.insertSelective(dictionaryEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(DictionaryEO dictionaryEO) {
|
||||
return dicEODao.updateByPrimaryKeySelective(dictionaryEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DictionaryEO> queryByPage(DictionaryEOPage page) {
|
||||
Integer rowCount = dicEODao.queryByCount(page);
|
||||
page.getPager().setRowCount(rowCount);
|
||||
return dicEODao.queryByPage(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int queryByCount(DictionaryEOPage page) {
|
||||
return dicEODao.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DictionaryEO> queryByList(DictionaryEOPage page) {
|
||||
return dicEODao.queryByList(page);
|
||||
}
|
||||
|
||||
/***
|
||||
* @Description: 新增数据字典
|
||||
* @Author: yangxuenan
|
||||
* @Date: 2020/8/21 14:34
|
||||
* @Param: [dictionaryEO]
|
||||
* @Return: int
|
||||
*/
|
||||
@Override
|
||||
public String createDictionary(DictionaryEO dictionaryEO){
|
||||
// 验证编码是否存在
|
||||
DictionaryEOPage page = new DictionaryEOPage();
|
||||
page.setDictionaryCode(dictionaryEO.getDictionaryCode());
|
||||
int countCode = dicEODao.countByCodeOrName(page);
|
||||
if (countCode > 0) {
|
||||
return "数据字典编码已存在";
|
||||
}
|
||||
// 验证
|
||||
page.setDictionaryCode(null);
|
||||
page.setDictionaryName(dictionaryEO.getDictionaryName());
|
||||
int countName = dicEODao.countByCodeOrName(page);
|
||||
if (countName > 0) {
|
||||
return "数据字典名称已存在";
|
||||
}
|
||||
dictionaryEO.setId(UUIDUtils.randomUUID20());
|
||||
dictionaryEO.setEnable("1");
|
||||
dictionaryEO.setValidFlag("0");
|
||||
dictionaryEO.setCreationUser(LoginUserUtil.getUserId());
|
||||
dictionaryEO.setCreationTime(new Date());
|
||||
dictionaryEO.setModifyTime(new Date());
|
||||
int countSuc = dicEODao.insertSelective(dictionaryEO);
|
||||
if (countSuc > 0) {
|
||||
return "success";
|
||||
} else {
|
||||
return "error";
|
||||
}
|
||||
}
|
||||
|
||||
/***
|
||||
* @Description: 修改数据字典
|
||||
* @Author: yangxuenan
|
||||
* @Date: 2020/8/21 15:42
|
||||
* @Param: [dictionaryEO]
|
||||
* @Return: java.lang.String
|
||||
*/
|
||||
@Override
|
||||
public String updateDictionary(DictionaryEO dictionaryEO){
|
||||
// 验证编码是否存在
|
||||
DictionaryEOPage page = new DictionaryEOPage();
|
||||
page.setNotId(dictionaryEO.getId());
|
||||
page.setDictionaryCode(dictionaryEO.getDictionaryCode());
|
||||
int countCode = dicEODao.countByCodeOrName(page);
|
||||
if (countCode > 0) {
|
||||
return "数据字典编码已存在";
|
||||
}
|
||||
// 验证
|
||||
page.setDictionaryCode(null);
|
||||
page.setDictionaryName(dictionaryEO.getDictionaryName());
|
||||
int countName = dicEODao.countByCodeOrName(page);
|
||||
if (countName > 0) {
|
||||
return "数据字典名称已存在";
|
||||
}
|
||||
dictionaryEO.setModifyTime(new Date());
|
||||
int countSuc = dicEODao.updateByPrimaryKeySelective(dictionaryEO);
|
||||
if (countSuc > 0) {
|
||||
return "success";
|
||||
} else {
|
||||
return "error";
|
||||
}
|
||||
}
|
||||
|
||||
public List<DictionaryEO> queryAllDicByPage (DictionaryEOPage page) {
|
||||
Integer rowCount = dicEODao.queryAllDicByCount(page);
|
||||
page.getPager().setRowCount(rowCount);
|
||||
return dicEODao.queryAllDicByPage(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer queryAllDicByCount(DictionaryEOPage page) {
|
||||
return dicEODao.queryAllDicByCount(page);
|
||||
}
|
||||
|
||||
/***
|
||||
* @Description: 以下拉框格式查询所有类别
|
||||
* @Author: yangxuenan
|
||||
* @Date: 2020/9/3 10:08
|
||||
* @Param: [id]
|
||||
* @Return: java.util.List<com.adc.da.sys.common.SelectionResult>
|
||||
*/
|
||||
public List<SelectionResult> getDictionarySelList(String id){
|
||||
return dicEODao.getDictionarySelList(id);
|
||||
}
|
||||
|
||||
public List<SelectionResult> getDictionaryCodeSelList(String id){
|
||||
return dicEODao.getDictionaryCodeSelList(id);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,414 @@
|
||||
package com.adc.da.sys.service.impl;
|
||||
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.adc.da.sys.dao.DicEODao;
|
||||
import com.adc.da.sys.dao.DicTypeEODao;
|
||||
import com.adc.da.sys.entity.DicTypeEO;
|
||||
import com.adc.da.sys.entity.DictionaryEO;
|
||||
import com.adc.da.sys.page.DicTypeEOPage;
|
||||
import com.adc.da.sys.service.IDicEOService;
|
||||
import com.adc.da.sys.service.IDicTypeEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
||||
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 org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@Service("dicTypeEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class DicTypeEOServiceImpl extends ServiceImpl<DicTypeEODao,DicTypeEO> implements IDicTypeEOService {
|
||||
private
|
||||
static final Logger logger = LoggerFactory.getLogger(DicTypeEO.class);
|
||||
|
||||
@Autowired
|
||||
private DicTypeEODao dicTypeEODao;
|
||||
|
||||
@Autowired
|
||||
private IDicEOService dicEODao;
|
||||
|
||||
|
||||
|
||||
public DicTypeEODao getDao() {
|
||||
return dicTypeEODao;
|
||||
}
|
||||
//李文轩:此方法对应的sql语句必须有parentId,不传入parentId就会报错
|
||||
public DicTypeEO saveDic(DicTypeEO dicTypeEO) {
|
||||
|
||||
String parentId = dicTypeEO.getParentId();
|
||||
|
||||
dicTypeEO.setId(UUIDUtils.randomUUID20());
|
||||
dicTypeEO.setValidFlag(0);
|
||||
|
||||
if(parentId!=null){
|
||||
dicTypeEO.setParentId(parentId);
|
||||
}
|
||||
|
||||
dicTypeEODao.insert(dicTypeEO);
|
||||
return dicTypeEO;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询字典详情
|
||||
*/
|
||||
@Transactional(readOnly = true, rollbackFor = Exception.class)
|
||||
public DicTypeEO getDicTypeById(String id) {
|
||||
return dicTypeEODao.getDicTypeEOById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(List<String> ids) {
|
||||
dicTypeEODao.deleteDicTypeByIdInBatch(ids);
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true, rollbackFor = Exception.class)
|
||||
public List<DicTypeEO> getTypeIdByDicIdAndTypeName(String dicId, String id, String typeName, String parentId) {
|
||||
return dicTypeEODao.getTypeIdByDicIdAndTypeName(dicId,id, typeName,parentId);
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true, rollbackFor = Exception.class)
|
||||
public List<DicTypeEO> getDicTypeEOByDicTypeCode(String dicId, String id, String dicTypeCode, String parentId) {
|
||||
return dicTypeEODao.getDicTypeEOByDicTypeCode(dicId,id,dicTypeCode,parentId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void batchInsertTypeEo(List<DicTypeEO> ModelType) {
|
||||
dicTypeEODao.batchInsertTypeEo(ModelType);
|
||||
}
|
||||
|
||||
public void deleteDicTypeByDicId(String id) {
|
||||
dicTypeEODao.deleteDicTypeByDicId(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据字典参数表
|
||||
* */
|
||||
@Override
|
||||
public Integer saveDictype(DicTypeEO dicTypeEO){
|
||||
// 此处存在问题, 当当前参数为标准类别时需要输入的code为name值
|
||||
if(StringUtils.isNotEmpty(dicTypeEO.getDicId()) && !"JKSADFH564S".equals(dicTypeEO.getDicId())){
|
||||
if(!StringUtils.isNotEmpty(dicTypeEO.getDicTypeCode())){
|
||||
dicTypeEO.setDicTypeCode(UUIDUtils.randomUUID10());
|
||||
}
|
||||
}
|
||||
String id = UUIDUtils.randomUUID20();
|
||||
dicTypeEO.setId(id);
|
||||
dicTypeEO.setValidFlag(0);
|
||||
dicTypeEO.setCreationTime(new Date());
|
||||
dicTypeEO.setModifyTime(new Date());
|
||||
dicTypeEO.setCreationUser(LoginUserUtil.getUserId());
|
||||
//加分类代号
|
||||
if (StringUtils.isNotEmpty(dicTypeEO.getClassifyCode())) {
|
||||
DicTypeEO dicClassifyCode = new DicTypeEO();
|
||||
dicClassifyCode.setDicTypeName(dicTypeEO.getClassifyCode());
|
||||
dicClassifyCode.setDicId("YDWVSVOAQG");
|
||||
dicClassifyCode.setParentId(id);
|
||||
dicClassifyCode.setId(UUIDUtils.randomUUID20());
|
||||
dicClassifyCode.setValidFlag(0);
|
||||
dicClassifyCode.setCreationTime(new Date());
|
||||
dicClassifyCode.setModifyTime(new Date());
|
||||
dicClassifyCode.setCreationUser(LoginUserUtil.getUserId());
|
||||
dicClassifyCode.setDicTypeCode(UUIDUtils.randomUUID10());
|
||||
dicTypeEODao.insertSelective(dicClassifyCode);
|
||||
}
|
||||
return dicTypeEODao.insertSelective(dicTypeEO);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 根据数据字典编码查询字典类型
|
||||
* Date 2018/9/12 10:18
|
||||
* @Param [dictionaryCode]
|
||||
* @return java.util.List<java.util.Map<java.lang.String,java.lang.String>>
|
||||
**/
|
||||
public List<Map<String,String>> getDicTypeByDicCode(String dictionaryCode){
|
||||
List<DicTypeEO> getDicType = new ArrayList<>();
|
||||
if ("BUSSFINECLASSSHOW".equals(dictionaryCode)) {
|
||||
getDicType = dicTypeEODao.getFineDicTypeByDicCode("BUSSFINECLASS");
|
||||
} else {
|
||||
getDicType = dicTypeEODao.getDicTypeByDicCode(dictionaryCode);
|
||||
}
|
||||
List<Map<String,String>> listMap = new ArrayList<>();
|
||||
for(int i=0;i<getDicType.size();i++){
|
||||
Map<String,String> map = new HashMap<>();
|
||||
map.put("label",getDicType.get(i).getDicTypeName());
|
||||
map.put("value",getDicType.get(i).getDicTypeCode());
|
||||
// gaoyan 新增代码开始,关于企业细类需要查父节点,即企业大类
|
||||
if(dictionaryCode.equals("BUSSFINECLASS") && StringUtils.isNotEmpty(getDicType.get(i).getParentId())){
|
||||
DicTypeEO dicTypeEO = dicTypeEODao.getDicTypeEOById(getDicType.get(i).getParentId());
|
||||
map.put("parentCode",dicTypeEO.getDicTypeCode());
|
||||
}
|
||||
// gaoyan 新增代码结束
|
||||
listMap.add(map);
|
||||
}
|
||||
return listMap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DicTypeEO> getFineDicTypeByDicCode(String dictionaryCode) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author gaoyan
|
||||
* @Description
|
||||
* Date 2018/9/11 19:12
|
||||
* @Param [dictionaryCode]
|
||||
* @return java.util.List<com.adc.da.sys.entity.DicTypeEO>
|
||||
**/
|
||||
@Override
|
||||
public Map<String,Object> getDicTypeListCode(){
|
||||
Map<String,Object> resultMap = new HashMap<>();
|
||||
List<DictionaryEO> diclist = dicEODao.getDictionaryEO();
|
||||
for (DictionaryEO dictionaryEO : diclist){
|
||||
List<Map<String,String >> relist = getDicTypeByDicCode(dictionaryEO.getDictionaryCode());
|
||||
resultMap.put(dictionaryEO.getDictionaryCode(),relist);
|
||||
}
|
||||
// 查询细类
|
||||
List<Map<String,String >> relist = getDicTypeByDicCode("BUSSFINECLASSSHOW");
|
||||
resultMap.put("BUSSFINECLASSSHOW",relist);
|
||||
List<Map<String,String >> arr = new ArrayList<>();
|
||||
resultMap.put("STANDCLASSIFYSHOW",arr);
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
//liwenxuan:国家地区新增
|
||||
public List<DicTypeEO> queryByPageNoParentId(DicTypeEOPage page){
|
||||
Integer rowCount = dicTypeEODao.queryByCountCounter(page);
|
||||
page.getPager().setRowCount(rowCount);
|
||||
return dicTypeEODao.queryByPageNoParentId(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int queryByCountCounter(DicTypeEOPage page) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 根据父级code查询
|
||||
* Date 2018/10/9 14:08
|
||||
* @Param [dicTypeCode]
|
||||
* @return java.util.List<java.util.Map<java.lang.String,java.lang.String>>
|
||||
**/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<Map<String,String>> getDicTypeByParentCode(String dicTypeCode){
|
||||
List<DicTypeEO> getDicType = dicTypeEODao.getDicTypeByParentCode(dicTypeCode);
|
||||
List<Map<String,String>> listMap = new ArrayList<>();
|
||||
for(int i=0;i<getDicType.size();i++){
|
||||
Map<String,String> map = new HashMap<>();
|
||||
map.put("label",getDicType.get(i).getDicTypeName());
|
||||
map.put("value",getDicType.get(i).getDicTypeCode());
|
||||
listMap.add(map);
|
||||
}
|
||||
return listMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 传递多个code值
|
||||
* Date 2019/1/2 16:38
|
||||
* @Param [dicTypeCode]
|
||||
* @return java.util.List<java.util.Map<java.lang.String,java.lang.String>>
|
||||
**/
|
||||
public List<Map<String,String>> getDicTypeByParentCodes(String dicTypeCode){
|
||||
String codes[] = dicTypeCode.split(",");
|
||||
List<Map<String,String>> listMap = new ArrayList<>();
|
||||
if (codes != null && codes.length>0) {
|
||||
for(int i=0;i<codes.length;i++) {
|
||||
List<DicTypeEO> getDicType = dicTypeEODao.getDicTypeByParentCode(codes[i]);
|
||||
for(int x=0;x<getDicType.size();x++){
|
||||
Map<String,String> map = new HashMap<>();
|
||||
map.put("label",getDicType.get(x).getDicTypeName());
|
||||
map.put("value",getDicType.get(x).getDicTypeCode());
|
||||
if (!listMap.contains(map)) {
|
||||
listMap.add(map);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return listMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description 用来企业大类判断新增是否重复
|
||||
* @Date Administrator 2018/10/17
|
||||
* @Param [id, dicypeName, dicTypeCode]
|
||||
* @return java.util.List<com.adc.da.sys.entity.DicTypeEO>
|
||||
**/
|
||||
public List<DicTypeEO> getDicTypeEOTypeNameAndCode(String id, String dicTypeName, String dicTypeCode, String parentId){
|
||||
return dicTypeEODao.getDicTypeEOTypeNameAndCode(id,dicTypeName,dicTypeCode,parentId);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description 用来企业大类判断新增是否重复
|
||||
* @Date Administrator 2018/10/17
|
||||
* @Param [id, dicypeName, dicTypeCode]
|
||||
* @return java.util.List<com.adc.da.sys.entity.DicTypeEO>
|
||||
**/
|
||||
public List<DicTypeEO> getDicTypeEOTypeNameAndCode1(String id, String dicTypeName, String dicTypeCode, String parentId){
|
||||
return dicTypeEODao.getDicTypeEOTypeNameAndCode1(id,dicTypeName,dicTypeCode,parentId);
|
||||
}
|
||||
|
||||
// 标准法规属性管理中删除之前查看其它地方是否引用
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean getDicTypeByDicTypeCode(String dicTypeCode){
|
||||
List<Integer> dicTypeByDicTypeCode = dicTypeEODao.getDicTypeByDicTypeCode(dicTypeCode);
|
||||
for (int count: dicTypeByDicTypeCode) {
|
||||
if(count > 0){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DicTypeEO> getDicTypeByDicTypeName(DicTypeEO dicTypeEO){
|
||||
return dicTypeEODao.getDicTypeByDicTypeName(dicTypeEO);
|
||||
}
|
||||
|
||||
public DicTypeEO getDicTypeEOById(String id){
|
||||
return dicTypeEODao.getDicTypeEOById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDicTypeByIdInBatch(List<String> ids) {
|
||||
dicTypeEODao.deleteDicTypeByIdInBatch(ids);
|
||||
}
|
||||
|
||||
public int deleteByDicIdAndDicTypeCode(DicTypeEO dicTypeEO){
|
||||
return dicTypeEODao.deleteByDicIdAndDicTypeCode(dicTypeEO);
|
||||
}
|
||||
|
||||
public List<DicTypeEO> getDicEOByDicTypeCode(String dicTypeCode){
|
||||
return dicTypeEODao.getDicEOByDicTypeCode(dicTypeCode);
|
||||
}
|
||||
|
||||
|
||||
public void judgeAndUpdateDictype(List<DicTypeEO> dicTypeEOList){
|
||||
List<String> samecodeid = new ArrayList<>();
|
||||
List<String> sameEntercodeid = new ArrayList<>();
|
||||
for(DicTypeEO dicTypeEO:dicTypeEOList){
|
||||
// 通过id判断,如果相同不做处理
|
||||
DicTypeEO dicEO = dicTypeEODao.getDicTypeEOById(dicTypeEO.getId());
|
||||
if (null == dicEO) {
|
||||
if (StringUtils.isNotEmpty(dicTypeEO.getParentId()) && !"".equals(dicTypeEO.getParentId())){
|
||||
// 有父id,是标准类别,进行特殊处理
|
||||
for (DicTypeEO dicTypeJue:dicTypeEOList){
|
||||
if (dicTypeJue.getId().equals(dicTypeEO.getParentId())){
|
||||
DicTypeEOPage dicTypeEOPage = new DicTypeEOPage();
|
||||
dicTypeEOPage.setDicTypeCode(dicTypeEO.getDicTypeCode());
|
||||
if(samecodeid.contains(dicTypeEO.getParentId())){
|
||||
dicTypeEOPage.setParentId(sameEntercodeid.get(samecodeid.indexOf(dicTypeEO.getParentId())));
|
||||
dicTypeEO.setParentId(sameEntercodeid.get(samecodeid.indexOf(dicTypeEO.getParentId())));
|
||||
} else {
|
||||
dicTypeEOPage.setParentId(dicTypeEO.getParentId());
|
||||
}
|
||||
dicTypeEOPage.setValidFlag("0");
|
||||
List<DicTypeEO> codelist = dicTypeEODao.queryByList(dicTypeEOPage);
|
||||
if (codelist == null || codelist.size()==0){
|
||||
// 判断name 值是否相同,如果相同 ,加标记
|
||||
dicTypeEO.setDescribes("同步云端属性");
|
||||
dicTypeEODao.insertSelective(dicTypeEO);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 通过code去判断,并且parentid是空的数据,如果没有数据进行添加
|
||||
List<DicTypeEO> codelist = dicTypeEODao.getDicEOByDicTypeCodeParent(dicTypeEO.getDicTypeCode());
|
||||
if (codelist == null || codelist.size()==0){
|
||||
// 判断name 值是否相同,如果相同 ,加标记
|
||||
dicTypeEO.setDescribes("同步云端属性");
|
||||
dicTypeEODao.insertSelective(dicTypeEO);
|
||||
} else {
|
||||
// 如果相同,记录id,
|
||||
samecodeid.add(dicTypeEO.getId());
|
||||
sameEntercodeid.add(codelist.get(0).getId());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 执行修改语句
|
||||
DicTypeEO dicTypeEOUpdate = new DicTypeEO();
|
||||
dicTypeEOUpdate.setId(dicTypeEO.getId());
|
||||
dicTypeEOUpdate.setDicTypeName(dicTypeEO.getDicTypeName());
|
||||
dicTypeEOUpdate.setShowIndex(dicTypeEO.getShowIndex());
|
||||
dicTypeEOUpdate.setDescribes("同步云端属性");
|
||||
dicTypeEOUpdate.setValidFlag(0);
|
||||
dicTypeEODao.updateByPrimaryKeySelective(dicTypeEOUpdate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean judgeHaveUse(String sortCode,String countryCode){
|
||||
Integer dicTypeByDicTypeCode = dicTypeEODao.judgeHaveUse(sortCode,countryCode);
|
||||
if (dicTypeByDicTypeCode != null && dicTypeByDicTypeCode>0){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public int updateByDicTypeCode(DicTypeEO dicTypeEO){
|
||||
return dicTypeEODao.updateByDicTypeCode(dicTypeEO);
|
||||
}
|
||||
|
||||
public List<DicTypeEO> getDicEOByDicTypeCodeParent(String dicTypeCode){
|
||||
return dicTypeEODao.getDicEOByDicTypeCodeParent(dicTypeCode);
|
||||
}
|
||||
public void deleteDicTypeByCodeAndParentid(List<String> codes) {
|
||||
dicTypeEODao.deleteDicTypeByCodeAndParentid(codes);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByDictionaryId(String dicId) {
|
||||
return dicTypeEODao.deleteByDictionaryId(dicId);
|
||||
}
|
||||
|
||||
public List<SelectionResult> getDicTypeByDicId(String dicId){
|
||||
return dicTypeEODao.getDicTypeByDicId(dicId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDicNamesByCodes(List<String> codeList) {
|
||||
return dicTypeEODao.getDicNamesByCodes(codeList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(DicTypeEO dictionaryEO) {
|
||||
return dicTypeEODao.insertSelective(dictionaryEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(DicTypeEO dictionaryEO) {
|
||||
return dicTypeEODao.updateByPrimaryKeySelective(dictionaryEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DicTypeEO> queryByPage(DicTypeEOPage page) {
|
||||
Integer rowCount = dicTypeEODao.queryByCount(page);
|
||||
page.getPager().setRowCount(rowCount);
|
||||
return dicTypeEODao.queryByPage(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int queryByCount(DicTypeEOPage page) {
|
||||
return dicTypeEODao.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DicTypeEO> queryByList(DicTypeEOPage page) {
|
||||
return dicTypeEODao.queryByList(page);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,7 +3,7 @@ package com.adc.da.sys.service.impl;
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.adc.da.base.entity.TreeEntity;
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.common.ValidFlagEnum;
|
||||
import com.adc.da.sys.constant.ValidFlagEnum;
|
||||
import com.adc.da.sys.dao.MenuEODao;
|
||||
import com.adc.da.sys.entity.MenuEO;
|
||||
import com.adc.da.sys.page.MenuEOPage;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.adc.da.sys.service.impl;
|
||||
|
||||
import com.adc.da.common.ValidFlagEnum;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.constant.ValidFlagEnum;
|
||||
import com.adc.da.sys.dao.OrgEODao;
|
||||
import com.adc.da.sys.entity.OrgEO;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.adc.da.sys.service.impl;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.common.ValidFlagEnum;
|
||||
import com.adc.da.sys.constant.ValidFlagEnum;
|
||||
import com.adc.da.sys.dao.RoleEODao;
|
||||
import com.adc.da.sys.entity.RoleEO;
|
||||
import com.adc.da.sys.entity.UserRoleEO;
|
||||
@@ -179,4 +179,9 @@ public class RoleEOServiceImpl extends ServiceImpl<RoleEODao, RoleEO> implements
|
||||
public List<RoleEO> selectByNameAndId(String id, String name){
|
||||
return this.baseMapper.selectByNameAndId(id,name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> selectIdByNames(List<String> nameList) {
|
||||
return this.baseMapper.selectIdByNames(nameList);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package com.adc.da.sys.service.impl;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.common.ValidFlagEnum;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.constant.UserSourceEnum;
|
||||
import com.adc.da.sys.constant.ValidFlagEnum;
|
||||
import com.adc.da.sys.dao.OrgEODao;
|
||||
import com.adc.da.sys.dao.UserEODao;
|
||||
import com.adc.da.sys.dao.UserInfoEODao;
|
||||
|
||||
@@ -0,0 +1,122 @@
|
||||
package com.adc.da.sys.vo;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class DicTypeVO {
|
||||
private String id;
|
||||
private String dicTypeCode;
|
||||
private String dicTypeName;
|
||||
private String dicId;
|
||||
private Integer validFlag;
|
||||
private String parentId;
|
||||
private Date creationTime;
|
||||
private Date modifyTime;
|
||||
private String describes;
|
||||
private Integer showIndex;
|
||||
|
||||
private String classifyCode;
|
||||
private String classifyCodeId;
|
||||
private String addCountrySortFlag;
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDicTypeCode() {
|
||||
return dicTypeCode;
|
||||
}
|
||||
public void setDicTypeCode(String dicTypeCode) {
|
||||
this.dicTypeCode = dicTypeCode;
|
||||
}
|
||||
|
||||
public String getDicTypeName() {
|
||||
return dicTypeName;
|
||||
}
|
||||
public void setDicTypeName(String dicTypeName) {
|
||||
this.dicTypeName = dicTypeName;
|
||||
}
|
||||
|
||||
public String getDicId() {
|
||||
return dicId;
|
||||
}
|
||||
|
||||
public void setDicId(String dicId) {
|
||||
this.dicId = dicId;
|
||||
}
|
||||
|
||||
public Integer getValidFlag() {
|
||||
return validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Date getCreationTime() {
|
||||
return creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime() {
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getDescribes() {
|
||||
return describes;
|
||||
}
|
||||
|
||||
public void setDescribes(String describes) {
|
||||
this.describes = describes;
|
||||
}
|
||||
|
||||
public String getClassifyCode() {
|
||||
return classifyCode;
|
||||
}
|
||||
|
||||
public void setClassifyCode(String classifyCode) {
|
||||
this.classifyCode = classifyCode;
|
||||
}
|
||||
|
||||
public String getClassifyCodeId() {
|
||||
return classifyCodeId;
|
||||
}
|
||||
|
||||
public void setClassifyCodeId(String classifyCodeId) {
|
||||
this.classifyCodeId = classifyCodeId;
|
||||
}
|
||||
|
||||
public Integer getShowIndex() {
|
||||
return showIndex;
|
||||
}
|
||||
|
||||
public void setShowIndex(Integer showIndex) {
|
||||
this.showIndex = showIndex;
|
||||
}
|
||||
|
||||
public String getAddCountrySortFlag() {
|
||||
return addCountrySortFlag;
|
||||
}
|
||||
|
||||
public void setAddCountrySortFlag(String addCountrySortFlag) {
|
||||
this.addCountrySortFlag = addCountrySortFlag;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
package com.adc.da.sys.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class OrgVO extends TreeVO<OrgVO>{
|
||||
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private Integer isShow;
|
||||
private String pId;
|
||||
private String shotName;
|
||||
private String remarks;
|
||||
private Integer orgDesc;
|
||||
private String orgType;
|
||||
private String orgCode;
|
||||
private String orgName;
|
||||
|
||||
public Date getModifyTime() {
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getCreationTime() {
|
||||
return creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public Integer getValidFlag() {
|
||||
return validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public Integer getIsShow() {
|
||||
return isShow;
|
||||
}
|
||||
|
||||
public void setIsShow(Integer isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
public String getShotName() {
|
||||
return shotName;
|
||||
}
|
||||
|
||||
public void setShotName(String shotName) {
|
||||
this.shotName = shotName;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public Integer getOrgDesc() {
|
||||
return orgDesc;
|
||||
}
|
||||
|
||||
public void setOrgDesc(Integer orgDesc) {
|
||||
this.orgDesc = orgDesc;
|
||||
}
|
||||
|
||||
public String getOrgType() {
|
||||
return orgType;
|
||||
}
|
||||
|
||||
public void setOrgType(String orgType) {
|
||||
this.orgType = orgType;
|
||||
}
|
||||
|
||||
public String getOrgCode() {
|
||||
return orgCode;
|
||||
}
|
||||
|
||||
public void setOrgCode(String orgCode) {
|
||||
this.orgCode = orgCode;
|
||||
}
|
||||
|
||||
public String getOrgName() {
|
||||
return orgName;
|
||||
}
|
||||
|
||||
public void setOrgName(String orgName) {
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
|
||||
public String getpId() {
|
||||
return pId;
|
||||
}
|
||||
|
||||
public void setpId(String pId) {
|
||||
this.pId = pId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,209 @@
|
||||
package com.adc.da.sys.vo;
|
||||
|
||||
import com.adc.da.sys.entity.MenuEO;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class RoleVO {
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private String operUser;
|
||||
private String extInfo;
|
||||
private String remarks;
|
||||
private Integer isDefault;
|
||||
private Integer useFlag;
|
||||
private String roleType;
|
||||
private String name;
|
||||
//新添字段
|
||||
private String oprUser;
|
||||
private String operUserName;
|
||||
|
||||
|
||||
// 扩展字段
|
||||
private List<MenuEO> menus = new ArrayList<>();
|
||||
private List<String> menusstr = new ArrayList<>();
|
||||
private String rid;
|
||||
private Integer belong;
|
||||
private String rname;
|
||||
private String rdesc;
|
||||
private String enabled;
|
||||
|
||||
private String id;
|
||||
private String roleIds;
|
||||
|
||||
public Date getModifyTime() {
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getCreationTime() {
|
||||
return creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public Integer getValidFlag() {
|
||||
return validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getOperUser() {
|
||||
return operUser;
|
||||
}
|
||||
|
||||
public void setOperUser(String operUser) {
|
||||
this.operUser = operUser;
|
||||
}
|
||||
|
||||
public String getExtInfo() {
|
||||
return extInfo;
|
||||
}
|
||||
|
||||
public void setExtInfo(String extInfo) {
|
||||
this.extInfo = extInfo;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public Integer getIsDefault() {
|
||||
return isDefault;
|
||||
}
|
||||
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
|
||||
public Integer getUseFlag() {
|
||||
return useFlag;
|
||||
}
|
||||
|
||||
public void setUseFlag(Integer useFlag) {
|
||||
this.useFlag = useFlag;
|
||||
}
|
||||
|
||||
public String getRoleType() {
|
||||
return roleType;
|
||||
}
|
||||
|
||||
public void setRoleType(String roleType) {
|
||||
this.roleType = roleType;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public String getOprUser() {
|
||||
return oprUser;
|
||||
}
|
||||
|
||||
public void setOprUser(String oprUser) {
|
||||
this.oprUser = oprUser;
|
||||
}
|
||||
|
||||
public String getOperUserName() {
|
||||
return operUserName;
|
||||
}
|
||||
|
||||
public void setOperUserName(String operUserName) {
|
||||
this.operUserName = operUserName;
|
||||
}
|
||||
|
||||
public List<MenuEO> getMenus() {
|
||||
return menus;
|
||||
}
|
||||
|
||||
public void setMenus(List<MenuEO> menus) {
|
||||
this.menus = menus;
|
||||
}
|
||||
|
||||
public List<String> getMenusstr() {
|
||||
return menusstr;
|
||||
}
|
||||
|
||||
public void setMenusstr(List<String> menusstr) {
|
||||
this.menusstr = menusstr;
|
||||
}
|
||||
|
||||
public String getRid() {
|
||||
return rid;
|
||||
}
|
||||
|
||||
public void setRid(String rid) {
|
||||
this.rid = rid;
|
||||
}
|
||||
|
||||
public Integer getBelong() {
|
||||
return belong;
|
||||
}
|
||||
|
||||
public void setBelong(Integer belong) {
|
||||
this.belong = belong;
|
||||
}
|
||||
|
||||
public String getRname() {
|
||||
return rname;
|
||||
}
|
||||
|
||||
public void setRname(String rname) {
|
||||
this.rname = rname;
|
||||
}
|
||||
|
||||
public String getRdesc() {
|
||||
return rdesc;
|
||||
}
|
||||
|
||||
public void setRdesc(String rdesc) {
|
||||
this.rdesc = rdesc;
|
||||
}
|
||||
|
||||
public String getEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(String enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public void setId(String id){
|
||||
this.id=id;
|
||||
}
|
||||
|
||||
public String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public String getRoleIds() {
|
||||
return roleIds;
|
||||
}
|
||||
|
||||
public void setRoleIds(String roleIds) {
|
||||
this.roleIds = roleIds;
|
||||
}
|
||||
}
|
||||
@@ -31,7 +31,7 @@ public interface WebSocketServer {
|
||||
* @param session session 对象
|
||||
* @param throwable 抛出的异常
|
||||
*/
|
||||
public void onError(Session session,Throwable throwable);
|
||||
public void onError(Session session, Throwable throwable);
|
||||
|
||||
/**
|
||||
* 向单个客户端发送消息
|
||||
@@ -48,7 +48,7 @@ public interface WebSocketServer {
|
||||
* @return:void
|
||||
* date: 2018/12/17 15:04
|
||||
*/
|
||||
public void sendMessageOfUserList(List<String> userList,WebSocketMessage message);
|
||||
public void sendMessageOfUserList(List<String> userList, WebSocketMessage message);
|
||||
|
||||
/**
|
||||
* 向所有在线用户群发消息
|
||||
|
||||
Reference in New Issue
Block a user