修改集宁环保发现问题

This commit is contained in:
wanggeng 2021-10-12 11:56:59 +08:00
parent 29b8ffdb4e
commit 915ab078c0
5 changed files with 112 additions and 7 deletions

View File

@ -35,8 +35,13 @@
## 集宁环保厅
1. 案件上报与流转与包头一致
2. 不一致的地方是,集宁环保的检查选项与企业行业有关,而不与网格长有关。
1. 案件上报与流转与包头v1一致
2. 不一致的地方是
1. 企业管理设置 **行业类型**
2. 企业管理设置 **所属分类**
3. 行业与检查项配置
4. 企业类型与检查项配置
5. 网格员管理 **是否为网格员** 设置为 **是**
3. 上报案件时检查项由当前检查的企业中的行业industryId决定。
4. 上报时校对检查项也是由企业中的行业industryId决定。

View File

@ -0,0 +1,97 @@
package com.cm.inspection.controller.app.apis.industrycheckitem.v2;
import com.cm.common.annotation.CheckRequestBodyAnnotation;
import com.cm.common.base.AbstractController;
import com.cm.common.constants.ISystemConstant;
import com.cm.common.exception.SearchException;
import com.cm.common.pojo.ListPage;
import com.cm.common.result.ErrorResult;
import com.cm.common.result.SuccessResult;
import com.cm.common.result.SuccessResultList;
import com.cm.inspection.pojo.dtos.industrycheckitem.IndustryCheckItemDTO;
import com.cm.inspection.pojo.vos.industrycheckitem.IndustryCheckItemBindVO;
import com.cm.inspection.service.industrycheckitem.IIndustryCheckItemService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
/**
* @ClassName: IndustryCheckItemAppController
* @Description: 行业检查项
* @Author: WenG
* @Date: 2020-03-27 22:12
* @Version: 1.0
**/
@Api(tags = ISystemConstant.API_TAGS_APP_PREFIX + "行业检查项接口")
@RestController("industryCheckItemV2AppController")
@RequestMapping(ISystemConstant.APP_PREFIX + "/industrycheckitem/v2")
public class IndustryCheckItemAppController extends AbstractController {
@Autowired
private IIndustryCheckItemService industryCheckItemService;
@ApiOperation(value = "新增行业检查项", notes = "新增行业检查项接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("saveindustrycheckitembynatureid/{natureId}")
@CheckRequestBodyAnnotation
public SuccessResult saveIndustryCheckItemByNatureId(@RequestHeader("token") String token, @PathVariable("natureId") String natureId, @RequestBody IndustryCheckItemBindVO industryCheckItemBindVO) throws Exception {
return industryCheckItemService.saveIndustryCheckItemByNatureIdAndToken(token, natureId, industryCheckItemBindVO);
}
@ApiOperation(value = "行业检查项详情(通过ID)", notes = "行业检查项详情(通过ID)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
@ApiImplicitParam(name = "industryCheckItemId", value = "行业检查项ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getindustrycheckitembyid/{industryCheckItemId}")
public IndustryCheckItemDTO getIndustryCheckItemById(@RequestHeader("token") String token, @PathVariable("industryCheckItemId") String industryCheckItemId) throws SearchException {
return industryCheckItemService.getIndustryCheckItemById(industryCheckItemId);
}
@ApiOperation(value = "行业检查项列表", notes = "行业检查项列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listindustrycheckitem")
public List<IndustryCheckItemDTO> listIndustryCheckItem(@RequestHeader("token") String token) throws SearchException {
Map<String, Object> params = requestParams();
return industryCheckItemService.listIndustryCheckItem(params);
}
@ApiOperation(value = "我的检查项列表", notes = "我的检查项列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("list-of-mine")
public List<IndustryCheckItemDTO> listOfMine(@RequestHeader("token") String token) throws SearchException {
Map<String, Object> params = requestParams();
return industryCheckItemService.listOfMine(token, params);
}
@ApiOperation(value = "行业检查项分页列表", notes = "行业检查项分页列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "Integer", defaultValue = "1"),
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "Integer", defaultValue = "20"),
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listpageindustrycheckitem")
public SuccessResultList<List<IndustryCheckItemDTO>> listPageIndustryCheckItem(@RequestHeader("token") String token, ListPage page) throws SearchException {
Map<String, Object> params = requestParams();
page.setParams(params);
return industryCheckItemService.listPageIndustryCheckItem(page);
}
}

View File

@ -21,11 +21,11 @@ spring:
datasource:
druid:
# url: jdbc:mysql://49.233.36.36:6688/db_cloud_inspection?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
url: jdbc:mysql://127.0.0.1:3306/db_btyjj_inspection?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
url: jdbc:mysql://106.12.218.237:8668/db_cloud_inspection?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
db-type: mysql
driver-class-name: com.mysql.jdbc.Driver
username: root
password: root
username: wanggeng
password: TSkj@0471.123
initial-size: 2
min-idle: 2
max-active: 5
@ -86,8 +86,8 @@ security:
oauth-server: http://192.168.0.103:7001/usercenter
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
client:
client-id: 32ec344a5fd04fd9911586df5d1dc36b
client-secret: a2NORTAyZmthdTNtVHNwLytGVVo0ckFhNktHQU9JWVFmUks0TGw5L2hQRW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
client-id: 44a8dc867f7f4465b7ba6065d87e30d7
client-secret: bTRCTEw1TEZkL284bVhLOXJ2NDYrSUlGdU1DSlNGaGdLTWhEb1l1VHZHMG1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
user-authorization-uri: ${security.oauth2.oauth-server}/oauth_client/authorize
access-token-uri: ${security.oauth2.oauth-server}/oauth_client/token
grant-type: authorization_code

View File

@ -17,9 +17,11 @@
<startEvent id="_2" name="StartEvent"/>
<userTask activiti:assignee="${reporter}" activiti:exclusive="true" id="_3"
name="reportCase">
<!--
<extensionElements>
<activiti:taskListener delegateExpression="${selfCheckReportCompleteListener}" event="delete"/>
</extensionElements>
-->
</userTask>
<exclusiveGateway gatewayDirection="Unspecified" id="_5" name="isCoordination"/>
<userTask activiti:assignee="${reReporter}" activiti:exclusive="true" id="_7"

View File

@ -153,6 +153,7 @@
jt1.master master_join_by_enterprise_id,
jt1.phone phone_join_by_enterprise_id,
jt1.industry industry_join_by_enterprise_id,
jt1.industry_type industry_type_join_by_enterprise_id,
jt1.engaged_count engaged_count_join_by_enterprise_id,
jt1.risk_operation risk_operation_join_by_enterprise_id,
jt1.area1_dictionary_name,