Browse Source

Merge branch 'dev' of http://git.elinkit.com.cn:7070/r/epmet-cloud into dev

dev_shibei_match
wxz 5 years ago
parent
commit
50e3c9b93f
  1. 2
      epmet-gateway/deploy/docker-compose-test.yml
  2. 2
      epmet-module/epmet-oss/epmet-oss-server/deploy/docker-compose-test.yml
  3. 2
      epmet-module/gov-access/gov-access-server/deploy/docker-compose-test.yml
  4. 2
      epmet-module/gov-issue/gov-issue-server/deploy/docker-compose-test.yml
  5. 2
      epmet-module/gov-mine/gov-mine-server/deploy/docker-compose-dev.yml
  6. 2
      epmet-module/gov-mine/gov-mine-server/deploy/docker-compose-test.yml
  7. 2
      epmet-module/gov-mine/gov-mine-server/pom.xml
  8. 3
      epmet-module/gov-mine/gov-mine-server/src/main/java/com/epmet/feign/GovIssueFeignClient.java
  9. 2
      epmet-module/oper-access/oper-access-server/deploy/docker-compose-dev.yml
  10. 2
      epmet-module/oper-access/oper-access-server/pom.xml
  11. 2
      epmet-module/oper-access/oper-access-server/src/main/resources/mapper/OperRoleUserDao.xml
  12. 2
      epmet-module/oper-crm/oper-crm-server/deploy/docker-compose-test.yml
  13. 5
      epmet-module/oper-customize/oper-customize-client/src/main/java/com/epmet/dto/FunctionDTO.java
  14. 2
      epmet-module/oper-customize/oper-customize-server/deploy/docker-compose-dev.yml
  15. 2
      epmet-module/oper-customize/oper-customize-server/deploy/docker-compose-test.yml
  16. 2
      epmet-module/oper-customize/oper-customize-server/pom.xml
  17. 5
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/entity/FunctionEntity.java
  18. 3
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/excel/FunctionExcel.java
  19. 8
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/FunctionServiceImpl.java
  20. 2
      epmet-module/resi-hall/resi-hall-server/deploy/docker-compose-test.yml
  21. 9
      epmet-module/resi-home/resi-home-server/src/main/java/com/epmet/service/impl/ProjectServiceImpl.java
  22. 2
      epmet-user/epmet-user-server/deploy/docker-compose-dev.yml
  23. 2
      epmet-user/epmet-user-server/deploy/docker-compose-test.yml
  24. 2
      epmet-user/epmet-user-server/pom.xml
  25. 7
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/OperUserController.java
  26. 21
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/OperUserServiceImpl.java

2
epmet-gateway/deploy/docker-compose-test.yml

@ -2,7 +2,7 @@ version: "3.7"
services:
epmet-gateway-server:
container_name: epmet-gateway-server-test
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-gateway:0.3.9
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-gateway:0.3.10
ports:
- "8080:8080"
network_mode: host # 使用现有网络

2
epmet-module/epmet-oss/epmet-oss-server/deploy/docker-compose-test.yml

@ -3,7 +3,7 @@ services:
epmet-oss-server:
container_name: epmet-oss-server-test
# image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-test/epmet-oss-server:0.3.2
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-oss-server:0.3.9
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-oss-server:0.3.10
ports:
- "8083:8083"
network_mode: host # 使用现有网络

2
epmet-module/gov-access/gov-access-server/deploy/docker-compose-test.yml

@ -2,7 +2,7 @@ version: "3.7"
services:
gov-access-server:
container_name: gov-access-server-test
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/gov-access-server:0.3.18
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/gov-access-server:0.3.20
ports:
- "8099:8099"
network_mode: host # 使用现有网络

2
epmet-module/gov-issue/gov-issue-server/deploy/docker-compose-test.yml

@ -2,7 +2,7 @@ version: "3.7"
services:
gov-issue-server:
container_name: gov-issue-server-test
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/gov-issue-server:0.3.30
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/gov-issue-server:0.3.31
ports:
- "8101:8101"
network_mode: host # 使用现有网络

2
epmet-module/gov-mine/gov-mine-server/deploy/docker-compose-dev.yml

@ -2,7 +2,7 @@ version: "3.7"
services:
gov-mine-server:
container_name: gov-mine-server-dev
image: 192.168.1.130:10080/epmet-cloud-dev/gov-mine-server:0.3.21
image: 192.168.1.130:10080/epmet-cloud-dev/gov-mine-server:0.3.22
ports:
- "8098:8098"
network_mode: host # 使用现有网络

2
epmet-module/gov-mine/gov-mine-server/deploy/docker-compose-test.yml

@ -2,7 +2,7 @@ version: "3.7"
services:
gov-mine-server:
container_name: gov-mine-server-test
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/gov-mine-server:0.3.21
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/gov-mine-server:0.3.22
ports:
- "8098:8098"
network_mode: host # 使用现有网络

2
epmet-module/gov-mine/gov-mine-server/pom.xml

@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<version>0.3.21</version>
<version>0.3.22</version>
<parent>
<groupId>com.epmet</groupId>
<artifactId>gov-mine</artifactId>

3
epmet-module/gov-mine/gov-mine-server/src/main/java/com/epmet/feign/GovIssueFeignClient.java

@ -16,8 +16,7 @@ import java.util.List;
* @Author yinzuomei
* @Date 2020/5/13 15:45
*/
//
@FeignClient(name = ServiceConstant.GOV_ISSUE_SERVER, fallback = GovIssueFeignClientFallBack.class,url = "http://localhost:")
@FeignClient(name = ServiceConstant.GOV_ISSUE_SERVER, fallback = GovIssueFeignClientFallBack.class)
public interface GovIssueFeignClient {
/**
* @param gridIdList

2
epmet-module/oper-access/oper-access-server/deploy/docker-compose-dev.yml

@ -2,7 +2,7 @@ version: "3.7"
services:
oper-access-server:
container_name: oper-access-server-dev
image: 192.168.1.130:10080/epmet-cloud-dev/oper-access-server:0.3.10
image: 192.168.1.130:10080/epmet-cloud-dev/oper-access-server:0.3.11
ports:
- "8093:8093"
network_mode: host # 使用现有网络

2
epmet-module/oper-access/oper-access-server/pom.xml

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<version>0.3.10</version>
<version>0.3.11</version>
<parent>
<artifactId>oper-access</artifactId>
<groupId>com.epmet</groupId>

2
epmet-module/oper-access/oper-access-server/src/main/resources/mapper/OperRoleUserDao.xml

@ -26,7 +26,7 @@
</update>
<select id="getRoleIdList" resultType="java.lang.String">
select role_id from oper_role_user where user_id = #{value}
select role_id from oper_role_user where user_id = #{value} and del_flag = 0
</select>
</mapper>

2
epmet-module/oper-crm/oper-crm-server/deploy/docker-compose-test.yml

@ -2,7 +2,7 @@ version: "3.7"
services:
oper-crm-server:
container_name: oper-crm-server-test
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/oper-crm-server:0.3.15
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/oper-crm-server:0.3.16
ports:
- "8090:8090"
network_mode: host # 使用现有网络

5
epmet-module/oper-customize/oper-customize-client/src/main/java/com/epmet/dto/FunctionDTO.java

@ -43,6 +43,11 @@ public class FunctionDTO implements Serializable {
*/
private String functionName;
/**
* 功能图标
*/
private String functionIcon;
/**
* 功能类型0.默认功能1.定制功能
*/

2
epmet-module/oper-customize/oper-customize-server/deploy/docker-compose-dev.yml

@ -2,7 +2,7 @@ version: "3.7"
services:
oper-customize-server:
container_name: oper-customize-server-dev
image: 192.168.1.130:10080/epmet-cloud-dev/oper-customize-server:0.3.14
image: 192.168.1.130:10080/epmet-cloud-dev/oper-customize-server:0.3.15
ports:
- "8089:8089"
network_mode: host # 使用现有网络

2
epmet-module/oper-customize/oper-customize-server/deploy/docker-compose-test.yml

@ -2,7 +2,7 @@ version: "3.7"
services:
oper-customize-server:
container_name: oper-customize-server-test
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/oper-customize-server:0.3.14
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/oper-customize-server:0.3.15
ports:
- "8089:8089"
network_mode: host # 使用现有网络

2
epmet-module/oper-customize/oper-customize-server/pom.xml

@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<version>0.3.14</version>
<version>0.3.15</version>
<parent>
<groupId>com.epmet</groupId>
<artifactId>oper-customize</artifactId>

5
epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/entity/FunctionEntity.java

@ -43,6 +43,11 @@ public class FunctionEntity extends BaseEpmetEntity {
*/
private String functionName;
/**
* 功能图标
*/
private String functionIcon;
/**
* 功能类型0.默认功能1.定制功能
*/

3
epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/excel/FunctionExcel.java

@ -37,6 +37,9 @@ public class FunctionExcel {
@Excel(name = "功能名称")
private String functionName;
@Excel(name = "功能图标")
private String functionIcon;
@Excel(name = "功能类型:0.默认功能,1.定制功能")
private Integer functionGroup;

8
epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/FunctionServiceImpl.java

@ -68,9 +68,15 @@ public class FunctionServiceImpl extends BaseServiceImpl<FunctionDao, FunctionEn
private QueryWrapper<FunctionEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
String functionName = (String)params.get("functionName");
String functionGroup = (String)params.get("functionGroup");
String shoppingStatus = (String)params.get("shoppingStatus");
QueryWrapper<FunctionEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id)
.like(StringUtils.isNotBlank(functionName), "FUNCTION_NAME", functionName)
.eq(StringUtils.isNotBlank(functionGroup), "FUNCTION_GROUP", functionGroup)
.eq(StringUtils.isNotBlank(shoppingStatus), "SHOPPING_STATUS", shoppingStatus);
return wrapper;
}

2
epmet-module/resi-hall/resi-hall-server/deploy/docker-compose-test.yml

@ -2,7 +2,7 @@ version: "3.7"
services:
resi-hall-server:
container_name: resi-hall-server-test
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/resi-hall-server:0.3.13
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/resi-hall-server:0.3.14
ports:
- "8100:8100"
network_mode: host # 使用现有网络

9
epmet-module/resi-home/resi-home-server/src/main/java/com/epmet/service/impl/ProjectServiceImpl.java

@ -1,5 +1,6 @@
package com.epmet.service.impl;
import com.epmet.commons.tools.constant.ServiceConstant;
import com.epmet.commons.tools.exception.RenException;
import com.epmet.commons.tools.utils.Result;
import com.epmet.constant.ProjectConstant;
@ -9,6 +10,8 @@ import com.epmet.dto.result.LatestListResultDTO;
import com.epmet.feign.GovIssueFeignClient;
import com.epmet.feign.GovProjectFeignClient;
import com.epmet.service.ProjectService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -21,7 +24,7 @@ import java.util.List;
*/
@Service
public class ProjectServiceImpl implements ProjectService {
private Logger logger = LogManager.getLogger(ProjectServiceImpl.class);
@Autowired
private GovProjectFeignClient govProjectFeignClient;
@Autowired
@ -49,7 +52,9 @@ public class ProjectServiceImpl implements ProjectService {
closedProjectIssueListFormDTO.setLatestListResult(listResult.getData());
Result<List<LatestListResultDTO>> resultList = govIssueFeignClient.getClosedProjectIssueList(closedProjectIssueListFormDTO);
if (!resultList.success() || null == resultList.getData()) {
throw new RenException(ProjectConstant.SELECT_ISSUE_EXCEPTION);
logger.error(String.format("居民端党建园地-最新结案列表查询异常,调用%s服务,入参customerId%s,gridId%s", ServiceConstant.GOV_ISSUE_SERVER,formDTO.getCustomerId(),formDTO.getGridId()));
// throw new RenException(ProjectConstant.SELECT_ISSUE_EXCEPTION);
return new ArrayList<>();
}
return resultList.getData();
}

2
epmet-user/epmet-user-server/deploy/docker-compose-dev.yml

@ -2,7 +2,7 @@ version: "3.7"
services:
epmet-user-server:
container_name: epmet-user-server-dev
image: 192.168.1.130:10080/epmet-cloud-dev/epmet-user-server:0.3.45
image: 192.168.1.130:10080/epmet-cloud-dev/epmet-user-server:0.3.48
ports:
- "8087:8087"
network_mode: host # 不会创建新的网络

2
epmet-user/epmet-user-server/deploy/docker-compose-test.yml

@ -2,7 +2,7 @@ version: "3.7"
services:
epmet-user-server:
container_name: epmet-user-server-test
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-user-server:0.3.44
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-user-server:0.3.45
ports:
- "8087:8087"
network_mode: host # 不会创建新的网络

2
epmet-user/epmet-user-server/pom.xml

@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<version>0.3.45</version>
<version>0.3.48</version>
<parent>
<groupId>com.epmet</groupId>
<artifactId>epmet-user</artifactId>

7
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/OperUserController.java

@ -31,7 +31,6 @@ import com.epmet.commons.tools.validator.group.UpdateGroup;
import com.epmet.dto.OperUserDTO;
import com.epmet.dto.result.QueryOperUserResultDto;
import com.epmet.excel.OperUserExcel;
import com.epmet.feign.OperRoleUserFeignClient;
import com.epmet.service.OperUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -53,8 +52,6 @@ public class OperUserController {
@Autowired
private OperUserService operUserService;
@Autowired
private OperRoleUserFeignClient operRoleUserFeignClient;
@GetMapping("page")
public Result<PageData<OperUserDTO>> page(@RequestParam Map<String, Object> params) {
@ -65,9 +62,7 @@ public class OperUserController {
@GetMapping("{id}")
public Result<OperUserDTO> get(@PathVariable("id") String id) {
OperUserDTO data = operUserService.get(id);
//用户角色列表
Result<List<String>> roleIdList = operRoleUserFeignClient.getRoleIdList(id);
data.setRoleIdList(roleIdList.getData());
return new Result<OperUserDTO>().ok(data);
}

21
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/OperUserServiceImpl.java

@ -20,17 +20,21 @@ package com.epmet.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl;
import com.epmet.commons.tools.constant.AppClientConstant;
import com.epmet.commons.tools.enums.SuperAdminEnum;
import com.epmet.commons.tools.page.PageData;
import com.epmet.commons.tools.security.password.PasswordUtils;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dao.OperUserDao;
import com.epmet.dto.OperUserDTO;
import com.epmet.entity.OperUserEntity;
import com.epmet.entity.UserEntity;
import com.epmet.feign.OperRoleUserFeignClient;
import com.epmet.redis.OperUserRedis;
import com.epmet.service.OperUserService;
import com.epmet.service.UserService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -55,6 +59,8 @@ public class OperUserServiceImpl extends BaseServiceImpl<OperUserDao, OperUserEn
private OperUserDao operUserDao;
@Autowired
private OperRoleUserFeignClient operRoleUserFeignClient;
@Autowired
private UserService userService;
@Override
public PageData<OperUserDTO> page(Map<String, Object> params) {
@ -85,14 +91,23 @@ public class OperUserServiceImpl extends BaseServiceImpl<OperUserDao, OperUserEn
@Override
public OperUserDTO get(String id) {
OperUserEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, OperUserDTO.class);
OperUserDTO result = ConvertUtils.sourceToTarget(entity, OperUserDTO.class);
//用户角色列表
Result<List<String>> roleIdList = operRoleUserFeignClient.getRoleIdList(result.getUserId());
result.setRoleIdList(roleIdList.getData());
return result;
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(OperUserDTO dto) {
OperUserEntity entity = ConvertUtils.sourceToTarget(dto, OperUserEntity.class);
UserEntity userEntity = new UserEntity();
userEntity.setFromClient(AppClientConstant.APP_OPER);
userEntity.setFromApp(AppClientConstant.CLIENT_WEB);
userService.insert(userEntity);
OperUserEntity entity = ConvertUtils.sourceToTarget(dto, OperUserEntity.class);
entity.setUserId(userEntity.getId());
//密码加密
String password = PasswordUtils.encode(entity.getPassword());
entity.setPassword(password);
@ -101,7 +116,7 @@ public class OperUserServiceImpl extends BaseServiceImpl<OperUserDao, OperUserEn
insert(entity);
//更新角色用户关系
operRoleUserFeignClient.saveOrUpdate(entity.getId(),dto.getRoleIdList());
operRoleUserFeignClient.saveOrUpdate(userEntity.getId(),dto.getRoleIdList());
}
@Override

Loading…
Cancel
Save