Commit 22e3f4f7 authored by tianyiming's avatar tianyiming

监管发起相关修改

parent 7c9ffaf7
package com.yeejoin.amos.boot.module.jg.biz.controller;
import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import com.yeejoin.amos.boot.module.jg.api.dto.JgInstallationNoticeDto;
import com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService;
import com.yeejoin.amos.boot.module.jg.biz.service.ICommonService;
import com.yeejoin.amos.boot.module.ymt.api.entity.EquipmentCategory;
import com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum;
......@@ -10,10 +13,7 @@ import io.swagger.annotations.ApiOperation;
import javafx.scene.chart.ValueAxis;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper;
......@@ -181,5 +181,24 @@ public class CommonController extends BaseController {
}
@Autowired
private IJgInstallationNoticeService iJgInstallationNoticeService;
/**
* 业务发起公共接口
* /jg/jg-installation-notice/save
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@PostMapping(value = "/saveOrSubmit")
@ApiOperation(httpMethod = "POST", value = "业务发起公共接口", notes = "业务发起公共接口")
public ResponseModel<Object> save(@RequestParam(value = "submitType", required = false) String submitType,
@RequestBody Map<String, Object> map) {
ReginParams reginParams = getSelectedOrgInfo();
commonService.invokeBusinessProcess(submitType, map, reginParams);
return ResponseHelper.buildResponse("");
}
}
package com.yeejoin.amos.boot.module.jg.biz.service;
import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import com.yeejoin.amos.boot.module.ymt.api.entity.EquipmentCategory;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
......@@ -42,4 +43,6 @@ public interface ICommonService {
List<LinkedHashMap> creatApproveTree();
List<Map<String, Object>> superviseBusinessCategory(String type);
void invokeBusinessProcess(String submitType, Map<String, Object> obj, ReginParams reginParams);
}
......@@ -2,7 +2,7 @@
"SGGZ": [
{
"name": "安装告知",
"code": "GZ-AZ"
"code": "GZ_AZ"
},
{
"name": "改造告知",
......@@ -28,7 +28,7 @@
},
{
"name": "移装变更登记",
"code": "DJ_BG"
"code": "DJ_YZ"
},
{
"name": "单位变更登记",
......
......@@ -14,25 +14,30 @@ public enum ApplicationFormTypeEnum {
/**
* 申请单枚举
*/
AZGZ("AZGZ"),//安装告知
WBBA("WBBA"),//维保备案
SYDJ("SYDJ"),//使用登记
SBYJ("SBYJ"),//设备移交
GZGZ("GZGZ"),//改造告知
WXGZ("WXGZ"),//维修告知
YZGZ("YZGZ"),//移装告知
GZBG("GZBG"),//改造变更登记
YZBG("YZBG"),//移装变更登记
DWBG("DWBG"),//单位变更登记
JY("JY"),
JG("JG"),// 检验结果
SBZX("SBZX"),//电梯(设备)注销
GMBG("GMBG"),//更名变更
TYQY("TYQY")//停用启用
AZGZ("AZGZ","GZ_AZ"),//安装告知
WBBA("WBBA","WB_BA"),//维保备案
SYDJ("SYDJ","DJ_SY"),//使用登记
SBYJ("SBYJ","SB_YJ"),//设备移交
GZGZ("GZGZ","GZ_GZ"),//改造告知
WXGZ("WXGZ","GZ_WX"),//维修告知
YZGZ("YZGZ","GZ_YZ"),//移装告知
GZBG("GZBG","DJ_GZ"),//改造变更登记
YZBG("YZBG","DJ_YZ"),//移装变更登记
DWBG("DWBG","DJ_DW"),//单位变更登记
JY("JY",""),
JG("JG",""),// 检验结果
SBZX("SBZX","BF_YZ"),//电梯(设备)注销
GMBG("GMBG","DJ_GM"),//更名变更
TYQY("TYQY","SB_QY")//停用启用
;
/**
* 编号
*/
private final String code;
/**
* 业务编号
*/
private final String businessCode;
}
......@@ -393,7 +393,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
if (ValidationUtil.isEmpty(type)) {
mapList = resourceJson.get(EquipmentClassifityEnum.BDLS.getCode());
} else {
if ("ZXBF".equals(type) || "TYQY".equals(type)) {
if ("QTBF".equals(type)) {
type = "superviseBusiness";
} else {
type = EquipmentClassifityEnum.BDLS.getCode();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment