¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.controller; |
| | | |
| | | import cn.hutool.core.io.FileUtil; |
| | | import cn.hutool.http.HttpUtil; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.dto.ReportPageDto; |
| | | import com.ruoyi.inspect.service.InsReportService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.io.PrintWriter; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | import java.util.Scanner; |
| | | |
| | | @RestController |
| | | @RequestMapping("/insReport") |
| | | @Api(tags = "æ£éªæ¥å") |
| | | public class InsReportController { |
| | | |
| | | @Resource |
| | | private InsReportService insReportService; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢æ£éªæ¥åæ°æ®") |
| | | @GetMapping("/pageInsReport") |
| | | public Result pageInsReport(Page page, ReportPageDto reportPageDto){ |
| | | return Result.success(insReportService.pageInsReport(page, reportPageDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥åä¸ä¼ ") |
| | | @PostMapping("/inReport") |
| | | public Result inReport(MultipartFile file, Integer id) { |
| | | String urlString; |
| | | String pathName; |
| | | try { |
| | | String path = wordUrl; |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyMMddHHmmss")) + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | return Result.success(insReportService.inReport("/word/" + pathName, id)); |
| | | } catch (Exception e) { |
| | | throw new ErrorException("æä»¶ä¸ä¼ 失败"); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥åè¿å") |
| | | @PostMapping("/upReportUrl") |
| | | public Result upReportUrl(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | return Result.success(insReportService.upReportUrl(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥åå¨çº¿ç¼å¶") |
| | | @GetMapping("/upReportFile") |
| | | public Result upReportFile() { |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æäº¤") |
| | | @PostMapping("/writeReport") |
| | | public Result writeReport(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | Integer userId = (Integer) param.get("userId"); |
| | | return Result.success(insReportService.writeReport(id, userId, null)); |
| | | } |
| | | |
| | | /** |
| | | * @param userId éè¦çæ¹å人 |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "å®¡æ ¸") |
| | | @PostMapping("/examineReport") |
| | | public Result examineReport(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | Integer isExamine = (Integer) param.get("isExamine"); |
| | | String examineTell = (String) param.get("examineTell"); |
| | | Integer userId = (Integer) param.get("userId"); |
| | | return Result.success(insReportService.examineReport(id, isExamine, examineTell, userId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¹å") |
| | | @PostMapping("/ratifyReport") |
| | | public Result ratifyReport(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | Integer isRatify = (Integer) param.get("isRatify"); |
| | | String ratifyTell = (String) param.get("ratifyTell"); |
| | | return Result.success(insReportService.ratifyReport(id, isRatify, ratifyTell)); |
| | | } |
| | | |
| | | @RequestMapping("/onlyOffice/save") |
| | | public void saveFile(@RequestParam String fileName, HttpServletRequest request, HttpServletResponse response) { |
| | | PrintWriter writer = null; |
| | | try { |
| | | writer = response.getWriter(); |
| | | // è·åä¼ è¾çjsonæ°æ® |
| | | Scanner scanner = new Scanner(request.getInputStream()).useDelimiter("\\A"); |
| | | String body = scanner.hasNext() ? scanner.next() : ""; |
| | | JSONObject jsonObject = JSONObject.parseObject(body); |
| | | |
| | | if (jsonObject.containsKey("url")) { |
| | | String jsonArray = jsonObject.get("lastsave").toString(); // æ´æ°æ¶é´ |
| | | String fileUrl = jsonObject.get("url").toString(); // æ´æ°æä»¶url |
| | | HttpUtil.downloadFile(fileUrl, FileUtil.file(wordUrl + "/" + fileName)); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | writer.write("{\"error\":-1}"); |
| | | return; |
| | | } |
| | | /* |
| | | * status = 1ï¼æä»¬ç»onlyOfficeçæå¡è¿å{"error":"0"}çä¿¡æ¯ã |
| | | * è¿æ ·onlyOfficeä¼è®¤ä¸ºåè°æ¥å£æ¯æ²¡é®é¢çï¼è¿æ ·å°±å¯ä»¥å¨çº¿ç¼è¾ææ¡£äºï¼å¦åçè¯ä¼å¼¹åºçªå£è¯´æ |
| | | */ |
| | | if (Objects.nonNull(writer)) { |
| | | writer.write("{\"error\":0}"); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥åæ¹éä¸è½½") |
| | | @GetMapping("/downAll") |
| | | public Result downAll(String ids) { |
| | | return Result.success(insReportService.downAll(ids)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥åæ¹éä¸ä¼ ") |
| | | @PostMapping("/upAll") |
| | | public Result upAll(MultipartFile file) throws IOException { |
| | | return Result.success(insReportService.upAll(file)); |
| | | } |
| | | |
| | | /** |
| | | * éåå°æ£éªä»»å¡ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "éåå°æ£éªä»»å¡") |
| | | @PostMapping("/sendBackTask") |
| | | public Result sendBackTask(@RequestBody Map<String, Object> param){ |
| | | Integer id = (Integer) param.get("id"); |
| | | return Result.success(insReportService.sendBackTask(id)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.bind.annotation.XmlAccessType; |
| | | import javax.xml.bind.annotation.XmlAccessorType; |
| | | import javax.xml.bind.annotation.XmlRootElement; |
| | | import javax.xml.bind.annotation.XmlType; |
| | | |
| | | |
| | | /** |
| | | * <p>anonymous complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="appKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="wri" type="{http://tempuri.org/}OA_WorkflowRequestInfo" minOccurs="0"/> |
| | | * <element name="errorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="errorMsg" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | * |
| | | * |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "", propOrder = { |
| | | "appKey", |
| | | "wri", |
| | | "errorCode", |
| | | "errorMsg" |
| | | }) |
| | | @XmlRootElement(name = "AddWorkflow") |
| | | public class AddWorkflow { |
| | | |
| | | protected String appKey; |
| | | protected OAWorkflowRequestInfo wri; |
| | | protected String errorCode; |
| | | protected String errorMsg; |
| | | |
| | | /** |
| | | * è·åappKey屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getAppKey() { |
| | | return appKey; |
| | | } |
| | | |
| | | /** |
| | | * 设置appKey屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setAppKey(String value) { |
| | | this.appKey = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åwri屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link OAWorkflowRequestInfo } |
| | | * |
| | | */ |
| | | public OAWorkflowRequestInfo getWri() { |
| | | return wri; |
| | | } |
| | | |
| | | /** |
| | | * 设置wri屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link OAWorkflowRequestInfo } |
| | | * |
| | | */ |
| | | public void setWri(OAWorkflowRequestInfo value) { |
| | | this.wri = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åerrorCode屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getErrorCode() { |
| | | return errorCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置errorCode屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setErrorCode(String value) { |
| | | this.errorCode = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åerrorMsg屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getErrorMsg() { |
| | | return errorMsg; |
| | | } |
| | | |
| | | /** |
| | | * 设置errorMsg屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setErrorMsg(String value) { |
| | | this.errorMsg = value; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.bind.annotation.*; |
| | | |
| | | |
| | | /** |
| | | * <p>anonymous complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="AddWorkflowResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="errorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="errorMsg" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | * |
| | | * |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "", propOrder = { |
| | | "addWorkflowResult", |
| | | "errorCode", |
| | | "errorMsg" |
| | | }) |
| | | @XmlRootElement(name = "AddWorkflowResponse") |
| | | public class AddWorkflowResponse { |
| | | |
| | | @XmlElement(name = "AddWorkflowResult") |
| | | protected String addWorkflowResult; |
| | | protected String errorCode; |
| | | protected String errorMsg; |
| | | |
| | | /** |
| | | * è·åaddWorkflowResult屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getAddWorkflowResult() { |
| | | return addWorkflowResult; |
| | | } |
| | | |
| | | /** |
| | | * 设置addWorkflowResult屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setAddWorkflowResult(String value) { |
| | | this.addWorkflowResult = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åerrorCode屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getErrorCode() { |
| | | return errorCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置errorCode屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setErrorCode(String value) { |
| | | this.errorCode = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åerrorMsg屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getErrorMsg() { |
| | | return errorMsg; |
| | | } |
| | | |
| | | /** |
| | | * 设置errorMsg屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setErrorMsg(String value) { |
| | | this.errorMsg = value; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.bind.annotation.XmlAccessType; |
| | | import javax.xml.bind.annotation.XmlAccessorType; |
| | | import javax.xml.bind.annotation.XmlElement; |
| | | import javax.xml.bind.annotation.XmlType; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * <p>ArrayOfOA_WorkflowRequestTableField complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType name="ArrayOfOA_WorkflowRequestTableField"> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="OA_WorkflowRequestTableField" type="{http://tempuri.org/}OA_WorkflowRequestTableField" maxOccurs="unbounded" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | * |
| | | * |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "ArrayOfOA_WorkflowRequestTableField", propOrder = { |
| | | "oaWorkflowRequestTableField" |
| | | }) |
| | | public class ArrayOfOAWorkflowRequestTableField { |
| | | |
| | | @XmlElement(name = "OA_WorkflowRequestTableField", nillable = true) |
| | | protected List<OAWorkflowRequestTableField> oaWorkflowRequestTableField; |
| | | |
| | | /** |
| | | * Gets the value of the oaWorkflowRequestTableField property. |
| | | * |
| | | * <p> |
| | | * This accessor method returns a reference to the live list, |
| | | * not a snapshot. Therefore any modification you make to the |
| | | * returned list will be present inside the JAXB object. |
| | | * This is why there is not a <CODE>set</CODE> method for the oaWorkflowRequestTableField property. |
| | | * |
| | | * <p> |
| | | * For example, to add a new item, do as follows: |
| | | * <pre> |
| | | * getOAWorkflowRequestTableField().add(newItem); |
| | | * </pre> |
| | | * |
| | | * |
| | | * <p> |
| | | * Objects of the following type(s) are allowed in the list |
| | | * {@link OAWorkflowRequestTableField } |
| | | * |
| | | * |
| | | */ |
| | | public List<OAWorkflowRequestTableField> getOAWorkflowRequestTableField() { |
| | | if (oaWorkflowRequestTableField == null) { |
| | | oaWorkflowRequestTableField = new ArrayList<OAWorkflowRequestTableField>(); |
| | | } |
| | | return this.oaWorkflowRequestTableField; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.bind.annotation.XmlAccessType; |
| | | import javax.xml.bind.annotation.XmlAccessorType; |
| | | import javax.xml.bind.annotation.XmlElement; |
| | | import javax.xml.bind.annotation.XmlType; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * <p>ArrayOfOA_WorkflowRequestTableRecord complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType name="ArrayOfOA_WorkflowRequestTableRecord"> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="OA_WorkflowRequestTableRecord" type="{http://tempuri.org/}OA_WorkflowRequestTableRecord" maxOccurs="unbounded" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | * |
| | | * |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "ArrayOfOA_WorkflowRequestTableRecord", propOrder = { |
| | | "oaWorkflowRequestTableRecord" |
| | | }) |
| | | public class ArrayOfOAWorkflowRequestTableRecord { |
| | | |
| | | @XmlElement(name = "OA_WorkflowRequestTableRecord", nillable = true) |
| | | protected List<OAWorkflowRequestTableRecord> oaWorkflowRequestTableRecord; |
| | | |
| | | /** |
| | | * Gets the value of the oaWorkflowRequestTableRecord property. |
| | | * |
| | | * <p> |
| | | * This accessor method returns a reference to the live list, |
| | | * not a snapshot. Therefore any modification you make to the |
| | | * returned list will be present inside the JAXB object. |
| | | * This is why there is not a <CODE>set</CODE> method for the oaWorkflowRequestTableRecord property. |
| | | * |
| | | * <p> |
| | | * For example, to add a new item, do as follows: |
| | | * <pre> |
| | | * getOAWorkflowRequestTableRecord().add(newItem); |
| | | * </pre> |
| | | * |
| | | * |
| | | * <p> |
| | | * Objects of the following type(s) are allowed in the list |
| | | * {@link OAWorkflowRequestTableRecord } |
| | | * |
| | | * |
| | | */ |
| | | public List<OAWorkflowRequestTableRecord> getOAWorkflowRequestTableRecord() { |
| | | if (oaWorkflowRequestTableRecord == null) { |
| | | oaWorkflowRequestTableRecord = new ArrayList<OAWorkflowRequestTableRecord>(); |
| | | } |
| | | return this.oaWorkflowRequestTableRecord; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.bind.annotation.XmlAccessType; |
| | | import javax.xml.bind.annotation.XmlAccessorType; |
| | | import javax.xml.bind.annotation.XmlElement; |
| | | import javax.xml.bind.annotation.XmlType; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * <p>ArrayOfOA_WorkflowTable complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType name="ArrayOfOA_WorkflowTable"> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="OA_WorkflowTable" type="{http://tempuri.org/}OA_WorkflowTable" maxOccurs="unbounded" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | * |
| | | * |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "ArrayOfOA_WorkflowTable", propOrder = { |
| | | "oaWorkflowTable" |
| | | }) |
| | | public class ArrayOfOAWorkflowTable { |
| | | |
| | | @XmlElement(name = "OA_WorkflowTable", nillable = true) |
| | | protected List<OAWorkflowTable> oaWorkflowTable; |
| | | |
| | | /** |
| | | * Gets the value of the oaWorkflowTable property. |
| | | * |
| | | * <p> |
| | | * This accessor method returns a reference to the live list, |
| | | * not a snapshot. Therefore any modification you make to the |
| | | * returned list will be present inside the JAXB object. |
| | | * This is why there is not a <CODE>set</CODE> method for the oaWorkflowTable property. |
| | | * |
| | | * <p> |
| | | * For example, to add a new item, do as follows: |
| | | * <pre> |
| | | * getOAWorkflowTable().add(newItem); |
| | | * </pre> |
| | | * |
| | | * |
| | | * <p> |
| | | * Objects of the following type(s) are allowed in the list |
| | | * {@link OAWorkflowTable } |
| | | * |
| | | * |
| | | */ |
| | | public List<OAWorkflowTable> getOAWorkflowTable() { |
| | | if (oaWorkflowTable == null) { |
| | | oaWorkflowTable = new ArrayList<OAWorkflowTable>(); |
| | | } |
| | | return this.oaWorkflowTable; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.bind.annotation.XmlAccessType; |
| | | import javax.xml.bind.annotation.XmlAccessorType; |
| | | import javax.xml.bind.annotation.XmlRootElement; |
| | | import javax.xml.bind.annotation.XmlType; |
| | | |
| | | |
| | | /** |
| | | * <p>anonymous complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="requestid" type="{http://www.w3.org/2001/XMLSchema}int"/> |
| | | * <element name="forwardoperator" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="remark" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="userId" type="{http://www.w3.org/2001/XMLSchema}int"/> |
| | | * <element name="clientip" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | * |
| | | * |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "", propOrder = { |
| | | "requestid", |
| | | "forwardoperator", |
| | | "remark", |
| | | "userId", |
| | | "clientip" |
| | | }) |
| | | @XmlRootElement(name = "forwardWorkflowRequest") |
| | | public class ForwardWorkflowRequest { |
| | | |
| | | protected int requestid; |
| | | protected String forwardoperator; |
| | | protected String remark; |
| | | protected int userId; |
| | | protected String clientip; |
| | | |
| | | /** |
| | | * è·årequestid屿§çå¼ã |
| | | * |
| | | */ |
| | | public int getRequestid() { |
| | | return requestid; |
| | | } |
| | | |
| | | /** |
| | | * 设置requestid屿§çå¼ã |
| | | * |
| | | */ |
| | | public void setRequestid(int value) { |
| | | this.requestid = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åforwardoperator屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getForwardoperator() { |
| | | return forwardoperator; |
| | | } |
| | | |
| | | /** |
| | | * 设置forwardoperator屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setForwardoperator(String value) { |
| | | this.forwardoperator = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åremark屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | |
| | | /** |
| | | * 设置remark屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setRemark(String value) { |
| | | this.remark = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åuserId屿§çå¼ã |
| | | * |
| | | */ |
| | | public int getUserId() { |
| | | return userId; |
| | | } |
| | | |
| | | /** |
| | | * 设置userId屿§çå¼ã |
| | | * |
| | | */ |
| | | public void setUserId(int value) { |
| | | this.userId = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åclientip屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getClientip() { |
| | | return clientip; |
| | | } |
| | | |
| | | /** |
| | | * 设置clientip屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setClientip(String value) { |
| | | this.clientip = value; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.bind.annotation.XmlAccessType; |
| | | import javax.xml.bind.annotation.XmlAccessorType; |
| | | import javax.xml.bind.annotation.XmlRootElement; |
| | | import javax.xml.bind.annotation.XmlType; |
| | | |
| | | |
| | | /** |
| | | * <p>anonymous complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="forwardWorkflowRequestResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | * |
| | | * |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "", propOrder = { |
| | | "forwardWorkflowRequestResult" |
| | | }) |
| | | @XmlRootElement(name = "forwardWorkflowRequestResponse") |
| | | public class ForwardWorkflowRequestResponse { |
| | | |
| | | protected String forwardWorkflowRequestResult; |
| | | |
| | | /** |
| | | * è·åforwardWorkflowRequestResult屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getForwardWorkflowRequestResult() { |
| | | return forwardWorkflowRequestResult; |
| | | } |
| | | |
| | | /** |
| | | * 设置forwardWorkflowRequestResult屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setForwardWorkflowRequestResult(String value) { |
| | | this.forwardWorkflowRequestResult = value; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | public class OAProcess { |
| | | |
| | | public static String oaReturnMsg(int code, String msg) { |
| | | return "<miap><miap-header><errorcode>" + code + "</errorcode><errormsg>" + msg + "</errormsg></miap-header" + "><miap-Body></miap-Body></miap>"; |
| | | } |
| | | |
| | | /** |
| | | * @param mainFieldsï¼ä¸»è¡¨åæ®µæ°æ® |
| | | * @param detailFields:åè¡¨åæ®µæ°æ® |
| | | * @param requestName:åå»ºçæµç¨çåç§° |
| | | * @param workflowId:OAæµç¨ID |
| | | * @param createrId:OAè´¦å· |
| | | * @return OAResult |
| | | * @throws Exception |
| | | */ |
| | | public static OAResult start(Map<String, String> mainFields, List<Map<String, String>> detailFields, String requestName, String workflowId, String createrId) throws Exception { |
| | | OAService oaService = new OAService(); |
| | | //å建æµç¨ä¸»ä½ |
| | | OAWorkflowRequestInfo wri = new OAWorkflowRequestInfo(); |
| | | wri.setWorkflowId(workflowId); |
| | | wri.setCreaterId(createrId); |
| | | wri.setRequestLevel("0"); |
| | | wri.setRequestName(requestName); |
| | | |
| | | OAWorkflowTable wmi = oaService.createOAMainWorkflowTable(mainFields); |
| | | // å°ä¸»è¡¨ä¿¡æ¯å¡«å
å°æµç¨ä¿¡æ¯é |
| | | wri.setWorkflowMainTable(wmi); |
| | | |
| | | ArrayOfOAWorkflowTable owdts = oaService.createOADetailWorkflowTable(detailFields); |
| | | // å°æç»è¡¨ä¿¡æ¯å¡«å
å°æµç¨ä¿¡æ¯é |
| | | wri.setWorkflowDetailTables(owdts); |
| | | |
| | | // åèµ·OAæµç¨ |
| | | OAResult oaResult = oaService.sendWorkFlow(wri); |
| | | // è¾åºOAæµç¨æ§è¡ç»æ |
| | | System.out.println(oaResult); |
| | | return oaResult; |
| | | } |
| | | |
| | | |
| | | public static OAResult start(Map<String, String> mainFields, String requestName, String workflowId, String createrId) throws Exception { |
| | | OAService oaService = new OAService(); |
| | | //å建æµç¨ä¸»ä½ |
| | | OAWorkflowRequestInfo wri = new OAWorkflowRequestInfo(); |
| | | wri.setWorkflowId(workflowId); |
| | | wri.setCreaterId(createrId); |
| | | wri.setRequestLevel("0"); |
| | | wri.setRequestName(requestName); |
| | | // wri.setIsnextflow("1"); |
| | | wri.setIsnextflow("0"); |
| | | //å建主表 |
| | | OAWorkflowTable wmi = oaService.createOAMainWorkflowTable(mainFields); |
| | | // å°ä¸»è¡¨ä¿¡æ¯å¡«å
å°æµç¨ä¿¡æ¯é |
| | | wri.setWorkflowMainTable(wmi); |
| | | |
| | | // åèµ·OAæµç¨ |
| | | OAResult oaResult = oaService.sendWorkFlow(wri); |
| | | // è¾åºOAæµç¨æ§è¡ç»æ |
| | | System.out.println(oaResult); |
| | | return oaResult; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import lombok.Data; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * @author ZTT |
| | | */ |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "oa") |
| | | @Data |
| | | public class OAProperty { |
| | | |
| | | /** |
| | | * oaå°å |
| | | */ |
| | | private String oaHost; |
| | | |
| | | // /** |
| | | // * æä»¶æ¥çipå°å |
| | | // */ |
| | | // private String prodIp; |
| | | |
| | | /** |
| | | * è£
å¤çµç¼ï¼ä¸åæ ¼å®¡æ¹oaçid |
| | | */ |
| | | private String unqualifiedProcessId; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author ZTT |
| | | */ |
| | | @Data |
| | | public class OAResult { |
| | | private static final String SUCCESS_CODE = "0"; |
| | | |
| | | /** |
| | | * é误代ç |
| | | */ |
| | | private String errorCode; |
| | | /** |
| | | * éè¯¯ä¿¡æ¯ |
| | | */ |
| | | private String errorMsg; |
| | | /** |
| | | * æµç¨ç¼å· |
| | | */ |
| | | private String addWorkflowResult; |
| | | |
| | | |
| | | public boolean success() { |
| | | return SUCCESS_CODE.equals(errorCode); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.ws.Holder; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author ZTT |
| | | */ |
| | | public class OAService { |
| | | /** |
| | | * å建OAæµç¨ä¸»è¡¨ |
| | | * |
| | | * @param fields |
| | | * @return |
| | | */ |
| | | public OAWorkflowTable createOAMainWorkflowTable(Map<String, String> fields) { |
| | | //------------------主表åèµå¼--------------------------- |
| | | List<OAWorkflowRequestTableField> oaWorkflowRequestTableField = new ArrayList<OAWorkflowRequestTableField>(); |
| | | |
| | | for (Map.Entry<String, String> field : fields.entrySet()) { |
| | | oaWorkflowRequestTableField.add(createOAWorkflowRequestTableField(field.getKey(), field.getValue().toString())); |
| | | } |
| | | |
| | | System.out.println("@#######################"); |
| | | for (OAWorkflowRequestTableField workflowRequestTableField : oaWorkflowRequestTableField) { |
| | | |
| | | System.out.println(workflowRequestTableField.fieldName +","+ workflowRequestTableField.fieldValue +"--"+ workflowRequestTableField.fieldType); |
| | | } |
| | | //å建主表å |
| | | ArrayOfOAWorkflowRequestTableField wrti = new ArrayOfOAWorkflowRequestTableField(); |
| | | wrti.oaWorkflowRequestTableField = oaWorkflowRequestTableField; |
| | | // å°ä¸»è¡¨åå¡«å
å°ä¸»è¡¨è¡é |
| | | OAWorkflowRequestTableRecord oaWorkflowRequestTableRecord = new OAWorkflowRequestTableRecord(); |
| | | oaWorkflowRequestTableRecord.setWorkflowRequestTableFields(wrti); |
| | | |
| | | //åå»ºä¸»è¡¨è¡ |
| | | ArrayOfOAWorkflowRequestTableRecord wrtri = new ArrayOfOAWorkflowRequestTableRecord(); |
| | | wrtri.getOAWorkflowRequestTableRecord().add(oaWorkflowRequestTableRecord); |
| | | |
| | | //å建主表 |
| | | OAWorkflowTable wmi = new OAWorkflowTable(); |
| | | //å°ä¸»è¡¨è¡å¡«å
å°ä¸»è¡¨é |
| | | wmi.setWorkflowRequestTableRecords(wrtri); |
| | | |
| | | return wmi; |
| | | } |
| | | |
| | | /** |
| | | * å建OAæç»è¡¨æµç¨ |
| | | * |
| | | * @param fields |
| | | * @return |
| | | */ |
| | | public ArrayOfOAWorkflowTable createOADetailWorkflowTable(List<Map<String, String>> fields) { |
| | | //------------------æç»è¡¨èµå¼--------------------------- |
| | | //å建1å¼ æç»è¡¨ |
| | | ArrayOfOAWorkflowTable owdts = new ArrayOfOAWorkflowTable(); |
| | | //å°æç»åå¡«å
å°æç»è¡ä¸ |
| | | //æç»å±æ§ |
| | | ArrayOfOAWorkflowRequestTableRecord owrtr = new ArrayOfOAWorkflowRequestTableRecord(); |
| | | for (int i = 0; i < fields.size(); i++) { |
| | | List<OAWorkflowRequestTableField> owrtf_ = new ArrayList<OAWorkflowRequestTableField>(); |
| | | |
| | | for (Map.Entry<String, String> field : fields.get(i).entrySet()) { |
| | | owrtf_.add(createOAWorkflowRequestTableField(field.getKey(), field.getValue())); |
| | | } |
| | | ArrayOfOAWorkflowRequestTableField owrti = new ArrayOfOAWorkflowRequestTableField(); |
| | | owrti.oaWorkflowRequestTableField = owrtf_; |
| | | OAWorkflowRequestTableRecord owrtis = new OAWorkflowRequestTableRecord(); |
| | | owrtis.setWorkflowRequestTableFields(owrti); |
| | | owrtr.getOAWorkflowRequestTableRecord().add(owrtis); |
| | | } |
| | | |
| | | |
| | | // å°æç»è¡å¡«å
å°æç»è¡¨é |
| | | OAWorkflowTable owrtrs = new OAWorkflowTable(); |
| | | owrtrs.setWorkflowRequestTableRecords(owrtr); |
| | | owdts.getOAWorkflowTable().add(owrtrs); |
| | | |
| | | return owdts; |
| | | } |
| | | |
| | | /** |
| | | * å建OAæµç¨è¡¨æ ¼å±æ§ |
| | | * |
| | | * @param fieldName |
| | | * @param fieldValue |
| | | * @param view |
| | | * @param edit |
| | | * @return |
| | | */ |
| | | public OAWorkflowRequestTableField createOAWorkflowRequestTableField(String fieldName, String fieldValue, String view, String edit) { |
| | | // åå»ºå±æ§ |
| | | OAWorkflowRequestTableField oaWorkflowRequestTableField = new OAWorkflowRequestTableField(); |
| | | |
| | | // 坹屿§è¿è¡è®¾ç½® |
| | | oaWorkflowRequestTableField.setFieldName(fieldName); |
| | | oaWorkflowRequestTableField.setFieldValue(fieldValue); |
| | | oaWorkflowRequestTableField.setView(view); |
| | | oaWorkflowRequestTableField.setEdit(edit); |
| | | |
| | | return oaWorkflowRequestTableField; |
| | | } |
| | | |
| | | /** |
| | | * å建OAæµç¨è¡¨æ ¼å±æ§ |
| | | * |
| | | * @param fieldName |
| | | * @param fieldValue |
| | | * @return |
| | | */ |
| | | public OAWorkflowRequestTableField createOAWorkflowRequestTableField(String fieldName, String fieldValue) { |
| | | // åå»ºå±æ§ |
| | | OAWorkflowRequestTableField oaWorkflowRequestTableField = new OAWorkflowRequestTableField(); |
| | | |
| | | // 坹屿§è¿è¡è®¾ç½® |
| | | oaWorkflowRequestTableField.setFieldName(fieldName); |
| | | oaWorkflowRequestTableField.setFieldValue(fieldValue); |
| | | oaWorkflowRequestTableField.setView("true"); |
| | | oaWorkflowRequestTableField.setEdit("true"); |
| | | if (fieldName.equals("sqr") || fieldName.equals("fkr")) { |
| | | oaWorkflowRequestTableField.setFieldType(1); |
| | | } |
| | | return oaWorkflowRequestTableField; |
| | | } |
| | | |
| | | /** |
| | | * åéOAæµç¨ |
| | | * |
| | | * @param wri |
| | | * @return |
| | | */ |
| | | public OAResult sendWorkFlow(OAWorkflowRequestInfo wri) { |
| | | Holder<String> errorCode = new Holder<String>(); |
| | | Holder<String> errorMsg = new Holder<String>(); |
| | | Holder<String> addWorkflowResult = new Holder<String>(); |
| | | |
| | | OAWorkFlowRequest owfr = new OAWorkFlowRequest(); |
| | | // è°ç¨OAæµç¨æ°å¢æ¹æ³ï¼åèµ·OAæµç¨ |
| | | owfr.getOAWorkFlowRequestSoap().addWorkflow("5DEDD10D2E434A139A05953BDB66CC68", wri, errorCode, errorMsg, addWorkflowResult); |
| | | |
| | | // æµç¨åéç»æ |
| | | OAResult oaResult = new OAResult(); |
| | | oaResult.setErrorCode(errorCode.value); |
| | | oaResult.setErrorMsg(errorMsg.value); |
| | | oaResult.setAddWorkflowResult(addWorkflowResult.value); |
| | | |
| | | return oaResult; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | |
| | | |
| | | import com.ruoyi.common.utils.ApplicationContextHolder; |
| | | |
| | | import javax.xml.namespace.QName; |
| | | import javax.xml.ws.*; |
| | | import java.net.MalformedURLException; |
| | | import java.net.URL; |
| | | |
| | | |
| | | /** |
| | | * This class was generated by the JAX-WS RI. |
| | | * JAX-WS RI 2.2.9-b130926.1035 |
| | | * Generated source version: 2.2 |
| | | * |
| | | */ |
| | | @WebServiceClient(name = "OA_WorkFlowRequest", targetNamespace = "http://tempuri.org/") |
| | | public class OAWorkFlowRequest |
| | | extends Service |
| | | { |
| | | |
| | | private final static URL OAWORKFLOWREQUEST_WSDL_LOCATION; |
| | | private final static WebServiceException OAWORKFLOWREQUEST_EXCEPTION; |
| | | private final static QName OAWORKFLOWREQUEST_QNAME = new QName("http://tempuri.org/", "OA_WorkFlowRequest"); |
| | | |
| | | static { |
| | | URL url = null; |
| | | WebServiceException e = null; |
| | | try { |
| | | OAProperty oaProperties = ApplicationContextHolder.getBean(OAProperty.class); |
| | | url = new URL(oaProperties.getOaHost()); |
| | | } catch (MalformedURLException ex) { |
| | | e = new WebServiceException(ex); |
| | | } |
| | | OAWORKFLOWREQUEST_WSDL_LOCATION = url; |
| | | OAWORKFLOWREQUEST_EXCEPTION = e; |
| | | } |
| | | |
| | | public OAWorkFlowRequest() { |
| | | super(__getWsdlLocation(), OAWORKFLOWREQUEST_QNAME); |
| | | } |
| | | |
| | | public OAWorkFlowRequest(WebServiceFeature... features) { |
| | | super(__getWsdlLocation(), OAWORKFLOWREQUEST_QNAME, features); |
| | | } |
| | | |
| | | public OAWorkFlowRequest(URL wsdlLocation) { |
| | | super(wsdlLocation, OAWORKFLOWREQUEST_QNAME); |
| | | } |
| | | |
| | | public OAWorkFlowRequest(URL wsdlLocation, WebServiceFeature... features) { |
| | | super(wsdlLocation, OAWORKFLOWREQUEST_QNAME, features); |
| | | } |
| | | |
| | | public OAWorkFlowRequest(URL wsdlLocation, QName serviceName) { |
| | | super(wsdlLocation, serviceName); |
| | | } |
| | | |
| | | public OAWorkFlowRequest(URL wsdlLocation, QName serviceName, WebServiceFeature... features) { |
| | | super(wsdlLocation, serviceName, features); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @return |
| | | * returns OAWorkFlowRequestSoap |
| | | */ |
| | | @WebEndpoint(name = "OA_WorkFlowRequestSoap") |
| | | public OAWorkFlowRequestSoap getOAWorkFlowRequestSoap() { |
| | | return super.getPort(new QName("http://tempuri.org/", "OA_WorkFlowRequestSoap"), OAWorkFlowRequestSoap.class); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param features |
| | | * A list of {@link WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values. |
| | | * @return |
| | | * returns OAWorkFlowRequestSoap |
| | | */ |
| | | @WebEndpoint(name = "OA_WorkFlowRequestSoap") |
| | | public OAWorkFlowRequestSoap getOAWorkFlowRequestSoap(WebServiceFeature... features) { |
| | | return super.getPort(new QName("http://tempuri.org/", "OA_WorkFlowRequestSoap"), OAWorkFlowRequestSoap.class, features); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @return |
| | | * returns OAWorkFlowRequestSoap |
| | | */ |
| | | @WebEndpoint(name = "OA_WorkFlowRequestSoap12") |
| | | public OAWorkFlowRequestSoap getOAWorkFlowRequestSoap12() { |
| | | return super.getPort(new QName("http://tempuri.org/", "OA_WorkFlowRequestSoap12"), OAWorkFlowRequestSoap.class); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param features |
| | | * A list of {@link WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values. |
| | | * @return |
| | | * returns OAWorkFlowRequestSoap |
| | | */ |
| | | @WebEndpoint(name = "OA_WorkFlowRequestSoap12") |
| | | public OAWorkFlowRequestSoap getOAWorkFlowRequestSoap12(WebServiceFeature... features) { |
| | | return super.getPort(new QName("http://tempuri.org/", "OA_WorkFlowRequestSoap12"), OAWorkFlowRequestSoap.class, features); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @return |
| | | * returns OAWorkFlowRequestHttpGet |
| | | */ |
| | | @WebEndpoint(name = "OA_WorkFlowRequestHttpGet") |
| | | public OAWorkFlowRequestHttpGet getOAWorkFlowRequestHttpGet() { |
| | | return super.getPort(new QName("http://tempuri.org/", "OA_WorkFlowRequestHttpGet"), OAWorkFlowRequestHttpGet.class); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param features |
| | | * A list of {@link WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values. |
| | | * @return |
| | | * returns OAWorkFlowRequestHttpGet |
| | | */ |
| | | @WebEndpoint(name = "OA_WorkFlowRequestHttpGet") |
| | | public OAWorkFlowRequestHttpGet getOAWorkFlowRequestHttpGet(WebServiceFeature... features) { |
| | | return super.getPort(new QName("http://tempuri.org/", "OA_WorkFlowRequestHttpGet"), OAWorkFlowRequestHttpGet.class, features); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @return |
| | | * returns OAWorkFlowRequestHttpPost |
| | | */ |
| | | @WebEndpoint(name = "OA_WorkFlowRequestHttpPost") |
| | | public OAWorkFlowRequestHttpPost getOAWorkFlowRequestHttpPost() { |
| | | return super.getPort(new QName("http://tempuri.org/", "OA_WorkFlowRequestHttpPost"), OAWorkFlowRequestHttpPost.class); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param features |
| | | * A list of {@link WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values. |
| | | * @return |
| | | * returns OAWorkFlowRequestHttpPost |
| | | */ |
| | | @WebEndpoint(name = "OA_WorkFlowRequestHttpPost") |
| | | public OAWorkFlowRequestHttpPost getOAWorkFlowRequestHttpPost(WebServiceFeature... features) { |
| | | return super.getPort(new QName("http://tempuri.org/", "OA_WorkFlowRequestHttpPost"), OAWorkFlowRequestHttpPost.class, features); |
| | | } |
| | | |
| | | private static URL __getWsdlLocation() { |
| | | if (OAWORKFLOWREQUEST_EXCEPTION!= null) { |
| | | throw OAWORKFLOWREQUEST_EXCEPTION; |
| | | } |
| | | return OAWORKFLOWREQUEST_WSDL_LOCATION; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.jws.WebMethod; |
| | | import javax.jws.WebParam; |
| | | import javax.jws.WebResult; |
| | | import javax.jws.WebService; |
| | | import javax.jws.soap.SOAPBinding; |
| | | import javax.xml.bind.annotation.XmlSeeAlso; |
| | | |
| | | |
| | | /** |
| | | * This class was generated by the JAX-WS RI. |
| | | * JAX-WS RI 2.2.9-b130926.1035 |
| | | * Generated source version: 2.2 |
| | | * |
| | | */ |
| | | @WebService(name = "OA_WorkFlowRequestHttpGet", targetNamespace = "http://tempuri.org/") |
| | | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) |
| | | @XmlSeeAlso({ |
| | | ObjectFactory.class |
| | | }) |
| | | public interface OAWorkFlowRequestHttpGet { |
| | | |
| | | |
| | | /** |
| | | * |
| | | * @param requestid |
| | | * @param clientip |
| | | * @param remark |
| | | * @param forwardoperator |
| | | * @param userId |
| | | * @return |
| | | * returns java.lang.String |
| | | */ |
| | | @WebMethod |
| | | @WebResult(name = "string", targetNamespace = "http://tempuri.org/", partName = "Body") |
| | | public String forwardWorkflowRequest( |
| | | @WebParam(name = "string", targetNamespace = "http://www.w3.org/2001/XMLSchema", partName = "requestid") |
| | | String requestid, |
| | | @WebParam(name = "string", targetNamespace = "http://www.w3.org/2001/XMLSchema", partName = "forwardoperator") |
| | | String forwardoperator, |
| | | @WebParam(name = "string", targetNamespace = "http://www.w3.org/2001/XMLSchema", partName = "remark") |
| | | String remark, |
| | | @WebParam(name = "string", targetNamespace = "http://www.w3.org/2001/XMLSchema", partName = "userId") |
| | | String userId, |
| | | @WebParam(name = "string", targetNamespace = "http://www.w3.org/2001/XMLSchema", partName = "clientip") |
| | | String clientip); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.jws.WebMethod; |
| | | import javax.jws.WebParam; |
| | | import javax.jws.WebResult; |
| | | import javax.jws.WebService; |
| | | import javax.jws.soap.SOAPBinding; |
| | | import javax.xml.bind.annotation.XmlSeeAlso; |
| | | |
| | | |
| | | /** |
| | | * This class was generated by the JAX-WS RI. |
| | | * JAX-WS RI 2.2.9-b130926.1035 |
| | | * Generated source version: 2.2 |
| | | * |
| | | */ |
| | | @WebService(name = "OA_WorkFlowRequestHttpPost", targetNamespace = "http://tempuri.org/") |
| | | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) |
| | | @XmlSeeAlso({ |
| | | ObjectFactory.class |
| | | }) |
| | | public interface OAWorkFlowRequestHttpPost { |
| | | |
| | | |
| | | /** |
| | | * |
| | | * @param requestid |
| | | * @param clientip |
| | | * @param remark |
| | | * @param forwardoperator |
| | | * @param userId |
| | | * @return |
| | | * returns java.lang.String |
| | | */ |
| | | @WebMethod |
| | | @WebResult(name = "string", targetNamespace = "http://tempuri.org/", partName = "Body") |
| | | public String forwardWorkflowRequest( |
| | | @WebParam(name = "string", targetNamespace = "http://www.w3.org/2001/XMLSchema", partName = "requestid") |
| | | String requestid, |
| | | @WebParam(name = "string", targetNamespace = "http://www.w3.org/2001/XMLSchema", partName = "forwardoperator") |
| | | String forwardoperator, |
| | | @WebParam(name = "string", targetNamespace = "http://www.w3.org/2001/XMLSchema", partName = "remark") |
| | | String remark, |
| | | @WebParam(name = "string", targetNamespace = "http://www.w3.org/2001/XMLSchema", partName = "userId") |
| | | String userId, |
| | | @WebParam(name = "string", targetNamespace = "http://www.w3.org/2001/XMLSchema", partName = "clientip") |
| | | String clientip); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.jws.WebMethod; |
| | | import javax.jws.WebParam; |
| | | import javax.jws.WebResult; |
| | | import javax.jws.WebService; |
| | | import javax.xml.bind.annotation.XmlSeeAlso; |
| | | import javax.xml.ws.Holder; |
| | | import javax.xml.ws.RequestWrapper; |
| | | import javax.xml.ws.ResponseWrapper; |
| | | |
| | | |
| | | /** |
| | | * This class was generated by the JAX-WS RI. |
| | | * JAX-WS RI 2.2.9-b130926.1035 |
| | | * Generated source version: 2.2 |
| | | * |
| | | */ |
| | | @WebService(name = "OA_WorkFlowRequestSoap", targetNamespace = "http://tempuri.org/") |
| | | @XmlSeeAlso({ |
| | | ObjectFactory.class |
| | | }) |
| | | public interface OAWorkFlowRequestSoap { |
| | | |
| | | |
| | | /** |
| | | * |
| | | * @param requestid |
| | | * @param clientip |
| | | * @param remark |
| | | * @param forwardoperator |
| | | * @param userId |
| | | * @return |
| | | * returns java.lang.String |
| | | */ |
| | | @WebMethod(action = "http://tempuri.org/forwardWorkflowRequest") |
| | | @WebResult(name = "forwardWorkflowRequestResult", targetNamespace = "http://tempuri.org/") |
| | | @RequestWrapper(localName = "forwardWorkflowRequest", targetNamespace = "http://tempuri.org/", className = "com.chinaztt.mes.common.oa.ForwardWorkflowRequest") |
| | | @ResponseWrapper(localName = "forwardWorkflowRequestResponse", targetNamespace = "http://tempuri.org/", className = "com.chinaztt.mes.common.oa.ForwardWorkflowRequestResponse") |
| | | public String forwardWorkflowRequest( |
| | | @WebParam(name = "requestid", targetNamespace = "http://tempuri.org/") |
| | | int requestid, |
| | | @WebParam(name = "forwardoperator", targetNamespace = "http://tempuri.org/") |
| | | String forwardoperator, |
| | | @WebParam(name = "remark", targetNamespace = "http://tempuri.org/") |
| | | String remark, |
| | | @WebParam(name = "userId", targetNamespace = "http://tempuri.org/") |
| | | int userId, |
| | | @WebParam(name = "clientip", targetNamespace = "http://tempuri.org/") |
| | | String clientip); |
| | | |
| | | /** |
| | | * |
| | | * @param addWorkflowResult |
| | | * @param errorCode |
| | | * @param appKey |
| | | * @param wri |
| | | * @param errorMsg |
| | | */ |
| | | @WebMethod(operationName = "AddWorkflow", action = "http://tempuri.org/AddWorkflow") |
| | | @RequestWrapper(localName = "AddWorkflow", targetNamespace = "http://tempuri.org/", className = "com.chinaztt.mes.common.oa.AddWorkflow") |
| | | @ResponseWrapper(localName = "AddWorkflowResponse", targetNamespace = "http://tempuri.org/", className = "com.chinaztt.mes.common.oa.AddWorkflowResponse") |
| | | public void addWorkflow( |
| | | @WebParam(name = "appKey", targetNamespace = "http://tempuri.org/") |
| | | String appKey, |
| | | @WebParam(name = "wri", targetNamespace = "http://tempuri.org/") |
| | | OAWorkflowRequestInfo wri, |
| | | @WebParam(name = "errorCode", targetNamespace = "http://tempuri.org/", mode = WebParam.Mode.INOUT) |
| | | Holder<String> errorCode, |
| | | @WebParam(name = "errorMsg", targetNamespace = "http://tempuri.org/", mode = WebParam.Mode.INOUT) |
| | | Holder<String> errorMsg, |
| | | @WebParam(name = "AddWorkflowResult", targetNamespace = "http://tempuri.org/", mode = WebParam.Mode.OUT) |
| | | Holder<String> addWorkflowResult); |
| | | |
| | | /** |
| | | * |
| | | * @param errorCode |
| | | * @param appKey |
| | | * @param updateAndSubmitWorkflowResult |
| | | * @param wri |
| | | * @param errorMsg |
| | | */ |
| | | @WebMethod(operationName = "UpdateAndSubmitWorkflow", action = "http://tempuri.org/UpdateAndSubmitWorkflow") |
| | | @RequestWrapper(localName = "UpdateAndSubmitWorkflow", targetNamespace = "http://tempuri.org/", className = "com.chinaztt.mes.common.oa.UpdateAndSubmitWorkflow") |
| | | @ResponseWrapper(localName = "UpdateAndSubmitWorkflowResponse", targetNamespace = "http://tempuri.org/", className = "com.chinaztt.mes.common.oa.UpdateAndSubmitWorkflowResponse") |
| | | public void updateAndSubmitWorkflow( |
| | | @WebParam(name = "appKey", targetNamespace = "http://tempuri.org/") |
| | | String appKey, |
| | | @WebParam(name = "wri", targetNamespace = "http://tempuri.org/") |
| | | OAWorkflowRequestInfo wri, |
| | | @WebParam(name = "errorCode", targetNamespace = "http://tempuri.org/", mode = WebParam.Mode.INOUT) |
| | | Holder<String> errorCode, |
| | | @WebParam(name = "errorMsg", targetNamespace = "http://tempuri.org/", mode = WebParam.Mode.INOUT) |
| | | Holder<String> errorMsg, |
| | | @WebParam(name = "UpdateAndSubmitWorkflowResult", targetNamespace = "http://tempuri.org/", mode = WebParam.Mode.OUT) |
| | | Holder<String> updateAndSubmitWorkflowResult); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import javax.xml.bind.annotation.XmlAccessType; |
| | | import javax.xml.bind.annotation.XmlAccessorType; |
| | | import javax.xml.bind.annotation.XmlElement; |
| | | import javax.xml.bind.annotation.XmlType; |
| | | |
| | | |
| | | /** |
| | | * <p>OA_WorkflowRequestInfo complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType name="OA_WorkflowRequestInfo"> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="WorkflowId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="RequestId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="MainId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="CreaterId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="RequestLevel" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="RequestName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="Remark" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="WorkflowMainTable" type="{http://tempuri.org/}OA_WorkflowTable" minOccurs="0"/> |
| | | * <element name="WorkflowDetailTables" type="{http://tempuri.org/}ArrayOfOA_WorkflowTable" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "OA_WorkflowRequestInfo", propOrder = { |
| | | "workflowId", |
| | | "requestId", |
| | | "mainId", |
| | | "createrId", |
| | | "requestLevel", |
| | | "requestName", |
| | | "remark", |
| | | "isnextflow", |
| | | "workflowMainTable", |
| | | "workflowDetailTables" |
| | | }) |
| | | @Data |
| | | public class OAWorkflowRequestInfo { |
| | | |
| | | @XmlElement(name = "WorkflowId") |
| | | protected String workflowId; |
| | | @XmlElement(name = "RequestId") |
| | | protected String requestId; |
| | | @XmlElement(name = "MainId") |
| | | protected String mainId; |
| | | @XmlElement(name = "CreaterId") |
| | | protected String createrId; |
| | | @XmlElement(name = "RequestLevel") |
| | | protected String requestLevel; |
| | | @XmlElement(name = "RequestName") |
| | | protected String requestName; |
| | | @XmlElement(name = "Remark") |
| | | protected String remark; |
| | | @XmlElement(name = "isnextflow") |
| | | protected String isnextflow; |
| | | @XmlElement(name = "WorkflowMainTable") |
| | | protected OAWorkflowTable workflowMainTable; |
| | | @XmlElement(name = "WorkflowDetailTables") |
| | | protected ArrayOfOAWorkflowTable workflowDetailTables; |
| | | |
| | | /** |
| | | * è·åworkflowId屿§çå¼ã |
| | | * |
| | | * @return possible object is |
| | | * {@link String } |
| | | */ |
| | | public String getWorkflowId() { |
| | | return workflowId; |
| | | } |
| | | |
| | | /** |
| | | * 设置workflowId屿§çå¼ã |
| | | * |
| | | * @param value allowed object is |
| | | * {@link String } |
| | | */ |
| | | public void setWorkflowId(String value) { |
| | | this.workflowId = value; |
| | | } |
| | | |
| | | /** |
| | | * è·årequestId屿§çå¼ã |
| | | * |
| | | * @return possible object is |
| | | * {@link String } |
| | | */ |
| | | public String getRequestId() { |
| | | return requestId; |
| | | } |
| | | |
| | | /** |
| | | * 设置requestId屿§çå¼ã |
| | | * |
| | | * @param value allowed object is |
| | | * {@link String } |
| | | */ |
| | | public void setRequestId(String value) { |
| | | this.requestId = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åmainId屿§çå¼ã |
| | | * |
| | | * @return possible object is |
| | | * {@link String } |
| | | */ |
| | | public String getMainId() { |
| | | return mainId; |
| | | } |
| | | |
| | | /** |
| | | * 设置mainId屿§çå¼ã |
| | | * |
| | | * @param value allowed object is |
| | | * {@link String } |
| | | */ |
| | | public void setMainId(String value) { |
| | | this.mainId = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åcreaterId屿§çå¼ã |
| | | * |
| | | * @return possible object is |
| | | * {@link String } |
| | | */ |
| | | public String getCreaterId() { |
| | | return createrId; |
| | | } |
| | | |
| | | /** |
| | | * 设置createrId屿§çå¼ã |
| | | * |
| | | * @param value allowed object is |
| | | * {@link String } |
| | | */ |
| | | public void setCreaterId(String value) { |
| | | this.createrId = value; |
| | | } |
| | | |
| | | /** |
| | | * è·årequestLevel屿§çå¼ã |
| | | * |
| | | * @return possible object is |
| | | * {@link String } |
| | | */ |
| | | public String getRequestLevel() { |
| | | return requestLevel; |
| | | } |
| | | |
| | | /** |
| | | * 设置requestLevel屿§çå¼ã |
| | | * |
| | | * @param value allowed object is |
| | | * {@link String } |
| | | */ |
| | | public void setRequestLevel(String value) { |
| | | this.requestLevel = value; |
| | | } |
| | | |
| | | /** |
| | | * è·årequestName屿§çå¼ã |
| | | * |
| | | * @return possible object is |
| | | * {@link String } |
| | | */ |
| | | public String getRequestName() { |
| | | return requestName; |
| | | } |
| | | |
| | | /** |
| | | * 设置requestName屿§çå¼ã |
| | | * |
| | | * @param value allowed object is |
| | | * {@link String } |
| | | */ |
| | | public void setRequestName(String value) { |
| | | this.requestName = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åremark屿§çå¼ã |
| | | * |
| | | * @return possible object is |
| | | * {@link String } |
| | | */ |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | |
| | | /** |
| | | * 设置remark屿§çå¼ã |
| | | * |
| | | * @param value allowed object is |
| | | * {@link String } |
| | | */ |
| | | public void setRemark(String value) { |
| | | this.remark = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åworkflowMainTable屿§çå¼ã |
| | | * |
| | | * @return possible object is |
| | | * {@link OAWorkflowTable } |
| | | */ |
| | | public OAWorkflowTable getWorkflowMainTable() { |
| | | return workflowMainTable; |
| | | } |
| | | |
| | | /** |
| | | * 设置workflowMainTable屿§çå¼ã |
| | | * |
| | | * @param value allowed object is |
| | | * {@link OAWorkflowTable } |
| | | */ |
| | | public void setWorkflowMainTable(OAWorkflowTable value) { |
| | | this.workflowMainTable = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åworkflowDetailTables屿§çå¼ã |
| | | * |
| | | * @return possible object is |
| | | * {@link ArrayOfOAWorkflowTable } |
| | | */ |
| | | public ArrayOfOAWorkflowTable getWorkflowDetailTables() { |
| | | return workflowDetailTables; |
| | | } |
| | | |
| | | /** |
| | | * 设置workflowDetailTables屿§çå¼ã |
| | | * |
| | | * @param value allowed object is |
| | | * {@link ArrayOfOAWorkflowTable } |
| | | */ |
| | | public void setWorkflowDetailTables(ArrayOfOAWorkflowTable value) { |
| | | this.workflowDetailTables = value; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import javax.xml.bind.annotation.XmlAccessType; |
| | | import javax.xml.bind.annotation.XmlAccessorType; |
| | | import javax.xml.bind.annotation.XmlElement; |
| | | import javax.xml.bind.annotation.XmlType; |
| | | import java.util.Objects; |
| | | |
| | | |
| | | /** |
| | | * <p>OA_WorkflowRequestTableField complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType name="OA_WorkflowRequestTableField"> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="FieldName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="FieldValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="View" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="Edit" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="FieldType" type="{http://www.w3.org/2001/XMLSchema}int"/> |
| | | * <element name="SysName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="ValueType1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="ValueType2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="ValueType3" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="ValueKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="ValueTableName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | * |
| | | * |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "OA_WorkflowRequestTableField", propOrder = { |
| | | "fieldName", |
| | | "fieldValue", |
| | | "view", |
| | | "edit", |
| | | "fieldType", |
| | | "sysName", |
| | | "valueType1", |
| | | "valueType2", |
| | | "valueType3", |
| | | "valueKey", |
| | | "valueTableName" |
| | | }) |
| | | @Data |
| | | public class OAWorkflowRequestTableField { |
| | | |
| | | @XmlElement(name = "FieldName") |
| | | protected String fieldName; |
| | | @XmlElement(name = "FieldValue") |
| | | protected String fieldValue; |
| | | @XmlElement(name = "View") |
| | | protected String view; |
| | | @XmlElement(name = "Edit") |
| | | protected String edit; |
| | | @XmlElement(name = "FieldType") |
| | | protected int fieldType; |
| | | @XmlElement(name = "SysName") |
| | | protected String sysName; |
| | | @XmlElement(name = "ValueType1") |
| | | protected String valueType1; |
| | | @XmlElement(name = "ValueType2") |
| | | protected String valueType2; |
| | | @XmlElement(name = "ValueType3") |
| | | protected String valueType3; |
| | | @XmlElement(name = "ValueKey") |
| | | protected String valueKey; |
| | | @XmlElement(name = "ValueTableName") |
| | | protected String valueTableName; |
| | | |
| | | /** |
| | | * è·åfieldName屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getFieldName() { |
| | | return fieldName; |
| | | } |
| | | |
| | | /** |
| | | * 设置fieldName屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setFieldName(String value) { |
| | | this.fieldName = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åfieldValue屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getFieldValue() { |
| | | return fieldValue; |
| | | } |
| | | |
| | | /** |
| | | * 设置fieldValue屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setFieldValue(String value) { |
| | | this.fieldValue = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åview屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getView() { |
| | | return view; |
| | | } |
| | | |
| | | /** |
| | | * 设置view屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setView(String value) { |
| | | this.view = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åedit屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getEdit() { |
| | | return edit; |
| | | } |
| | | |
| | | /** |
| | | * 设置edit屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setEdit(String value) { |
| | | this.edit = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åfieldType屿§çå¼ã |
| | | * |
| | | */ |
| | | public int getFieldType() { |
| | | return fieldType; |
| | | } |
| | | |
| | | /** |
| | | * 设置fieldType屿§çå¼ã |
| | | * |
| | | */ |
| | | public void setFieldType(int value) { |
| | | this.fieldType = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åsysName屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getSysName() { |
| | | return sysName; |
| | | } |
| | | |
| | | /** |
| | | * 设置sysName屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setSysName(String value) { |
| | | this.sysName = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åvalueType1屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getValueType1() { |
| | | return valueType1; |
| | | } |
| | | |
| | | /** |
| | | * 设置valueType1屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setValueType1(String value) { |
| | | this.valueType1 = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åvalueType2屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getValueType2() { |
| | | return valueType2; |
| | | } |
| | | |
| | | /** |
| | | * 设置valueType2屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setValueType2(String value) { |
| | | this.valueType2 = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åvalueType3屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getValueType3() { |
| | | return valueType3; |
| | | } |
| | | |
| | | /** |
| | | * 设置valueType3屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setValueType3(String value) { |
| | | this.valueType3 = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åvalueKey屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getValueKey() { |
| | | return valueKey; |
| | | } |
| | | |
| | | /** |
| | | * 设置valueKey屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setValueKey(String value) { |
| | | this.valueKey = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åvalueTableName屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getValueTableName() { |
| | | return valueTableName; |
| | | } |
| | | |
| | | /** |
| | | * 设置valueTableName屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setValueTableName(String value) { |
| | | this.valueTableName = value; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "OAWorkflowRequestTableField{" + |
| | | "fieldName='" + fieldName + '\'' + |
| | | ", fieldValue='" + fieldValue + '\'' + |
| | | ", view='" + view + '\'' + |
| | | ", edit='" + edit + '\'' + |
| | | ", fieldType=" + fieldType + |
| | | ", sysName='" + sysName + '\'' + |
| | | ", valueType1='" + valueType1 + '\'' + |
| | | ", valueType2='" + valueType2 + '\'' + |
| | | ", valueType3='" + valueType3 + '\'' + |
| | | ", valueKey='" + valueKey + '\'' + |
| | | ", valueTableName='" + valueTableName + '\'' + |
| | | '}'; |
| | | } |
| | | |
| | | @Override |
| | | public boolean equals(Object o) { |
| | | if (this == o) return true; |
| | | if (o == null || getClass() != o.getClass()) return false; |
| | | OAWorkflowRequestTableField that = (OAWorkflowRequestTableField) o; |
| | | return fieldType == that.fieldType && Objects.equals(fieldName, that.fieldName) && Objects.equals(fieldValue, that.fieldValue) && Objects.equals(view, that.view) && Objects.equals(edit, that.edit) && Objects.equals(sysName, that.sysName) && Objects.equals(valueType1, that.valueType1) && Objects.equals(valueType2, that.valueType2) && Objects.equals(valueType3, that.valueType3) && Objects.equals(valueKey, that.valueKey) && Objects.equals(valueTableName, that.valueTableName); |
| | | } |
| | | |
| | | @Override |
| | | public int hashCode() { |
| | | return Objects.hash(fieldName, fieldValue, view, edit, fieldType, sysName, valueType1, valueType2, valueType3, valueKey, valueTableName); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.bind.annotation.XmlAccessType; |
| | | import javax.xml.bind.annotation.XmlAccessorType; |
| | | import javax.xml.bind.annotation.XmlElement; |
| | | import javax.xml.bind.annotation.XmlType; |
| | | |
| | | |
| | | /** |
| | | * <p>OA_WorkflowRequestTableRecord complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType name="OA_WorkflowRequestTableRecord"> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="WorkflowRequestTableFields" type="{http://tempuri.org/}ArrayOfOA_WorkflowRequestTableField" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | * |
| | | * |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "OA_WorkflowRequestTableRecord", propOrder = { |
| | | "workflowRequestTableFields" |
| | | }) |
| | | public class OAWorkflowRequestTableRecord { |
| | | |
| | | @XmlElement(name = "WorkflowRequestTableFields") |
| | | protected ArrayOfOAWorkflowRequestTableField workflowRequestTableFields; |
| | | |
| | | /** |
| | | * è·åworkflowRequestTableFields屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link ArrayOfOAWorkflowRequestTableField } |
| | | * |
| | | */ |
| | | public ArrayOfOAWorkflowRequestTableField getWorkflowRequestTableFields() { |
| | | return workflowRequestTableFields; |
| | | } |
| | | |
| | | /** |
| | | * 设置workflowRequestTableFields屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link ArrayOfOAWorkflowRequestTableField } |
| | | * |
| | | */ |
| | | public void setWorkflowRequestTableFields(ArrayOfOAWorkflowRequestTableField value) { |
| | | this.workflowRequestTableFields = value; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.bind.annotation.XmlAccessType; |
| | | import javax.xml.bind.annotation.XmlAccessorType; |
| | | import javax.xml.bind.annotation.XmlElement; |
| | | import javax.xml.bind.annotation.XmlType; |
| | | |
| | | |
| | | /** |
| | | * <p>OA_WorkflowTable complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType name="OA_WorkflowTable"> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="TableName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="WorkflowRequestTableRecords" type="{http://tempuri.org/}ArrayOfOA_WorkflowRequestTableRecord" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | * |
| | | * |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "OA_WorkflowTable", propOrder = { |
| | | "tableName", |
| | | "workflowRequestTableRecords" |
| | | }) |
| | | public class OAWorkflowTable { |
| | | |
| | | @XmlElement(name = "TableName") |
| | | protected String tableName; |
| | | @XmlElement(name = "WorkflowRequestTableRecords") |
| | | protected ArrayOfOAWorkflowRequestTableRecord workflowRequestTableRecords; |
| | | |
| | | /** |
| | | * è·åtableName屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getTableName() { |
| | | return tableName; |
| | | } |
| | | |
| | | /** |
| | | * 设置tableName屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setTableName(String value) { |
| | | this.tableName = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åworkflowRequestTableRecords屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link ArrayOfOAWorkflowRequestTableRecord } |
| | | * |
| | | */ |
| | | public ArrayOfOAWorkflowRequestTableRecord getWorkflowRequestTableRecords() { |
| | | return workflowRequestTableRecords; |
| | | } |
| | | |
| | | /** |
| | | * 设置workflowRequestTableRecords屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link ArrayOfOAWorkflowRequestTableRecord } |
| | | * |
| | | */ |
| | | public void setWorkflowRequestTableRecords(ArrayOfOAWorkflowRequestTableRecord value) { |
| | | this.workflowRequestTableRecords = value; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.bind.JAXBElement; |
| | | import javax.xml.bind.annotation.XmlElementDecl; |
| | | import javax.xml.bind.annotation.XmlRegistry; |
| | | import javax.xml.namespace.QName; |
| | | |
| | | |
| | | /** |
| | | * This object contains factory methods for each |
| | | * Java content interface and Java element interface |
| | | * generated in the com.chinaztt.mes.common.oa package. |
| | | * <p>An ObjectFactory allows you to programatically |
| | | * construct new instances of the Java representation |
| | | * for XML content. The Java representation of XML |
| | | * content can consist of schema derived interfaces |
| | | * and classes representing the binding of schema |
| | | * type definitions, element declarations and model |
| | | * groups. Factory methods for each of these are |
| | | * provided in this class. |
| | | * |
| | | */ |
| | | @XmlRegistry |
| | | public class ObjectFactory { |
| | | |
| | | private final static QName _String_QNAME = new QName("http://tempuri.org/", "string"); |
| | | |
| | | /** |
| | | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.chinaztt.mes.common.oa |
| | | * |
| | | */ |
| | | public ObjectFactory() { |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link AddWorkflowResponse } |
| | | * |
| | | */ |
| | | public AddWorkflowResponse createAddWorkflowResponse() { |
| | | return new AddWorkflowResponse(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link AddWorkflow } |
| | | * |
| | | */ |
| | | public AddWorkflow createAddWorkflow() { |
| | | return new AddWorkflow(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link OAWorkflowRequestInfo } |
| | | * |
| | | */ |
| | | public OAWorkflowRequestInfo createOAWorkflowRequestInfo() { |
| | | return new OAWorkflowRequestInfo(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link UpdateAndSubmitWorkflow } |
| | | * |
| | | */ |
| | | public UpdateAndSubmitWorkflow createUpdateAndSubmitWorkflow() { |
| | | return new UpdateAndSubmitWorkflow(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link UpdateAndSubmitWorkflowResponse } |
| | | * |
| | | */ |
| | | public UpdateAndSubmitWorkflowResponse createUpdateAndSubmitWorkflowResponse() { |
| | | return new UpdateAndSubmitWorkflowResponse(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link ForwardWorkflowRequestResponse } |
| | | * |
| | | */ |
| | | public ForwardWorkflowRequestResponse createForwardWorkflowRequestResponse() { |
| | | return new ForwardWorkflowRequestResponse(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link ForwardWorkflowRequest } |
| | | * |
| | | */ |
| | | public ForwardWorkflowRequest createForwardWorkflowRequest() { |
| | | return new ForwardWorkflowRequest(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link OAWorkflowTable } |
| | | * |
| | | */ |
| | | public OAWorkflowTable createOAWorkflowTable() { |
| | | return new OAWorkflowTable(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link OAWorkflowRequestTableRecord } |
| | | * |
| | | */ |
| | | public OAWorkflowRequestTableRecord createOAWorkflowRequestTableRecord() { |
| | | return new OAWorkflowRequestTableRecord(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link ArrayOfOAWorkflowTable } |
| | | * |
| | | */ |
| | | public ArrayOfOAWorkflowTable createArrayOfOAWorkflowTable() { |
| | | return new ArrayOfOAWorkflowTable(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link ArrayOfOAWorkflowRequestTableRecord } |
| | | * |
| | | */ |
| | | public ArrayOfOAWorkflowRequestTableRecord createArrayOfOAWorkflowRequestTableRecord() { |
| | | return new ArrayOfOAWorkflowRequestTableRecord(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link OAWorkflowRequestTableField } |
| | | * |
| | | */ |
| | | public OAWorkflowRequestTableField createOAWorkflowRequestTableField() { |
| | | return new OAWorkflowRequestTableField(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link ArrayOfOAWorkflowRequestTableField } |
| | | * |
| | | */ |
| | | public ArrayOfOAWorkflowRequestTableField createArrayOfOAWorkflowRequestTableField() { |
| | | return new ArrayOfOAWorkflowRequestTableField(); |
| | | } |
| | | |
| | | /** |
| | | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} |
| | | * |
| | | */ |
| | | @XmlElementDecl(namespace = "http://tempuri.org/", name = "string") |
| | | public JAXBElement<String> createString(String value) { |
| | | return new JAXBElement<String>(_String_QNAME, String.class, null, value); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.bind.annotation.XmlAccessType; |
| | | import javax.xml.bind.annotation.XmlAccessorType; |
| | | import javax.xml.bind.annotation.XmlRootElement; |
| | | import javax.xml.bind.annotation.XmlType; |
| | | |
| | | |
| | | /** |
| | | * <p>anonymous complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="appKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="wri" type="{http://tempuri.org/}OA_WorkflowRequestInfo" minOccurs="0"/> |
| | | * <element name="errorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="errorMsg" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | * |
| | | * |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "", propOrder = { |
| | | "appKey", |
| | | "wri", |
| | | "errorCode", |
| | | "errorMsg" |
| | | }) |
| | | @XmlRootElement(name = "UpdateAndSubmitWorkflow") |
| | | public class UpdateAndSubmitWorkflow { |
| | | |
| | | protected String appKey; |
| | | protected OAWorkflowRequestInfo wri; |
| | | protected String errorCode; |
| | | protected String errorMsg; |
| | | |
| | | /** |
| | | * è·åappKey屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getAppKey() { |
| | | return appKey; |
| | | } |
| | | |
| | | /** |
| | | * 设置appKey屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setAppKey(String value) { |
| | | this.appKey = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åwri屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link OAWorkflowRequestInfo } |
| | | * |
| | | */ |
| | | public OAWorkflowRequestInfo getWri() { |
| | | return wri; |
| | | } |
| | | |
| | | /** |
| | | * 设置wri屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link OAWorkflowRequestInfo } |
| | | * |
| | | */ |
| | | public void setWri(OAWorkflowRequestInfo value) { |
| | | this.wri = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åerrorCode屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getErrorCode() { |
| | | return errorCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置errorCode屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setErrorCode(String value) { |
| | | this.errorCode = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åerrorMsg屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getErrorMsg() { |
| | | return errorMsg; |
| | | } |
| | | |
| | | /** |
| | | * 设置errorMsg屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setErrorMsg(String value) { |
| | | this.errorMsg = value; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.ruoyi.common.oa; |
| | | |
| | | import javax.xml.bind.annotation.*; |
| | | |
| | | |
| | | /** |
| | | * <p>anonymous complex typeç Java ç±»ã |
| | | * |
| | | * <p>以䏿¨¡å¼ç段æå®å
å«å¨æ¤ç±»ä¸ç颿å
容ã |
| | | * |
| | | * <pre> |
| | | * <complexType> |
| | | * <complexContent> |
| | | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| | | * <sequence> |
| | | * <element name="UpdateAndSubmitWorkflowResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="errorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * <element name="errorMsg" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| | | * </sequence> |
| | | * </restriction> |
| | | * </complexContent> |
| | | * </complexType> |
| | | * </pre> |
| | | * |
| | | * |
| | | */ |
| | | @XmlAccessorType(XmlAccessType.FIELD) |
| | | @XmlType(name = "", propOrder = { |
| | | "updateAndSubmitWorkflowResult", |
| | | "errorCode", |
| | | "errorMsg" |
| | | }) |
| | | @XmlRootElement(name = "UpdateAndSubmitWorkflowResponse") |
| | | public class UpdateAndSubmitWorkflowResponse { |
| | | |
| | | @XmlElement(name = "UpdateAndSubmitWorkflowResult") |
| | | protected String updateAndSubmitWorkflowResult; |
| | | protected String errorCode; |
| | | protected String errorMsg; |
| | | |
| | | /** |
| | | * è·åupdateAndSubmitWorkflowResult屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getUpdateAndSubmitWorkflowResult() { |
| | | return updateAndSubmitWorkflowResult; |
| | | } |
| | | |
| | | /** |
| | | * 设置updateAndSubmitWorkflowResult屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setUpdateAndSubmitWorkflowResult(String value) { |
| | | this.updateAndSubmitWorkflowResult = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åerrorCode屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getErrorCode() { |
| | | return errorCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置errorCode屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setErrorCode(String value) { |
| | | this.errorCode = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åerrorMsg屿§çå¼ã |
| | | * |
| | | * @return |
| | | * possible object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public String getErrorMsg() { |
| | | return errorMsg; |
| | | } |
| | | |
| | | /** |
| | | * 设置errorMsg屿§çå¼ã |
| | | * |
| | | * @param value |
| | | * allowed object is |
| | | * {@link String } |
| | | * |
| | | */ |
| | | public void setErrorMsg(String value) { |
| | | this.errorMsg = value; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | @javax.xml.bind.annotation.XmlSchema(namespace = "http://tempuri.org/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) |
| | | package com.ruoyi.common.oa; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.utils; |
| | | |
| | | import org.springframework.beans.BeansException; |
| | | import org.springframework.context.ApplicationContext; |
| | | import org.springframework.context.ApplicationContextAware; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | /** |
| | | * @Author: zhangxy |
| | | * @Date: 2021-05-24 16:29 |
| | | */ |
| | | @Component |
| | | public class ApplicationContextHolder implements ApplicationContextAware { |
| | | private static ApplicationContext applicationContext; |
| | | |
| | | @Override |
| | | public void setApplicationContext(ApplicationContext ctx) throws BeansException { |
| | | applicationContext = ctx; |
| | | } |
| | | |
| | | /** |
| | | * Get application context from everywhere |
| | | * |
| | | * @return |
| | | */ |
| | | public static ApplicationContext getApplicationContext() { |
| | | return applicationContext; |
| | | } |
| | | |
| | | /** |
| | | * Get bean by class |
| | | * |
| | | * @param clazz |
| | | * @param <T> |
| | | * @return |
| | | */ |
| | | public static <T> T getBean(Class<T> clazz) { |
| | | return applicationContext.getBean(clazz); |
| | | } |
| | | |
| | | /** |
| | | * Get bean by class name |
| | | * |
| | | * @param name |
| | | * @param <T> |
| | | * @return |
| | | */ |
| | | @SuppressWarnings("unchecked") |
| | | public static <T> T getBean(String name) { |
| | | return (T) applicationContext.getBean(name); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.framework.config; |
| | | |
| | | import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer; |
| | | import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | |
| | | @Configuration |
| | | public class LocalDateTimeSerializerConfig { |
| | | @Value("${spring.jackson.date-format}") |
| | | private String pattern; |
| | | |
| | | @Bean |
| | | public LocalDateTimeSerializer localDateTimeSerializer() { |
| | | return new LocalDateTimeSerializer(DateTimeFormatter.ofPattern(pattern)); |
| | | } |
| | | |
| | | @Bean |
| | | public LocalDateTimeDeserializer localDateTimeDeserializer() { |
| | | return new LocalDateTimeDeserializer(DateTimeFormatter.ofPattern(pattern)); |
| | | } |
| | | |
| | | @Bean |
| | | public Jackson2ObjectMapperBuilderCustomizer jackson2ObjectMapperBuilderCustomizer() { |
| | | return builder -> { |
| | | builder.serializerByType(LocalDateTime.class, localDateTimeSerializer()); |
| | | builder.deserializerByType(LocalDateTime.class, localDateTimeDeserializer()); |
| | | builder.simpleDateFormat(pattern); |
| | | }; |
| | | } |
| | | } |