0911提交
parent
f0a3443fc6
commit
d387d37b06
@ -1,8 +0,0 @@
|
|||||||
package com.engine.custom.hg.util;
|
|
||||||
|
|
||||||
public class test {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
byte[] arr = new byte[1024];
|
|
||||||
String data = new String(arr, 0, -1);
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,60 @@
|
|||||||
|
package com.engine.custom.sl.entity;
|
||||||
|
|
||||||
|
public class ExpenseItem {
|
||||||
|
private String expndType;
|
||||||
|
private String exclsvTaxAmt;
|
||||||
|
private String taxAmt;
|
||||||
|
private String prcTotAmt;
|
||||||
|
private String acctingAbstct;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "ExpenseItem{" +
|
||||||
|
"expndType='" + expndType + '\'' +
|
||||||
|
", exclsvTaxAmt='" + exclsvTaxAmt + '\'' +
|
||||||
|
", taxAmt='" + taxAmt + '\'' +
|
||||||
|
", prcTotAmt='" + prcTotAmt + '\'' +
|
||||||
|
", acctingAbstct='" + acctingAbstct + '\'' +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExpndType() {
|
||||||
|
return expndType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpndType(String expndType) {
|
||||||
|
this.expndType = expndType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExclsvTaxAmt() {
|
||||||
|
return exclsvTaxAmt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExclsvTaxAmt(String exclsvTaxAmt) {
|
||||||
|
this.exclsvTaxAmt = exclsvTaxAmt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaxAmt() {
|
||||||
|
return taxAmt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaxAmt(String taxAmt) {
|
||||||
|
this.taxAmt = taxAmt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPrcTotAmt() {
|
||||||
|
return prcTotAmt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrcTotAmt(String prcTotAmt) {
|
||||||
|
this.prcTotAmt = prcTotAmt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAcctingAbstct() {
|
||||||
|
return acctingAbstct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAcctingAbstct(String acctingAbstct) {
|
||||||
|
this.acctingAbstct = acctingAbstct;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,60 @@
|
|||||||
|
package com.engine.custom.sl.entity;
|
||||||
|
|
||||||
|
public class JourneyInfo {
|
||||||
|
private String startDate;
|
||||||
|
private String endDate;
|
||||||
|
private String bsnTrpDays;
|
||||||
|
private String jrnyPath;
|
||||||
|
private String jrnyExpln;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "JourneyInfo{" +
|
||||||
|
"startDate='" + startDate + '\'' +
|
||||||
|
", endDate='" + endDate + '\'' +
|
||||||
|
", bsnTrpDays='" + bsnTrpDays + '\'' +
|
||||||
|
", jrnyPath='" + jrnyPath + '\'' +
|
||||||
|
", jrnyExpln='" + jrnyExpln + '\'' +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStartDate() {
|
||||||
|
return startDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartDate(String startDate) {
|
||||||
|
this.startDate = startDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEndDate() {
|
||||||
|
return endDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndDate(String endDate) {
|
||||||
|
this.endDate = endDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBsnTrpDays() {
|
||||||
|
return bsnTrpDays;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBsnTrpDays(String bsnTrpDays) {
|
||||||
|
this.bsnTrpDays = bsnTrpDays;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJrnyPath() {
|
||||||
|
return jrnyPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJrnyPath(String jrnyPath) {
|
||||||
|
this.jrnyPath = jrnyPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJrnyExpln() {
|
||||||
|
return jrnyExpln;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJrnyExpln(String jrnyExpln) {
|
||||||
|
this.jrnyExpln = jrnyExpln;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,117 @@
|
|||||||
|
package com.engine.custom.sl.entity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class TravelToEsbBean {
|
||||||
|
private String oaTrvlBnsExpnsAcctNo;
|
||||||
|
private String operatorNo;
|
||||||
|
private String operatorName;
|
||||||
|
private String acsryNums;
|
||||||
|
private String expnsAmt;
|
||||||
|
private String expnsRsn;
|
||||||
|
private String remark;
|
||||||
|
private List<ExpenseItem> expndArray;
|
||||||
|
private List<JourneyInfo> jrnyInfoArray;
|
||||||
|
private List<acsryItem> acsryArray;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "TravelToEsbBean{" +
|
||||||
|
"oaTrvlBnsExpnsAcctNo='" + oaTrvlBnsExpnsAcctNo + '\'' +
|
||||||
|
", operatorNo='" + operatorNo + '\'' +
|
||||||
|
", operatorName='" + operatorName + '\'' +
|
||||||
|
", acsryNums='" + acsryNums + '\'' +
|
||||||
|
", expnsAmt='" + expnsAmt + '\'' +
|
||||||
|
", expnsRsn='" + expnsRsn + '\'' +
|
||||||
|
", remark='" + remark + '\'' +
|
||||||
|
", expndArray=" + expndArray +
|
||||||
|
", jrnyInfoArray=" + jrnyInfoArray +
|
||||||
|
", acsryArray=" + acsryArray +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<acsryItem> getAcsryArray() {
|
||||||
|
return acsryArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAcsryArray(List<acsryItem> acsryArray) {
|
||||||
|
this.acsryArray = acsryArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public String getOaTrvlBnsExpnsAcctNo() {
|
||||||
|
return oaTrvlBnsExpnsAcctNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOaTrvlBnsExpnsAcctNo(String oaTrvlBnsExpnsAcctNo) {
|
||||||
|
this.oaTrvlBnsExpnsAcctNo = oaTrvlBnsExpnsAcctNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOperatorNo() {
|
||||||
|
return operatorNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperatorNo(String operatorNo) {
|
||||||
|
this.operatorNo = operatorNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOperatorName() {
|
||||||
|
return operatorName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperatorName(String operatorName) {
|
||||||
|
this.operatorName = operatorName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAcsryNums() {
|
||||||
|
return acsryNums;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAcsryNums(String acsryNums) {
|
||||||
|
this.acsryNums = acsryNums;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExpnsAmt() {
|
||||||
|
return expnsAmt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpnsAmt(String expnsAmt) {
|
||||||
|
this.expnsAmt = expnsAmt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExpnsRsn() {
|
||||||
|
return expnsRsn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpnsRsn(String expnsRsn) {
|
||||||
|
this.expnsRsn = expnsRsn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ExpenseItem> getExpndArray() {
|
||||||
|
return expndArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpndArray(List<ExpenseItem> expndArray) {
|
||||||
|
this.expndArray = expndArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<JourneyInfo> getJrnyInfoArray() {
|
||||||
|
return jrnyInfoArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJrnyInfoArray(List<JourneyInfo> jrnyInfoArray) {
|
||||||
|
this.jrnyInfoArray = jrnyInfoArray;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.engine.custom.sl.entity;
|
||||||
|
|
||||||
|
public class acsryItem {
|
||||||
|
private String acsryNm;
|
||||||
|
private String savePath;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "acsryItem{" +
|
||||||
|
"acsryNm='" + acsryNm + '\'' +
|
||||||
|
", savePath='" + savePath + '\'' +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAcsryNm() {
|
||||||
|
return acsryNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAcsryNm(String acsryNm) {
|
||||||
|
this.acsryNm = acsryNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSavePath() {
|
||||||
|
return savePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSavePath(String savePath) {
|
||||||
|
this.savePath = savePath;
|
||||||
|
}
|
||||||
|
}
|
@ -1,24 +1,11 @@
|
|||||||
package weaver.file;
|
package weaver.file;
|
||||||
|
|
||||||
|
import com.engine.workflow.service.RequestManagerService;
|
||||||
import weaver.interfaces.encode.AES_IV;
|
import weaver.interfaces.encode.AES_IV;
|
||||||
|
import weaver.workflow.request.RequestManager;
|
||||||
|
|
||||||
public class test {
|
public class test {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
String loginid = "32715F3A426667E9FF2BA698555B94C9";
|
|
||||||
AES_IV aesIV = new AES_IV();
|
|
||||||
// AES的密钥长度最好是16位(不是必须)
|
|
||||||
String password = "ecology_nsh_2021";
|
|
||||||
// AES的向量长度必须为16位
|
|
||||||
String iv = "weaver_nsyh_2021";
|
|
||||||
aesIV.setPwd(password);
|
|
||||||
aesIV.setIv(iv);
|
|
||||||
// 加密
|
|
||||||
// System.out.println("加密前:" + loginid);
|
|
||||||
// String encodeResultStr = aesIV.encode(loginid);
|
|
||||||
//System.out.println("加密后:" + encodeResultStr);
|
|
||||||
// 解密
|
|
||||||
String decodeResultStr = aesIV.decode(loginid);
|
|
||||||
System.out.println(decodeResultStr);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,39 @@
|
|||||||
|
package weaver.interfaces.workflow.action.javacode;
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.SneakyThrows;
|
||||||
|
import weaver.conn.RecordSet;
|
||||||
|
import weaver.conn.RecordSetTrans;
|
||||||
|
import weaver.interfaces.workflow.action.Action;
|
||||||
|
import weaver.general.BaseBean;
|
||||||
|
import weaver.soa.workflow.request.RequestInfo;
|
||||||
|
|
||||||
|
import javax.servlet.ServletContext;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.net.ServerSocket;
|
||||||
|
import java.net.Socket;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Online custom action interface
|
||||||
|
*/
|
||||||
|
public class Action20230907070937 extends BaseBean implements Action{
|
||||||
|
|
||||||
|
|
||||||
|
public static final String sql = "update workflow_requestlog set remark='测试流程该意见' where requestid=331343 and logid=19221";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* After selecting aciton after the process path node, this method will be executed after the node is submitted.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String execute(RequestInfo request) {
|
||||||
|
RecordSetTrans rs = new RecordSetTrans();
|
||||||
|
try {
|
||||||
|
rs.executeUpdate(sql);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return Action.SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue