feat: 流程入库 及 杂七杂八
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
||||
package com.adc.da.workFlow.controller;
|
||||
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.slrs.sarStandardsInfo.entity.ActSarItemsEO;
|
||||
import com.adc.da.workFlow.service.ActSarItemsEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/lawss/actSarItems")
|
||||
@Api(description = "|ActSarItemsEO|")
|
||||
public class ActSarItemsEOController extends BaseController<ActSarItemsEO> {
|
||||
|
||||
@Autowired
|
||||
private ActSarItemsEOService actSarItemsEOService;
|
||||
|
||||
// private static final Logger logger = LoggerFactory.getLogger(AttFileEOController.class);
|
||||
|
||||
@Value("${file.path}")
|
||||
private String filePath;//文件存储路径
|
||||
|
||||
@ApiOperation(value = "|SarStandardsInfoEO|标准入库流程标准入库")
|
||||
@PostMapping("/processCreateStand")
|
||||
public ResponseMessage processCreateStand(String infoJson) throws Exception {
|
||||
if (StringUtils.isNotBlank(infoJson)) {
|
||||
actSarItemsEOService.processCreateStand(infoJson);
|
||||
return Result.success("入库成功");
|
||||
} else {
|
||||
return Result.error("传入数据json不能为空");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.adc.da.workFlow.dao;
|
||||
|
||||
import com.adc.da.slrs.sarStandardsInfo.entity.ActSarItemsEO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ActSarItemsEODao {
|
||||
|
||||
List<ActSarItemsEO> queryByPage(ActSarItemsEO actSarItemsEO);
|
||||
|
||||
Integer process4PageDateCount(ActSarItemsEO actSarItemsEO);
|
||||
|
||||
int queryByCount();
|
||||
|
||||
List<ActSarItemsEO> queryStandAndLaws(ActSarItemsEO actSarItemsEO);
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.adc.da.workFlow.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 工作流使用
|
||||
* Date 2018/10/23 14:29
|
||||
* @Param
|
||||
* @return
|
||||
**/
|
||||
@Data
|
||||
public class ActSarItemsEO {
|
||||
private String resId;// 标准法规ID
|
||||
private String resFlag; //类型
|
||||
private String resNum; //标准,文件号
|
||||
private String resName; //标准,文件名称
|
||||
private String resType; //标准类型
|
||||
private String deptName; //部门id
|
||||
private String orgName; // 责任部门名称
|
||||
private String parentId; //仅条目有
|
||||
private String userId; //评估人ID
|
||||
private List<ActSarItemsEO> itemsList; //条目信息
|
||||
private String accessId; //导入时查询
|
||||
private String applyArctic;
|
||||
private String[] applyArcticList;
|
||||
private String energyKind;
|
||||
private String[] energyKindList;
|
||||
private String mainPointImplementation;
|
||||
private String termsConditions;
|
||||
private String parts;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date tackTime;
|
||||
private String applyArcticShow;
|
||||
private String energyKindShow;
|
||||
private String remarks;
|
||||
private String resState; //标准状态
|
||||
private String fileState; //文本状态
|
||||
private String type; //符合性状态
|
||||
private String prcNum;
|
||||
private String foId;
|
||||
private String foName;
|
||||
private String form;
|
||||
private String roleId;
|
||||
private String roleName;
|
||||
//流程分页用
|
||||
private Integer startIndex;
|
||||
private Integer endIndex;
|
||||
private Integer pageSize;
|
||||
private Integer nowPage;
|
||||
private Map<String, Object> attrInfoMap = new LinkedHashMap<>(); //属性表字段与值
|
||||
private String sarState;
|
||||
private String newPutText;
|
||||
private String prodPutText;
|
||||
private String authObj;
|
||||
private String authDelive;
|
||||
private String performInfo;
|
||||
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user