Commit 92a753c0 by gechengyang

提交一阶段代码

parent 0bfda2d1
...@@ -26,57 +26,42 @@ ...@@ -26,57 +26,42 @@
<property name="enableSubPackages" value="false" /> <property name="enableSubPackages" value="false" />
</javaClientGenerator> </javaClientGenerator>
<!-- 指定数据库表 --> <!-- 指定数据库表 -->
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CPD"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CPD" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CPT"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CPT" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="TRN"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="TRN" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="BCH" delimitIdentifiers="true" delimitAllColumns="true">
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="BCH">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="ADR" delimitIdentifiers="true" delimitAllColumns="true">
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="ADR">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="PTY"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="PTY" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="PTA"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="PTA" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="PTM"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="PTM" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="PTYRAT"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="PTYRAT" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="PTS"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="PTS" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="PTE"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="PTE" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CBB"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CBB" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CBE"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CBE" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="COU"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="COU" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" /> <!-- <property name="useActualColumnNames" value="true" /> -->
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="USR"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="USR" delimitIdentifiers="true" delimitAllColumns="true">
<property name="useActualColumnNames" value="true" /> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="TST" delimitIdentifiers="true" delimitAllColumns="true">
</table> </table>
</context> </context>
......
...@@ -26,21 +26,37 @@ ...@@ -26,21 +26,37 @@
<artifactId>mybatis-spring</artifactId> <artifactId>mybatis-spring</artifactId>
<version>1.3.1</version> <version>1.3.1</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity --> <!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity -->
<dependency> <dependency>
<groupId>org.apache.velocity</groupId> <groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId> <artifactId>velocity</artifactId>
<version>1.7</version> <version>1.7</version>
</dependency> </dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.6</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.9.6</version>
</dependency>
<!-- dbcp数据库连接池  --> <!-- dbcp数据库连接池  -->
<dependency> <dependency>
<groupId>commons-dbcp</groupId> <groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId> <artifactId>commons-dbcp</artifactId>
<version>1.4</version> <version>1.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
......
package com.brilliance.remit.common.response; package com.brilliance.remit.common.response;
import java.util.Map;
public class Result { public class Result {
private String retcod; private String retcod;
private String retmsg; private String retmsg;
private Map<String, Object> error;// 错误信息
private Map<String, Object> codetable;
private Object data; private Object data;
public Result(String retcod, String retmsg, Object data) { public Result(String retcod, String retmsg, Object data) {
...@@ -16,14 +13,6 @@ public class Result { ...@@ -16,14 +13,6 @@ public class Result {
this.data = data; this.data = data;
} }
public Result(String retcod, String retmsg, Map<String, Object> error, Map<String, Object> codetable, Object data) {
this.retcod = retcod;
this.retmsg = retmsg;
this.error = error;
this.codetable = codetable;
this.data = data;
}
public String getRetcod() { public String getRetcod() {
return retcod; return retcod;
} }
...@@ -48,19 +37,4 @@ public class Result { ...@@ -48,19 +37,4 @@ public class Result {
this.data = data; this.data = data;
} }
public Map<String, Object> getError() {
return error;
}
public Map<String, Object> getCodetable() {
return codetable;
}
public void setError(Map<String, Object> error) {
this.error = error;
}
public void setCodetable(Map<String, Object> codetable) {
this.codetable = codetable;
}
} }
package com.brilliance.remit.common.response; package com.brilliance.remit.common.response;
import java.util.Map;
public class ResultUtil { public class ResultUtil {
public static Result result(String retcod, String retmsg, Object data) { public static Result result(String retcod, String retmsg, Object data) {
return new Result(retcod, retmsg, data); return new Result(retcod, retmsg, data);
} }
public static Result result(String retcod, String retmsg, Map<String, Object> data, Map<String, Object> error, Map<String, Object> codetable) {
return new Result(retcod, retmsg, error, codetable, data);
}
} }
package com.brilliance.remit.common.util; package com.brilliance.remit.common.util;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.UnsupportedEncodingException;
import java.sql.Blob;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.io.IOUtils;
public class StringUtil { public class StringUtil {
public static String userUniqueId(String userId, String terminalType) {
return userId + "." + terminalType;
}
public static int length5(String str) throws UnsupportedEncodingException {
if (str == null)
return 0;
int len = str.trim().getBytes("GBK").length;
return len;
}
public static String str5(String str, Integer index, Integer subSLength) throws UnsupportedEncodingException {
return str5(str, subSLength);
}
public static String leftStr(String org, String current) {
if (current == null || current.length() >= org.length()) {
return "";
}
return org.substring(current.length());
}
public static String str5(String str, Integer subSLength) throws UnsupportedEncodingException {
if (isEmpty(str)) {
return "";
}
if (str.length() > subSLength.intValue()) {
str = str.substring(0, subSLength.intValue());
}
int length = str.getBytes("GBK").length;
while (length > subSLength.intValue()) {
str = str.substring(0, str.length() - 1);
length = str.getBytes("GBK").length;
}
return trim4(str, "GBK", "GBK");
}
public static final String trim4(String paramString1, String paramString2, String paramString3) throws UnsupportedEncodingException {
if (paramString1 != null)
if ((paramString2 == null) || ("".equals(paramString2)))
paramString1 = new String(paramString1.getBytes(paramString3), paramString3);
else
paramString1 = new String(paramString1.getBytes(paramString2), paramString3);
return trim(paramString1);
}
public static final String trim(String paramString) throws UnsupportedEncodingException {
if (paramString != null)
paramString = paramString.trim();
return paramString;
}
public static List<String> str6(String str, Integer subSLength) throws UnsupportedEncodingException {
List<String> list = new ArrayList<String>();
if (length5(str) > subSLength) {
String temp1 = str5(str, subSLength);
list.add(temp1);
String leftStr = str.substring(temp1.length());
if (length5(leftStr) > subSLength) {
String temp2 = str5(leftStr, subSLength);
list.add(temp2);
}
} else {
list.add(str);
}
if (list.size() == 1) {
list.add(null);
}
return list;
}
/*
* public static String storeFile(String str, String path) {
*
* }
*/
public static Integer blob2Str2(Blob blob, String path) throws SQLException, IOException {
String str = "";
byte[] inbyte = null;
if (blob != null) {
inbyte = blob.getBytes(1, (int) blob.length());
File f = new File(path);
if (!f.getParentFile().exists()) {
f.getParentFile().mkdirs();
}
FileOutputStream fos = new FileOutputStream(f);
IOUtils.write(inbyte, fos);
IOUtils.closeQuietly(fos);
str = new String(inbyte, "GBK");
return inbyte.length;
}
return 0;
}
public static String blob2Str(Blob blob) throws SQLException, UnsupportedEncodingException {
/*
* String str = null; byte[] inbyte = null; if (o instanceof Blob) {
* Blob blob = (Blob) o; if (blob != null) { inbyte = blob.getBytes(1,
* (int) blob.length()); } str = new String(inbyte, "GBK"); } return
* str;
*/
/*
* BufferedInputStream is = null; byte[] bytes = null; try { is = new
* BufferedInputStream(blob.getBinaryStream()); bytes = new byte[(int)
* blob.length()]; int len = bytes.length; int offset = 0; int read = 0;
* while (offset < len && (read = is.read(bytes, offset, len - offset))
* >= 0) { offset += read; }
*
* } catch (Exception e) {
*
* return null;
*
* } finally {
*
* try {
*
* is.close();
*
* is = null;
*
* } catch (IOException e) {
*
* return null;
*
* } } if (bytes != null) return new String(bytes, "GBK"); return null;
*/
Object obj = null;
try {
ObjectInputStream in = new ObjectInputStream(blob.getBinaryStream());
obj = in.readObject();
in.close();
} catch (IOException e) {
e.printStackTrace();
return null;
} catch (Exception e) {
e.printStackTrace();
return null;
}
if (obj != null) {
return trim4((String) obj, "GBK", "GBK");
}
return null;
}
public static void main(String[] args) throws UnsupportedEncodingException {
/*
* System.out.println("abc=" + str5("好人不是的的12", 5));
* System.out.println(str6("好人123", 35));
* System.out.println(leftStr("好123", "好1")); gzcRels(
* "锦州银行股份有限公司;242668214;CHN;3;58.57;锦州太和益民村镇银行股份有限公司;699427699;CHN;3#锦州银行股份有限公司;242668214;CHN;3;58.29;辽宁义县祥和村镇银行股份有限公司;564606868;CHN;3#锦州银行股份有限公司;242668214;CHN;3;47.74;锦州北镇益民村镇银行股份有限公司;567594516;CHN;3#锦州银行股份有限公司;242668214;CHN;3;48.53;黑山锦行村镇银行股份有限公司;091953615;CHN;3"
* ); String str = "1$2"; System.out.println(str.split("\\$").length);
*/
// String str =
// formatDoc("DRAFT[||] [||] [|]INVOICE[||]3[||] [|]P/L[||]3[||] [|]B/L[||] [||] [|]I/P[||] [||] [|]INSP CERT[||] [||] [|]QUALITY CERT[||] [||] [|]QUANLITY CERT[||] [||] [|]CERT OF ORIGIN[||] [||] [|]GSP[||] [||] [|]BENE'S CERT[||] [||] [|]CABLE/FAX[||] [||] [|]OTHERS[||] [||] [|]AWB[||] [||] [|]DELIVERY ORDER[||]1[||] [|] [||] [||] [|] [||] [||] [|] [||] [||] [|] [||] [||] [|] [||] [||] [|] [||] [||] [|] [||] [||]");
// System.out.println(str);
// System.out.println(replace2("abc\naa\r") + "...");
System.out.println("abc=" + str5("好人不是的的12", 5));
}
public static String formatDoc(String orgdoc) {
StringBuffer sb = new StringBuffer();
if (isEmpty(orgdoc)) {
return "";
}
String[] lines = orgdoc.split("\\[\\|\\]");
for (int i = 0; i < lines.length; i++) {
String currentStr = lines[i];
if (isEmpty(currentStr)) {
continue;
}
String[] args = currentStr.split("\\[\\|\\|\\]");
if (args.length < 3) {
continue;
}
if (isEmpty(args[1]) && isEmpty(args[2])) {
continue;
}
String str = args[1] + "\t" + args[2] + "\t" + args[0];
if (i != (lines.length - 1))
sb.append(str + "\r\n");
else
sb.append(str);
}
return sb.toString();
}
public static boolean isEmpty(String str) { public static boolean isEmpty(String str) {
if (str == null || str.trim().equals("")) if (str == null || str.trim().equals("")) {
return true; return true;
}
return false; return false;
} }
public static String userUniqueId(String userId, String terminalType) { public static String replace2(String str) {
return userId + "." + terminalType; if (isEmpty(str))
return "";
return str.replace("\r", "").replace("\n", "");
} }
} }
package com.brilliance.remit.controller; package com.brilliance.remit.controller;
import java.util.List;
import java.util.Map; import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.transaction.TransactionStatus;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
...@@ -16,7 +20,28 @@ import org.springframework.web.bind.annotation.ResponseBody; ...@@ -16,7 +20,28 @@ import org.springframework.web.bind.annotation.ResponseBody;
import com.brilliance.remit.common.response.ErrorCodes; import com.brilliance.remit.common.response.ErrorCodes;
import com.brilliance.remit.common.response.ResultUtil; import com.brilliance.remit.common.response.ResultUtil;
import com.brilliance.remit.common.util.DbUtil;
import com.brilliance.remit.db.model.Adr;
import com.brilliance.remit.db.model.Cbb;
import com.brilliance.remit.db.model.Cbe;
import com.brilliance.remit.db.model.Cpd;
import com.brilliance.remit.db.model.Cpdgrp;
import com.brilliance.remit.db.model.Cpt;
import com.brilliance.remit.db.model.Pta;
import com.brilliance.remit.db.model.Pts;
import com.brilliance.remit.db.model.Pty;
import com.brilliance.remit.db.model.Trn;
import com.brilliance.remit.db.model.Usr;
import com.brilliance.remit.service.AdrService;
import com.brilliance.remit.service.CbbService;
import com.brilliance.remit.service.CbeService;
import com.brilliance.remit.service.CntService;
import com.brilliance.remit.service.CpdService; import com.brilliance.remit.service.CpdService;
import com.brilliance.remit.service.CptService;
import com.brilliance.remit.service.PtaService;
import com.brilliance.remit.service.PtsService;
import com.brilliance.remit.service.PtyService;
import com.brilliance.remit.service.TrnService;
/** /**
* This java was generated by Auto Generator. created at time 2018-12-17 * This java was generated by Auto Generator. created at time 2018-12-17
...@@ -26,22 +51,179 @@ import com.brilliance.remit.service.CpdService; ...@@ -26,22 +51,179 @@ import com.brilliance.remit.service.CpdService;
@Controller @Controller
public class CpdController { public class CpdController {
@Autowired @Autowired
private CntService cntService;
@Autowired
private CpdService cpdService; private CpdService cpdService;
@Autowired
private CptService cptService;
@Autowired
private TrnService trnService;
@Autowired
private PtsService ptsService;
@Autowired
private CbeService cbeService;
@Autowired
private CbbService cbbService;
@Autowired
private PtyService ptyService;
@Autowired
private AdrService adrService;
@Autowired
private PtaService ptaService;
private static final Log log = LogFactory.getLog(CpdController.class); private static final Log log = LogFactory.getLog(CpdController.class);
@Resource(name = "txManager")
private DataSourceTransactionManager transactionManager;
/**
* 根据exkey进行模糊查询匹配查询
* **/
@ResponseBody @ResponseBody
@RequestMapping(value = "/test", method = RequestMethod.POST) @RequestMapping(value = "/select/ptyinfos", method = RequestMethod.POST)
public Object test(@RequestBody Map<String, Object> dataMap, HttpServletRequest request, HttpSession session) { public Object ptyinfos(@RequestBody Map<String, String> dataMap, HttpServletRequest request, HttpSession session) {
/** String ptytyp = dataMap.get("ptytyp");
* you can do business hanle here. String extkey = dataMap.get("extkey");
**/ List<Pty> list = ptyService.ptyInfos(extkey, ptytyp);
return ResultUtil.result(ErrorCodes.SUCCESS, "sucess", null); return ResultUtil.result(ErrorCodes.SUCCESS, "sucess", list);
}
/**
* 获取具体的某个pty信息 C为客户信息 B为银行信息
* **/
@ResponseBody
@RequestMapping(value = "/select/ptyinfo", method = RequestMethod.POST)
public Object ptyInfoByExtkey(@RequestBody Map<String, String> dataMap, HttpServletRequest request, HttpSession session) {
String ptytyp = dataMap.get("ptytyp");
String extkey = dataMap.get("extkey");
Cpdgrp cpdgrp = null;
if (ptytyp.equals("C"))
cpdgrp = ptaService.custormerInfo(extkey);
if (ptytyp.equals("B"))
cpdgrp = ptaService.bankInfo(extkey);
return ResultUtil.result(ErrorCodes.SUCCESS, "sucess", cpdgrp);
} }
@ResponseBody @ResponseBody
@RequestMapping(value = "/save1", method = RequestMethod.POST)
public Object save1(@RequestBody Usr usr, HttpServletRequest request, HttpSession session) {
System.out.println(usr);
return null;
}
// TransactionStatus status =
/**
* 汇款逻辑保存
* **/
@ResponseBody
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
public Object save(@RequestBody Map<String, Object> dataMap, HttpServletRequest request, HttpSession session) { public Object save(@RequestBody Cpdgrp cpdgrp, HttpServletRequest request, HttpSession session) {
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try {
log.info("begin cpd save.....");
// 收款人ADR
String pyeAdrInr = null;
String pyePtyInr = null;
String pyePtaInr = null;
Adr pyeAdr = cpdgrp.getAdr();
boolean tempAdrInrIsNull = false;
if (pyeAdr.getInr() == null) {
tempAdrInrIsNull = true;
}
if (tempAdrInrIsNull) {
Cpdgrp tempCpdgrp = ptaService.custormerInfo(pyeAdr.getExtkey());
// 存在临时客户
if (tempCpdgrp != null && tempCpdgrp.getPta() != null) {
pyeAdrInr = tempCpdgrp.getAdr().getInr();
pyePtaInr = tempCpdgrp.getPta().getInr();
pyePtyInr = tempCpdgrp.getPty().getInr();
} else {
pyeAdrInr = cntService.counter("ADR");
pyeAdr.setInr(pyeAdrInr);
adrService.save(pyeAdr);
// 收款人PTY
Pty pyePty = cpdgrp.getPty();
pyePtyInr = cntService.counter("PTY");
pyePty.setInr(pyePtyInr);
ptyService.save(pyePty);
// 收款人PTA
Pta pyePta = cpdgrp.getPta();
pyePtaInr = cntService.counter("PTA");
pyePta.setInr(pyePtaInr);
pyePta.setObjinr(pyeAdrInr);
pyePta.setPtyinr(pyePtyInr);
ptaService.save(pyePta);
}
}
// CPD汇款主表
Cpd cpd = cpdgrp.getCpd();
String cpdinr = cntService.counter("CPD");
cpd.setInr(cpdinr);
if (tempAdrInrIsNull) {
cpd.setPyeptyinr(pyePtyInr);
cpd.setPyeptainr(pyePtaInr);
}
cpdService.save(cpd);
// CPT
Cpt cpt = cpdgrp.getCpt();
cpt.setInr(cpdinr);
cptService.save(cpt);
// 流水信息表
Trn trn = cpdgrp.getTrn();
String trninr = cntService.counter("TRN");
trn.setInr(trninr);
trn.setObjinr(cpdinr);
trnService.save(trn);
// PTS 角色信息表
List<Pts> ptsList = cpdgrp.getPtsList();
for (Pts pts : ptsList) {
String ptsinr = cntService.counter("PTS");
pts.setInr(ptsinr);
if (pts.getRol().equals("PYE") && tempAdrInrIsNull) {
pts.setPtainr(pyePtaInr);
pts.setPtyinr(pyePtyInr);
}
trnService.save(trn);
}
// 最大CBE CBB
Cbe maxcbe = cpdgrp.getMaxcbe();
String maxcbeinr = cntService.counter("CBE");
maxcbe.setInr(maxcbeinr);
maxcbe.setObjinr(cpdinr);
cbeService.save(maxcbe);
Cbb maxcbb = cpdgrp.getMaxcbb();
String maxcbbinr = cntService.counter("CBB");
maxcbb.setInr(maxcbbinr);
maxcbb.setObjinr(cpdinr);
maxcbb.setCbeinr(maxcbeinr);
cbbService.save(maxcbb);
// NON CBE CBB
Cbe nomcbe = cpdgrp.getNomcbe();
String nomcbeinr = cntService.counter("CBE");
nomcbe.setInr(nomcbeinr);
nomcbe.setObjinr(cpdinr);
cbeService.save(nomcbe);
Cbb nomcbb = cpdgrp.getNomcbb();
String nomcbbinr = cntService.counter("CBB");
nomcbb.setInr(nomcbbinr);
nomcbb.setObjinr(cpdinr);
nomcbb.setCbeinr(nomcbeinr);
cbbService.save(nomcbb);
transactionManager.commit(status);
log.info("end cpd save.....");
} catch (Exception e) {
log.error("save cpd error:", e);
transactionManager.rollback(status);
}
return ResultUtil.result(ErrorCodes.SUCCESS, "sucess", null); return ResultUtil.result(ErrorCodes.SUCCESS, "sucess", null);
} }
......
...@@ -52,7 +52,7 @@ public class LoginController { ...@@ -52,7 +52,7 @@ public class LoginController {
if (usr == null) if (usr == null)
return ResultUtil.result(ErrorCodes.ERROR, "用户【" + userId + "】不存在", null); return ResultUtil.result(ErrorCodes.ERROR, "用户【" + userId + "】不存在", null);
if (!md5Pwd.equals(usr.getPWD())) if (!md5Pwd.equals(usr.getPwd()))
return ResultUtil.result(ErrorCodes.ERROR, "用户【" + userId + "】密码错误", null); return ResultUtil.result(ErrorCodes.ERROR, "用户【" + userId + "】密码错误", null);
JwtLogin login = new JwtLogin(); JwtLogin login = new JwtLogin();
......
...@@ -6,37 +6,37 @@ public interface AdrMapper { ...@@ -6,37 +6,37 @@ public interface AdrMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table ADR * This method was generated by MyBatis Generator. This method corresponds to the database table ADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table ADR * This method was generated by MyBatis Generator. This method corresponds to the database table ADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Adr record); int insert(Adr record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table ADR * This method was generated by MyBatis Generator. This method corresponds to the database table ADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Adr record); int insertSelective(Adr record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table ADR * This method was generated by MyBatis Generator. This method corresponds to the database table ADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Adr selectByPrimaryKey(String INR); Adr selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table ADR * This method was generated by MyBatis Generator. This method corresponds to the database table ADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Adr record); int updateByPrimaryKeySelective(Adr record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table ADR * This method was generated by MyBatis Generator. This method corresponds to the database table ADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Adr record); int updateByPrimaryKey(Adr record);
} }
\ No newline at end of file
...@@ -6,37 +6,37 @@ public interface BchMapper { ...@@ -6,37 +6,37 @@ public interface BchMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table BCH * This method was generated by MyBatis Generator. This method corresponds to the database table BCH
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table BCH * This method was generated by MyBatis Generator. This method corresponds to the database table BCH
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Bch record); int insert(Bch record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table BCH * This method was generated by MyBatis Generator. This method corresponds to the database table BCH
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Bch record); int insertSelective(Bch record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table BCH * This method was generated by MyBatis Generator. This method corresponds to the database table BCH
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Bch selectByPrimaryKey(String INR); Bch selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table BCH * This method was generated by MyBatis Generator. This method corresponds to the database table BCH
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Bch record); int updateByPrimaryKeySelective(Bch record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table BCH * This method was generated by MyBatis Generator. This method corresponds to the database table BCH
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Bch record); int updateByPrimaryKey(Bch record);
} }
\ No newline at end of file
...@@ -6,37 +6,37 @@ public interface CbbMapper { ...@@ -6,37 +6,37 @@ public interface CbbMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBB * This method was generated by MyBatis Generator. This method corresponds to the database table CBB
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBB * This method was generated by MyBatis Generator. This method corresponds to the database table CBB
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Cbb record); int insert(Cbb record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBB * This method was generated by MyBatis Generator. This method corresponds to the database table CBB
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Cbb record); int insertSelective(Cbb record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBB * This method was generated by MyBatis Generator. This method corresponds to the database table CBB
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Cbb selectByPrimaryKey(String INR); Cbb selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBB * This method was generated by MyBatis Generator. This method corresponds to the database table CBB
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Cbb record); int updateByPrimaryKeySelective(Cbb record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBB * This method was generated by MyBatis Generator. This method corresponds to the database table CBB
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Cbb record); int updateByPrimaryKey(Cbb record);
} }
\ No newline at end of file
...@@ -6,37 +6,37 @@ public interface CbeMapper { ...@@ -6,37 +6,37 @@ public interface CbeMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBE * This method was generated by MyBatis Generator. This method corresponds to the database table CBE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBE * This method was generated by MyBatis Generator. This method corresponds to the database table CBE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Cbe record); int insert(Cbe record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBE * This method was generated by MyBatis Generator. This method corresponds to the database table CBE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Cbe record); int insertSelective(Cbe record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBE * This method was generated by MyBatis Generator. This method corresponds to the database table CBE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Cbe selectByPrimaryKey(String INR); Cbe selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBE * This method was generated by MyBatis Generator. This method corresponds to the database table CBE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Cbe record); int updateByPrimaryKeySelective(Cbe record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBE * This method was generated by MyBatis Generator. This method corresponds to the database table CBE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Cbe record); int updateByPrimaryKey(Cbe record);
} }
\ No newline at end of file
...@@ -6,37 +6,37 @@ public interface CouMapper { ...@@ -6,37 +6,37 @@ public interface CouMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table COU * This method was generated by MyBatis Generator. This method corresponds to the database table COU
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String COUNAM); int deleteByPrimaryKey(String counam);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table COU * This method was generated by MyBatis Generator. This method corresponds to the database table COU
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Cou record); int insert(Cou record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table COU * This method was generated by MyBatis Generator. This method corresponds to the database table COU
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Cou record); int insertSelective(Cou record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table COU * This method was generated by MyBatis Generator. This method corresponds to the database table COU
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Cou selectByPrimaryKey(String COUNAM); Cou selectByPrimaryKey(String counam);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table COU * This method was generated by MyBatis Generator. This method corresponds to the database table COU
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Cou record); int updateByPrimaryKeySelective(Cou record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table COU * This method was generated by MyBatis Generator. This method corresponds to the database table COU
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Cou record); int updateByPrimaryKey(Cou record);
} }
\ No newline at end of file
...@@ -6,37 +6,37 @@ public interface CpdMapper { ...@@ -6,37 +6,37 @@ public interface CpdMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPD * This method was generated by MyBatis Generator. This method corresponds to the database table CPD
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPD * This method was generated by MyBatis Generator. This method corresponds to the database table CPD
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Cpd record); int insert(Cpd record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPD * This method was generated by MyBatis Generator. This method corresponds to the database table CPD
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Cpd record); int insertSelective(Cpd record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPD * This method was generated by MyBatis Generator. This method corresponds to the database table CPD
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Cpd selectByPrimaryKey(String INR); Cpd selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPD * This method was generated by MyBatis Generator. This method corresponds to the database table CPD
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Cpd record); int updateByPrimaryKeySelective(Cpd record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPD * This method was generated by MyBatis Generator. This method corresponds to the database table CPD
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Cpd record); int updateByPrimaryKey(Cpd record);
} }
\ No newline at end of file
...@@ -7,37 +7,37 @@ public interface CptMapper { ...@@ -7,37 +7,37 @@ public interface CptMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPT * This method was generated by MyBatis Generator. This method corresponds to the database table CPT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPT * This method was generated by MyBatis Generator. This method corresponds to the database table CPT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Cpt record); int insert(Cpt record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPT * This method was generated by MyBatis Generator. This method corresponds to the database table CPT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Cpt record); int insertSelective(Cpt record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPT * This method was generated by MyBatis Generator. This method corresponds to the database table CPT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Cpt selectByPrimaryKey(String INR); Cpt selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPT * This method was generated by MyBatis Generator. This method corresponds to the database table CPT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Cpt record); int updateByPrimaryKeySelective(Cpt record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPT * This method was generated by MyBatis Generator. This method corresponds to the database table CPT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Cpt record); int updateByPrimaryKey(Cpt record);
} }
\ No newline at end of file
...@@ -6,37 +6,42 @@ public interface PtaMapper { ...@@ -6,37 +6,42 @@ public interface PtaMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTA * This method was generated by MyBatis Generator. This method corresponds to the database table PTA
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTA * This method was generated by MyBatis Generator. This method corresponds to the database table PTA
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Pta record); int insert(Pta record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTA * This method was generated by MyBatis Generator. This method corresponds to the database table PTA
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Pta record); int insertSelective(Pta record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTA * This method was generated by MyBatis Generator. This method corresponds to the database table PTA
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Pta selectByPrimaryKey(String INR); Pta selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTA * This method was generated by MyBatis Generator. This method corresponds to the database table PTA
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Pta record); int updateByPrimaryKeySelective(Pta record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTA * This method was generated by MyBatis Generator. This method corresponds to the database table PTA
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Pta record); int updateByPrimaryKey(Pta record);
Pta selectCustomerInfo(String extkey);
Pta selectBankInfo(String extkey);
} }
\ No newline at end of file
...@@ -6,37 +6,37 @@ public interface PteMapper { ...@@ -6,37 +6,37 @@ public interface PteMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTE * This method was generated by MyBatis Generator. This method corresponds to the database table PTE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTE * This method was generated by MyBatis Generator. This method corresponds to the database table PTE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Pte record); int insert(Pte record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTE * This method was generated by MyBatis Generator. This method corresponds to the database table PTE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Pte record); int insertSelective(Pte record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTE * This method was generated by MyBatis Generator. This method corresponds to the database table PTE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Pte selectByPrimaryKey(String INR); Pte selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTE * This method was generated by MyBatis Generator. This method corresponds to the database table PTE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Pte record); int updateByPrimaryKeySelective(Pte record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTE * This method was generated by MyBatis Generator. This method corresponds to the database table PTE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Pte record); int updateByPrimaryKey(Pte record);
} }
\ No newline at end of file
...@@ -6,37 +6,37 @@ public interface PtmMapper { ...@@ -6,37 +6,37 @@ public interface PtmMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTM * This method was generated by MyBatis Generator. This method corresponds to the database table PTM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTM * This method was generated by MyBatis Generator. This method corresponds to the database table PTM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Ptm record); int insert(Ptm record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTM * This method was generated by MyBatis Generator. This method corresponds to the database table PTM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Ptm record); int insertSelective(Ptm record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTM * This method was generated by MyBatis Generator. This method corresponds to the database table PTM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Ptm selectByPrimaryKey(String INR); Ptm selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTM * This method was generated by MyBatis Generator. This method corresponds to the database table PTM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Ptm record); int updateByPrimaryKeySelective(Ptm record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTM * This method was generated by MyBatis Generator. This method corresponds to the database table PTM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Ptm record); int updateByPrimaryKey(Ptm record);
} }
\ No newline at end of file
...@@ -6,37 +6,37 @@ public interface PtsMapper { ...@@ -6,37 +6,37 @@ public interface PtsMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTS * This method was generated by MyBatis Generator. This method corresponds to the database table PTS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTS * This method was generated by MyBatis Generator. This method corresponds to the database table PTS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Pts record); int insert(Pts record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTS * This method was generated by MyBatis Generator. This method corresponds to the database table PTS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Pts record); int insertSelective(Pts record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTS * This method was generated by MyBatis Generator. This method corresponds to the database table PTS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Pts selectByPrimaryKey(String INR); Pts selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTS * This method was generated by MyBatis Generator. This method corresponds to the database table PTS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Pts record); int updateByPrimaryKeySelective(Pts record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTS * This method was generated by MyBatis Generator. This method corresponds to the database table PTS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Pts record); int updateByPrimaryKey(Pts record);
} }
\ No newline at end of file
package com.brilliance.remit.db.dao; package com.brilliance.remit.db.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.brilliance.remit.db.model.Pty; import com.brilliance.remit.db.model.Pty;
public interface PtyMapper { public interface PtyMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTY * This method was generated by MyBatis Generator. This method corresponds to the database table PTY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTY * This method was generated by MyBatis Generator. This method corresponds to the database table PTY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Pty record); int insert(Pty record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTY * This method was generated by MyBatis Generator. This method corresponds to the database table PTY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Pty record); int insertSelective(Pty record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTY * This method was generated by MyBatis Generator. This method corresponds to the database table PTY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Pty selectByPrimaryKey(String INR); Pty selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTY * This method was generated by MyBatis Generator. This method corresponds to the database table PTY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Pty record); int updateByPrimaryKeySelective(Pty record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTY * This method was generated by MyBatis Generator. This method corresponds to the database table PTY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Pty record); int updateByPrimaryKey(Pty record);
List<Pty> selectptyInfos(@Param("extkey") String extkey, @Param("ptytyp") String ptytyp);
} }
\ No newline at end of file
...@@ -6,37 +6,37 @@ public interface PtyratMapper { ...@@ -6,37 +6,37 @@ public interface PtyratMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT * This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT * This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Ptyrat record); int insert(Ptyrat record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT * This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Ptyrat record); int insertSelective(Ptyrat record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT * This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Ptyrat selectByPrimaryKey(String INR); Ptyrat selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT * This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Ptyrat record); int updateByPrimaryKeySelective(Ptyrat record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT * This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Ptyrat record); int updateByPrimaryKey(Ptyrat record);
} }
\ No newline at end of file
...@@ -6,37 +6,37 @@ public interface TrnMapper { ...@@ -6,37 +6,37 @@ public interface TrnMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table TRN * This method was generated by MyBatis Generator. This method corresponds to the database table TRN
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table TRN * This method was generated by MyBatis Generator. This method corresponds to the database table TRN
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insert(Trn record); int insert(Trn record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table TRN * This method was generated by MyBatis Generator. This method corresponds to the database table TRN
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int insertSelective(Trn record); int insertSelective(Trn record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table TRN * This method was generated by MyBatis Generator. This method corresponds to the database table TRN
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
Trn selectByPrimaryKey(String INR); Trn selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table TRN * This method was generated by MyBatis Generator. This method corresponds to the database table TRN
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKeySelective(Trn record); int updateByPrimaryKeySelective(Trn record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table TRN * This method was generated by MyBatis Generator. This method corresponds to the database table TRN
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
int updateByPrimaryKey(Trn record); int updateByPrimaryKey(Trn record);
} }
\ No newline at end of file
package com.brilliance.remit.db.dao;
import com.brilliance.remit.db.model.Tst;
public interface TstMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TST
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
int deleteByPrimaryKey(String inr);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TST
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
int insert(Tst record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TST
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
int insertSelective(Tst record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TST
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
Tst selectByPrimaryKey(String inr);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TST
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
int updateByPrimaryKeySelective(Tst record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TST
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
int updateByPrimaryKey(Tst record);
}
\ No newline at end of file
...@@ -4,50 +4,38 @@ import com.brilliance.remit.db.model.Usr; ...@@ -4,50 +4,38 @@ import com.brilliance.remit.db.model.Usr;
public interface UsrMapper { public interface UsrMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds * This method was generated by MyBatis Generator. This method corresponds to the database table USR
* to the database table USR * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int deleteByPrimaryKey(String INR); int deleteByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds * This method was generated by MyBatis Generator. This method corresponds to the database table USR
* to the database table USR * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Usr record); int insert(Usr record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds * This method was generated by MyBatis Generator. This method corresponds to the database table USR
* to the database table USR * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Usr record); int insertSelective(Usr record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds * This method was generated by MyBatis Generator. This method corresponds to the database table USR
* to the database table USR * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
Usr selectByPrimaryKey(String INR); Usr selectByPrimaryKey(String inr);
/** /**
* This method was generated by MyBatis Generator. This method corresponds * This method was generated by MyBatis Generator. This method corresponds to the database table USR
* to the database table USR * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int updateByPrimaryKeySelective(Usr record); int updateByPrimaryKeySelective(Usr record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds * This method was generated by MyBatis Generator. This method corresponds to the database table USR
* to the database table USR * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int updateByPrimaryKey(Usr record); int updateByPrimaryKey(Usr record);
......
...@@ -5,78 +5,78 @@ ...@@ -5,78 +5,78 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
<id column="COUNAM" jdbcType="VARCHAR" property="COUNAM" /> <id column="COUNAM" jdbcType="VARCHAR" property="counam" />
<result column="COUSTP" jdbcType="DECIMAL" property="COUSTP" /> <result column="COUSTP" jdbcType="DECIMAL" property="coustp" />
<result column="COUVAL" jdbcType="DECIMAL" property="COUVAL" /> <result column="COUVAL" jdbcType="DECIMAL" property="couval" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
COUNAM, COUSTP, COUVAL "COUNAM", "COUSTP", "COUVAL"
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from COU from "COU"
where COUNAM = #{COUNAM,jdbcType=VARCHAR} where "COUNAM" = #{counam,jdbcType=VARCHAR}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
delete from COU delete from "COU"
where COUNAM = #{COUNAM,jdbcType=VARCHAR} where "COUNAM" = #{counam,jdbcType=VARCHAR}
</delete> </delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Cou"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Cou">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
insert into COU (COUNAM, COUSTP, COUVAL insert into "COU" ("COUNAM", "COUSTP", "COUVAL"
) )
values (#{COUNAM,jdbcType=VARCHAR}, #{COUSTP,jdbcType=DECIMAL}, #{COUVAL,jdbcType=DECIMAL} values (#{counam,jdbcType=VARCHAR}, #{coustp,jdbcType=DECIMAL}, #{couval,jdbcType=DECIMAL}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.brilliance.remit.db.model.Cou"> <insert id="insertSelective" parameterType="com.brilliance.remit.db.model.Cou">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
insert into COU insert into "COU"
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="COUNAM != null"> <if test="counam != null">
COUNAM, "COUNAM",
</if> </if>
<if test="COUSTP != null"> <if test="coustp != null">
COUSTP, "COUSTP",
</if> </if>
<if test="COUVAL != null"> <if test="couval != null">
COUVAL, "COUVAL",
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="COUNAM != null"> <if test="counam != null">
#{COUNAM,jdbcType=VARCHAR}, #{counam,jdbcType=VARCHAR},
</if> </if>
<if test="COUSTP != null"> <if test="coustp != null">
#{COUSTP,jdbcType=DECIMAL}, #{coustp,jdbcType=DECIMAL},
</if> </if>
<if test="COUVAL != null"> <if test="couval != null">
#{COUVAL,jdbcType=DECIMAL}, #{couval,jdbcType=DECIMAL},
</if> </if>
</trim> </trim>
</insert> </insert>
...@@ -84,28 +84,28 @@ ...@@ -84,28 +84,28 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
update COU update "COU"
<set> <set>
<if test="COUSTP != null"> <if test="coustp != null">
COUSTP = #{COUSTP,jdbcType=DECIMAL}, "COUSTP" = #{coustp,jdbcType=DECIMAL},
</if> </if>
<if test="COUVAL != null"> <if test="couval != null">
COUVAL = #{COUVAL,jdbcType=DECIMAL}, "COUVAL" = #{couval,jdbcType=DECIMAL},
</if> </if>
</set> </set>
where COUNAM = #{COUNAM,jdbcType=VARCHAR} where "COUNAM" = #{counam,jdbcType=VARCHAR}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Cou"> <update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Cou">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
update COU update "COU"
set COUSTP = #{COUSTP,jdbcType=DECIMAL}, set "COUSTP" = #{coustp,jdbcType=DECIMAL},
COUVAL = #{COUVAL,jdbcType=DECIMAL} "COUVAL" = #{couval,jdbcType=DECIMAL}
where COUNAM = #{COUNAM,jdbcType=VARCHAR} where "COUNAM" = #{counam,jdbcType=VARCHAR}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
...@@ -5,108 +5,108 @@ ...@@ -5,108 +5,108 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
<id column="INR" jdbcType="CHAR" property="INR" /> <id column="INR" jdbcType="CHAR" property="inr" />
<result column="FLDMODBLK" jdbcType="VARCHAR" property="FLDMODBLK" /> <result column="FLDMODBLK" jdbcType="VARCHAR" property="fldmodblk" />
<result column="NARHIS" jdbcType="VARCHAR" property="NARHIS" /> <result column="NARHIS" jdbcType="VARCHAR" property="narhis" />
<result column="CONTAG72" jdbcType="VARCHAR" property="CONTAG72" /> <result column="CONTAG72" jdbcType="VARCHAR" property="contag72" />
<result column="CONTAG79" jdbcType="VARCHAR" property="CONTAG79" /> <result column="CONTAG79" jdbcType="VARCHAR" property="contag79" />
<result column="CONTAG70" jdbcType="VARCHAR" property="CONTAG70" /> <result column="CONTAG70" jdbcType="VARCHAR" property="contag70" />
<result column="REMARK" jdbcType="VARCHAR" property="REMARK" /> <result column="REMARK" jdbcType="VARCHAR" property="remark" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
INR, FLDMODBLK, NARHIS, CONTAG72, CONTAG79, CONTAG70, REMARK "INR", "FLDMODBLK", "NARHIS", "CONTAG72", "CONTAG79", "CONTAG70", "REMARK"
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from CPT from "CPT"
where INR = #{INR,jdbcType=CHAR} where "INR" = #{inr,jdbcType=CHAR}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
delete from CPT delete from "CPT"
where INR = #{INR,jdbcType=CHAR} where "INR" = #{inr,jdbcType=CHAR}
</delete> </delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Cpt"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Cpt">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
insert into CPT (INR, FLDMODBLK, NARHIS, insert into "CPT" ("INR", "FLDMODBLK", "NARHIS",
CONTAG72, CONTAG79, CONTAG70, "CONTAG72", "CONTAG79", "CONTAG70",
REMARK) "REMARK")
values (#{INR,jdbcType=CHAR}, #{FLDMODBLK,jdbcType=VARCHAR}, #{NARHIS,jdbcType=VARCHAR}, values (#{inr,jdbcType=CHAR}, #{fldmodblk,jdbcType=VARCHAR}, #{narhis,jdbcType=VARCHAR},
#{CONTAG72,jdbcType=VARCHAR}, #{CONTAG79,jdbcType=VARCHAR}, #{CONTAG70,jdbcType=VARCHAR}, #{contag72,jdbcType=VARCHAR}, #{contag79,jdbcType=VARCHAR}, #{contag70,jdbcType=VARCHAR},
#{REMARK,jdbcType=VARCHAR}) #{remark,jdbcType=VARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.brilliance.remit.db.model.Cpt"> <insert id="insertSelective" parameterType="com.brilliance.remit.db.model.Cpt">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
insert into CPT insert into "CPT"
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="INR != null"> <if test="inr != null">
INR, "INR",
</if> </if>
<if test="FLDMODBLK != null"> <if test="fldmodblk != null">
FLDMODBLK, "FLDMODBLK",
</if> </if>
<if test="NARHIS != null"> <if test="narhis != null">
NARHIS, "NARHIS",
</if> </if>
<if test="CONTAG72 != null"> <if test="contag72 != null">
CONTAG72, "CONTAG72",
</if> </if>
<if test="CONTAG79 != null"> <if test="contag79 != null">
CONTAG79, "CONTAG79",
</if> </if>
<if test="CONTAG70 != null"> <if test="contag70 != null">
CONTAG70, "CONTAG70",
</if> </if>
<if test="REMARK != null"> <if test="remark != null">
REMARK, "REMARK",
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="INR != null"> <if test="inr != null">
#{INR,jdbcType=CHAR}, #{inr,jdbcType=CHAR},
</if> </if>
<if test="FLDMODBLK != null"> <if test="fldmodblk != null">
#{FLDMODBLK,jdbcType=VARCHAR}, #{fldmodblk,jdbcType=VARCHAR},
</if> </if>
<if test="NARHIS != null"> <if test="narhis != null">
#{NARHIS,jdbcType=VARCHAR}, #{narhis,jdbcType=VARCHAR},
</if> </if>
<if test="CONTAG72 != null"> <if test="contag72 != null">
#{CONTAG72,jdbcType=VARCHAR}, #{contag72,jdbcType=VARCHAR},
</if> </if>
<if test="CONTAG79 != null"> <if test="contag79 != null">
#{CONTAG79,jdbcType=VARCHAR}, #{contag79,jdbcType=VARCHAR},
</if> </if>
<if test="CONTAG70 != null"> <if test="contag70 != null">
#{CONTAG70,jdbcType=VARCHAR}, #{contag70,jdbcType=VARCHAR},
</if> </if>
<if test="REMARK != null"> <if test="remark != null">
#{REMARK,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
</if> </if>
</trim> </trim>
</insert> </insert>
...@@ -114,44 +114,44 @@ ...@@ -114,44 +114,44 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
update CPT update "CPT"
<set> <set>
<if test="FLDMODBLK != null"> <if test="fldmodblk != null">
FLDMODBLK = #{FLDMODBLK,jdbcType=VARCHAR}, "FLDMODBLK" = #{fldmodblk,jdbcType=VARCHAR},
</if> </if>
<if test="NARHIS != null"> <if test="narhis != null">
NARHIS = #{NARHIS,jdbcType=VARCHAR}, "NARHIS" = #{narhis,jdbcType=VARCHAR},
</if> </if>
<if test="CONTAG72 != null"> <if test="contag72 != null">
CONTAG72 = #{CONTAG72,jdbcType=VARCHAR}, "CONTAG72" = #{contag72,jdbcType=VARCHAR},
</if> </if>
<if test="CONTAG79 != null"> <if test="contag79 != null">
CONTAG79 = #{CONTAG79,jdbcType=VARCHAR}, "CONTAG79" = #{contag79,jdbcType=VARCHAR},
</if> </if>
<if test="CONTAG70 != null"> <if test="contag70 != null">
CONTAG70 = #{CONTAG70,jdbcType=VARCHAR}, "CONTAG70" = #{contag70,jdbcType=VARCHAR},
</if> </if>
<if test="REMARK != null"> <if test="remark != null">
REMARK = #{REMARK,jdbcType=VARCHAR}, "REMARK" = #{remark,jdbcType=VARCHAR},
</if> </if>
</set> </set>
where INR = #{INR,jdbcType=CHAR} where "INR" = #{inr,jdbcType=CHAR}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Cpt"> <update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Cpt">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
update CPT update "CPT"
set FLDMODBLK = #{FLDMODBLK,jdbcType=VARCHAR}, set "FLDMODBLK" = #{fldmodblk,jdbcType=VARCHAR},
NARHIS = #{NARHIS,jdbcType=VARCHAR}, "NARHIS" = #{narhis,jdbcType=VARCHAR},
CONTAG72 = #{CONTAG72,jdbcType=VARCHAR}, "CONTAG72" = #{contag72,jdbcType=VARCHAR},
CONTAG79 = #{CONTAG79,jdbcType=VARCHAR}, "CONTAG79" = #{contag79,jdbcType=VARCHAR},
CONTAG70 = #{CONTAG70,jdbcType=VARCHAR}, "CONTAG70" = #{contag70,jdbcType=VARCHAR},
REMARK = #{REMARK,jdbcType=VARCHAR} "REMARK" = #{remark,jdbcType=VARCHAR}
where INR = #{INR,jdbcType=CHAR} where "INR" = #{inr,jdbcType=CHAR}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
...@@ -5,115 +5,115 @@ ...@@ -5,115 +5,115 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
<id column="INR" jdbcType="CHAR" property="INR" /> <id column="INR" jdbcType="CHAR" property="inr" />
<result column="PTAINR" jdbcType="CHAR" property="PTAINR" /> <result column="PTAINR" jdbcType="CHAR" property="ptainr" />
<result column="CORTYP" jdbcType="CHAR" property="CORTYP" /> <result column="CORTYP" jdbcType="CHAR" property="cortyp" />
<result column="CORADR" jdbcType="CHAR" property="CORADR" /> <result column="CORADR" jdbcType="CHAR" property="coradr" />
<result column="AUTFLG" jdbcType="CHAR" property="AUTFLG" /> <result column="AUTFLG" jdbcType="CHAR" property="autflg" />
<result column="AUTDET" jdbcType="CHAR" property="AUTDET" /> <result column="AUTDET" jdbcType="CHAR" property="autdet" />
<result column="VER" jdbcType="CHAR" property="VER" /> <result column="VER" jdbcType="CHAR" property="ver" />
<result column="ETGEXTKEY" jdbcType="CHAR" property="ETGEXTKEY" /> <result column="ETGEXTKEY" jdbcType="CHAR" property="etgextkey" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
INR, PTAINR, CORTYP, CORADR, AUTFLG, AUTDET, VER, ETGEXTKEY "INR", "PTAINR", "CORTYP", "CORADR", "AUTFLG", "AUTDET", "VER", "ETGEXTKEY"
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from PTM from "PTM"
where INR = #{INR,jdbcType=CHAR} where "INR" = #{inr,jdbcType=CHAR}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
delete from PTM delete from "PTM"
where INR = #{INR,jdbcType=CHAR} where "INR" = #{inr,jdbcType=CHAR}
</delete> </delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Ptm"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Ptm">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
insert into PTM (INR, PTAINR, CORTYP, CORADR, insert into "PTM" ("INR", "PTAINR", "CORTYP", "CORADR",
AUTFLG, AUTDET, VER, ETGEXTKEY "AUTFLG", "AUTDET", "VER", "ETGEXTKEY"
) )
values (#{INR,jdbcType=CHAR}, #{PTAINR,jdbcType=CHAR}, #{CORTYP,jdbcType=CHAR}, #{CORADR,jdbcType=CHAR}, values (#{inr,jdbcType=CHAR}, #{ptainr,jdbcType=CHAR}, #{cortyp,jdbcType=CHAR}, #{coradr,jdbcType=CHAR},
#{AUTFLG,jdbcType=CHAR}, #{AUTDET,jdbcType=CHAR}, #{VER,jdbcType=CHAR}, #{ETGEXTKEY,jdbcType=CHAR} #{autflg,jdbcType=CHAR}, #{autdet,jdbcType=CHAR}, #{ver,jdbcType=CHAR}, #{etgextkey,jdbcType=CHAR}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.brilliance.remit.db.model.Ptm"> <insert id="insertSelective" parameterType="com.brilliance.remit.db.model.Ptm">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
insert into PTM insert into "PTM"
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="INR != null"> <if test="inr != null">
INR, "INR",
</if> </if>
<if test="PTAINR != null"> <if test="ptainr != null">
PTAINR, "PTAINR",
</if> </if>
<if test="CORTYP != null"> <if test="cortyp != null">
CORTYP, "CORTYP",
</if> </if>
<if test="CORADR != null"> <if test="coradr != null">
CORADR, "CORADR",
</if> </if>
<if test="AUTFLG != null"> <if test="autflg != null">
AUTFLG, "AUTFLG",
</if> </if>
<if test="AUTDET != null"> <if test="autdet != null">
AUTDET, "AUTDET",
</if> </if>
<if test="VER != null"> <if test="ver != null">
VER, "VER",
</if> </if>
<if test="ETGEXTKEY != null"> <if test="etgextkey != null">
ETGEXTKEY, "ETGEXTKEY",
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="INR != null"> <if test="inr != null">
#{INR,jdbcType=CHAR}, #{inr,jdbcType=CHAR},
</if> </if>
<if test="PTAINR != null"> <if test="ptainr != null">
#{PTAINR,jdbcType=CHAR}, #{ptainr,jdbcType=CHAR},
</if> </if>
<if test="CORTYP != null"> <if test="cortyp != null">
#{CORTYP,jdbcType=CHAR}, #{cortyp,jdbcType=CHAR},
</if> </if>
<if test="CORADR != null"> <if test="coradr != null">
#{CORADR,jdbcType=CHAR}, #{coradr,jdbcType=CHAR},
</if> </if>
<if test="AUTFLG != null"> <if test="autflg != null">
#{AUTFLG,jdbcType=CHAR}, #{autflg,jdbcType=CHAR},
</if> </if>
<if test="AUTDET != null"> <if test="autdet != null">
#{AUTDET,jdbcType=CHAR}, #{autdet,jdbcType=CHAR},
</if> </if>
<if test="VER != null"> <if test="ver != null">
#{VER,jdbcType=CHAR}, #{ver,jdbcType=CHAR},
</if> </if>
<if test="ETGEXTKEY != null"> <if test="etgextkey != null">
#{ETGEXTKEY,jdbcType=CHAR}, #{etgextkey,jdbcType=CHAR},
</if> </if>
</trim> </trim>
</insert> </insert>
...@@ -121,48 +121,48 @@ ...@@ -121,48 +121,48 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
update PTM update "PTM"
<set> <set>
<if test="PTAINR != null"> <if test="ptainr != null">
PTAINR = #{PTAINR,jdbcType=CHAR}, "PTAINR" = #{ptainr,jdbcType=CHAR},
</if> </if>
<if test="CORTYP != null"> <if test="cortyp != null">
CORTYP = #{CORTYP,jdbcType=CHAR}, "CORTYP" = #{cortyp,jdbcType=CHAR},
</if> </if>
<if test="CORADR != null"> <if test="coradr != null">
CORADR = #{CORADR,jdbcType=CHAR}, "CORADR" = #{coradr,jdbcType=CHAR},
</if> </if>
<if test="AUTFLG != null"> <if test="autflg != null">
AUTFLG = #{AUTFLG,jdbcType=CHAR}, "AUTFLG" = #{autflg,jdbcType=CHAR},
</if> </if>
<if test="AUTDET != null"> <if test="autdet != null">
AUTDET = #{AUTDET,jdbcType=CHAR}, "AUTDET" = #{autdet,jdbcType=CHAR},
</if> </if>
<if test="VER != null"> <if test="ver != null">
VER = #{VER,jdbcType=CHAR}, "VER" = #{ver,jdbcType=CHAR},
</if> </if>
<if test="ETGEXTKEY != null"> <if test="etgextkey != null">
ETGEXTKEY = #{ETGEXTKEY,jdbcType=CHAR}, "ETGEXTKEY" = #{etgextkey,jdbcType=CHAR},
</if> </if>
</set> </set>
where INR = #{INR,jdbcType=CHAR} where "INR" = #{inr,jdbcType=CHAR}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Ptm"> <update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Ptm">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
update PTM update "PTM"
set PTAINR = #{PTAINR,jdbcType=CHAR}, set "PTAINR" = #{ptainr,jdbcType=CHAR},
CORTYP = #{CORTYP,jdbcType=CHAR}, "CORTYP" = #{cortyp,jdbcType=CHAR},
CORADR = #{CORADR,jdbcType=CHAR}, "CORADR" = #{coradr,jdbcType=CHAR},
AUTFLG = #{AUTFLG,jdbcType=CHAR}, "AUTFLG" = #{autflg,jdbcType=CHAR},
AUTDET = #{AUTDET,jdbcType=CHAR}, "AUTDET" = #{autdet,jdbcType=CHAR},
VER = #{VER,jdbcType=CHAR}, "VER" = #{ver,jdbcType=CHAR},
ETGEXTKEY = #{ETGEXTKEY,jdbcType=CHAR} "ETGEXTKEY" = #{etgextkey,jdbcType=CHAR}
where INR = #{INR,jdbcType=CHAR} where "INR" = #{inr,jdbcType=CHAR}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.brilliance.remit.db.dao.TstMapper">
<resultMap id="BaseResultMap" type="com.brilliance.remit.db.model.Tst">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 20 10:36:40 CST 2018.
-->
<id column="INR" jdbcType="CHAR" property="inr" />
<result column="NAM" jdbcType="VARCHAR" property="nam" />
<result column="PWD" jdbcType="VARCHAR" property="pwd" />
<result column="CHNNAM" jdbcType="VARCHAR" property="chnnam" />
<result column="USRLEV" jdbcType="CHAR" property="usrlev" />
<result column="BCHINR" jdbcType="CHAR" property="bchinr" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 20 10:36:40 CST 2018.
-->
"INR", "NAM", "PWD", "CHNNAM", "USRLEV", "BCHINR"
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 20 10:36:40 CST 2018.
-->
select
<include refid="Base_Column_List" />
from "TST"
where "INR" = #{inr,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 20 10:36:40 CST 2018.
-->
delete from "TST"
where "INR" = #{inr,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Tst">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 20 10:36:40 CST 2018.
-->
insert into "TST" ("INR", "NAM", "PWD", "CHNNAM",
"USRLEV", "BCHINR")
values (#{inr,jdbcType=CHAR}, #{nam,jdbcType=VARCHAR}, #{pwd,jdbcType=VARCHAR}, #{chnnam,jdbcType=VARCHAR},
#{usrlev,jdbcType=CHAR}, #{bchinr,jdbcType=CHAR})
</insert>
<insert id="insertSelective" parameterType="com.brilliance.remit.db.model.Tst">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 20 10:36:40 CST 2018.
-->
insert into "TST"
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="inr != null">
"INR",
</if>
<if test="nam != null">
"NAM",
</if>
<if test="pwd != null">
"PWD",
</if>
<if test="chnnam != null">
"CHNNAM",
</if>
<if test="usrlev != null">
"USRLEV",
</if>
<if test="bchinr != null">
"BCHINR",
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="inr != null">
#{inr,jdbcType=CHAR},
</if>
<if test="nam != null">
#{nam,jdbcType=VARCHAR},
</if>
<if test="pwd != null">
#{pwd,jdbcType=VARCHAR},
</if>
<if test="chnnam != null">
#{chnnam,jdbcType=VARCHAR},
</if>
<if test="usrlev != null">
#{usrlev,jdbcType=CHAR},
</if>
<if test="bchinr != null">
#{bchinr,jdbcType=CHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.remit.db.model.Tst">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 20 10:36:40 CST 2018.
-->
update "TST"
<set>
<if test="nam != null">
"NAM" = #{nam,jdbcType=VARCHAR},
</if>
<if test="pwd != null">
"PWD" = #{pwd,jdbcType=VARCHAR},
</if>
<if test="chnnam != null">
"CHNNAM" = #{chnnam,jdbcType=VARCHAR},
</if>
<if test="usrlev != null">
"USRLEV" = #{usrlev,jdbcType=CHAR},
</if>
<if test="bchinr != null">
"BCHINR" = #{bchinr,jdbcType=CHAR},
</if>
</set>
where "INR" = #{inr,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Tst">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 20 10:36:40 CST 2018.
-->
update "TST"
set "NAM" = #{nam,jdbcType=VARCHAR},
"PWD" = #{pwd,jdbcType=VARCHAR},
"CHNNAM" = #{chnnam,jdbcType=VARCHAR},
"USRLEV" = #{usrlev,jdbcType=CHAR},
"BCHINR" = #{bchinr,jdbcType=CHAR}
where "INR" = #{inr,jdbcType=CHAR}
</update>
</mapper>
\ No newline at end of file
...@@ -5,99 +5,99 @@ ...@@ -5,99 +5,99 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
<id column="INR" jdbcType="CHAR" property="INR" /> <id column="INR" jdbcType="CHAR" property="inr" />
<result column="NAM" jdbcType="VARCHAR" property="NAM" /> <result column="NAM" jdbcType="VARCHAR" property="nam" />
<result column="PWD" jdbcType="VARCHAR" property="PWD" /> <result column="PWD" jdbcType="VARCHAR" property="pwd" />
<result column="CHNNAM" jdbcType="VARCHAR" property="CHNNAM" /> <result column="CHNNAM" jdbcType="VARCHAR" property="chnnam" />
<result column="USRLEV" jdbcType="CHAR" property="USRLEV" /> <result column="USRLEV" jdbcType="CHAR" property="usrlev" />
<result column="BCHINR" jdbcType="CHAR" property="BCHINR" /> <result column="BCHINR" jdbcType="CHAR" property="bchinr" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
INR, NAM, PWD, CHNNAM, USRLEV, BCHINR "INR", "NAM", "PWD", "CHNNAM", "USRLEV", "BCHINR"
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from USR from "USR"
where INR = #{INR,jdbcType=CHAR} where "INR" = #{inr,jdbcType=CHAR}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
delete from USR delete from "USR"
where INR = #{INR,jdbcType=CHAR} where "INR" = #{inr,jdbcType=CHAR}
</delete> </delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Usr"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Usr">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
insert into USR (INR, NAM, PWD, CHNNAM, insert into "USR" ("INR", "NAM", "PWD", "CHNNAM",
USRLEV, BCHINR) "USRLEV", "BCHINR")
values (#{INR,jdbcType=CHAR}, #{NAM,jdbcType=VARCHAR}, #{PWD,jdbcType=VARCHAR}, #{CHNNAM,jdbcType=VARCHAR}, values (#{inr,jdbcType=CHAR}, #{nam,jdbcType=VARCHAR}, #{pwd,jdbcType=VARCHAR}, #{chnnam,jdbcType=VARCHAR},
#{USRLEV,jdbcType=CHAR}, #{BCHINR,jdbcType=CHAR}) #{usrlev,jdbcType=CHAR}, #{bchinr,jdbcType=CHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.brilliance.remit.db.model.Usr"> <insert id="insertSelective" parameterType="com.brilliance.remit.db.model.Usr">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
insert into USR insert into "USR"
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="INR != null"> <if test="inr != null">
INR, "INR",
</if> </if>
<if test="NAM != null"> <if test="nam != null">
NAM, "NAM",
</if> </if>
<if test="PWD != null"> <if test="pwd != null">
PWD, "PWD",
</if> </if>
<if test="CHNNAM != null"> <if test="chnnam != null">
CHNNAM, "CHNNAM",
</if> </if>
<if test="USRLEV != null"> <if test="usrlev != null">
USRLEV, "USRLEV",
</if> </if>
<if test="BCHINR != null"> <if test="bchinr != null">
BCHINR, "BCHINR",
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="INR != null"> <if test="inr != null">
#{INR,jdbcType=CHAR}, #{inr,jdbcType=CHAR},
</if> </if>
<if test="NAM != null"> <if test="nam != null">
#{NAM,jdbcType=VARCHAR}, #{nam,jdbcType=VARCHAR},
</if> </if>
<if test="PWD != null"> <if test="pwd != null">
#{PWD,jdbcType=VARCHAR}, #{pwd,jdbcType=VARCHAR},
</if> </if>
<if test="CHNNAM != null"> <if test="chnnam != null">
#{CHNNAM,jdbcType=VARCHAR}, #{chnnam,jdbcType=VARCHAR},
</if> </if>
<if test="USRLEV != null"> <if test="usrlev != null">
#{USRLEV,jdbcType=CHAR}, #{usrlev,jdbcType=CHAR},
</if> </if>
<if test="BCHINR != null"> <if test="bchinr != null">
#{BCHINR,jdbcType=CHAR}, #{bchinr,jdbcType=CHAR},
</if> </if>
</trim> </trim>
</insert> </insert>
...@@ -105,41 +105,41 @@ ...@@ -105,41 +105,41 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
update USR update "USR"
<set> <set>
<if test="NAM != null"> <if test="nam != null">
NAM = #{NAM,jdbcType=VARCHAR}, "NAM" = #{nam,jdbcType=VARCHAR},
</if> </if>
<if test="PWD != null"> <if test="pwd != null">
PWD = #{PWD,jdbcType=VARCHAR}, "PWD" = #{pwd,jdbcType=VARCHAR},
</if> </if>
<if test="CHNNAM != null"> <if test="chnnam != null">
CHNNAM = #{CHNNAM,jdbcType=VARCHAR}, "CHNNAM" = #{chnnam,jdbcType=VARCHAR},
</if> </if>
<if test="USRLEV != null"> <if test="usrlev != null">
USRLEV = #{USRLEV,jdbcType=CHAR}, "USRLEV" = #{usrlev,jdbcType=CHAR},
</if> </if>
<if test="BCHINR != null"> <if test="bchinr != null">
BCHINR = #{BCHINR,jdbcType=CHAR}, "BCHINR" = #{bchinr,jdbcType=CHAR},
</if> </if>
</set> </set>
where INR = #{INR,jdbcType=CHAR} where "INR" = #{inr,jdbcType=CHAR}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Usr"> <update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Usr">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018. This element was generated on Thu Dec 20 10:36:40 CST 2018.
--> -->
update USR update "USR"
set NAM = #{NAM,jdbcType=VARCHAR}, set "NAM" = #{nam,jdbcType=VARCHAR},
PWD = #{PWD,jdbcType=VARCHAR}, "PWD" = #{pwd,jdbcType=VARCHAR},
CHNNAM = #{CHNNAM,jdbcType=VARCHAR}, "CHNNAM" = #{chnnam,jdbcType=VARCHAR},
USRLEV = #{USRLEV,jdbcType=CHAR}, "USRLEV" = #{usrlev,jdbcType=CHAR},
BCHINR = #{BCHINR,jdbcType=CHAR} "BCHINR" = #{bchinr,jdbcType=CHAR}
where INR = #{INR,jdbcType=CHAR} where "INR" = #{inr,jdbcType=CHAR}
</update> </update>
<select id="selectByUserId" resultMap="BaseResultMap"> <select id="selectByUserId" resultMap="BaseResultMap">
......
...@@ -6,71 +6,71 @@ public class Cou { ...@@ -6,71 +6,71 @@ public class Cou {
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column COU.COUNAM * This field was generated by MyBatis Generator. This field corresponds to the database column COU.COUNAM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String COUNAM; private String counam;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column COU.COUSTP * This field was generated by MyBatis Generator. This field corresponds to the database column COU.COUSTP
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private BigDecimal COUSTP; private BigDecimal coustp;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column COU.COUVAL * This field was generated by MyBatis Generator. This field corresponds to the database column COU.COUVAL
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private BigDecimal COUVAL; private BigDecimal couval;
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column COU.COUNAM * This method was generated by MyBatis Generator. This method returns the value of the database column COU.COUNAM
* @return the value of COU.COUNAM * @return the value of COU.COUNAM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getCOUNAM() { public String getCounam() {
return COUNAM; return counam;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column COU.COUNAM * This method was generated by MyBatis Generator. This method sets the value of the database column COU.COUNAM
* @param COUNAM the value for COU.COUNAM * @param counam the value for COU.COUNAM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setCOUNAM(String COUNAM) { public void setCounam(String counam) {
this.COUNAM = COUNAM; this.counam = counam;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column COU.COUSTP * This method was generated by MyBatis Generator. This method returns the value of the database column COU.COUSTP
* @return the value of COU.COUSTP * @return the value of COU.COUSTP
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public BigDecimal getCOUSTP() { public BigDecimal getCoustp() {
return COUSTP; return coustp;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column COU.COUSTP * This method was generated by MyBatis Generator. This method sets the value of the database column COU.COUSTP
* @param COUSTP the value for COU.COUSTP * @param coustp the value for COU.COUSTP
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setCOUSTP(BigDecimal COUSTP) { public void setCoustp(BigDecimal coustp) {
this.COUSTP = COUSTP; this.coustp = coustp;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column COU.COUVAL * This method was generated by MyBatis Generator. This method returns the value of the database column COU.COUVAL
* @return the value of COU.COUVAL * @return the value of COU.COUVAL
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public BigDecimal getCOUVAL() { public BigDecimal getCouval() {
return COUVAL; return couval;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column COU.COUVAL * This method was generated by MyBatis Generator. This method sets the value of the database column COU.COUVAL
* @param COUVAL the value for COU.COUVAL * @param couval the value for COU.COUVAL
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setCOUVAL(BigDecimal COUVAL) { public void setCouval(BigDecimal couval) {
this.COUVAL = COUVAL; this.couval = couval;
} }
} }
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
package com.brilliance.remit.db.model;
import java.io.Serializable;
import java.util.List;
public class Cpdgrp implements Serializable {
/*
* 汇出汇款主表 CPD CPT 业务流水表 TRN 角色信息 PTS 变动余额 CBE 余额 CBB 分录信息 GLE 境外汇款 DBB/境内汇款
* DBE 手续费 FEP
*/
/**
*
*/
private static final long serialVersionUID = 1L;
private Cpd cpd = new Cpd();
private Cpt cpt;
private Trn trn;
private List<Pts> ptsList;
private Pty pty;
private Adr adr;
private Pta pta;
private Cbe maxcbe;// 变动余额
private Cbb maxcbb;// 余额
private Cbe nomcbe;// 变动余额
private Cbb nomcbb;// 余额
public Cpd getCpd() {
return cpd;
}
public Cpt getCpt() {
return cpt;
}
public Trn getTrn() {
return trn;
}
public void setCpd(Cpd cpd) {
this.cpd = cpd;
}
public void setCpt(Cpt cpt) {
this.cpt = cpt;
}
public void setTrn(Trn trn) {
this.trn = trn;
}
public List<Pts> getPtsList() {
return ptsList;
}
public Cbe getNomcbe() {
return nomcbe;
}
public Cbb getNomcbb() {
return nomcbb;
}
public void setNomcbe(Cbe nomcbe) {
this.nomcbe = nomcbe;
}
public void setNomcbb(Cbb nomcbb) {
this.nomcbb = nomcbb;
}
public Cbe getMaxcbe() {
return maxcbe;
}
public Cbb getMaxcbb() {
return maxcbb;
}
public void setMaxcbe(Cbe maxcbe) {
this.maxcbe = maxcbe;
}
public void setMaxcbb(Cbb maxcbb) {
this.maxcbb = maxcbb;
}
public Pty getPty() {
return pty;
}
public Adr getAdr() {
return adr;
}
public Pta getPta() {
return pta;
}
public void setPtsList(List<Pts> ptsList) {
this.ptsList = ptsList;
}
public void setPty(Pty pty) {
this.pty = pty;
}
public void setAdr(Adr adr) {
this.adr = adr;
}
public void setPta(Pta pta) {
this.pta = pta;
}
}
...@@ -7,163 +7,163 @@ public class Cpt { ...@@ -7,163 +7,163 @@ public class Cpt {
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.INR * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.INR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String INR; private String inr;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.FLDMODBLK * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.FLDMODBLK
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String FLDMODBLK; private String fldmodblk;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.NARHIS * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.NARHIS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String NARHIS; private String narhis;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.CONTAG72 * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.CONTAG72
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String CONTAG72; private String contag72;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.CONTAG79 * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.CONTAG79
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String CONTAG79; private String contag79;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.CONTAG70 * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.CONTAG70
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String CONTAG70; private String contag70;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.REMARK * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.REMARK
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String REMARK; private String remark;
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.INR * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.INR
* @return the value of CPT.INR * @return the value of CPT.INR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getINR() { public String getInr() {
return INR; return inr;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.INR * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.INR
* @param INR the value for CPT.INR * @param inr the value for CPT.INR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setINR(String INR) { public void setInr(String inr) {
this.INR = INR; this.inr = inr;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.FLDMODBLK * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.FLDMODBLK
* @return the value of CPT.FLDMODBLK * @return the value of CPT.FLDMODBLK
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getFLDMODBLK() { public String getFldmodblk() {
return FLDMODBLK; return fldmodblk;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.FLDMODBLK * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.FLDMODBLK
* @param FLDMODBLK the value for CPT.FLDMODBLK * @param fldmodblk the value for CPT.FLDMODBLK
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setFLDMODBLK(String FLDMODBLK) { public void setFldmodblk(String fldmodblk) {
this.FLDMODBLK = FLDMODBLK; this.fldmodblk = fldmodblk;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.NARHIS * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.NARHIS
* @return the value of CPT.NARHIS * @return the value of CPT.NARHIS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getNARHIS() { public String getNarhis() {
return NARHIS; return narhis;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.NARHIS * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.NARHIS
* @param NARHIS the value for CPT.NARHIS * @param narhis the value for CPT.NARHIS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setNARHIS(String NARHIS) { public void setNarhis(String narhis) {
this.NARHIS = NARHIS; this.narhis = narhis;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.CONTAG72 * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.CONTAG72
* @return the value of CPT.CONTAG72 * @return the value of CPT.CONTAG72
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getCONTAG72() { public String getContag72() {
return CONTAG72; return contag72;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.CONTAG72 * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.CONTAG72
* @param CONTAG72 the value for CPT.CONTAG72 * @param contag72 the value for CPT.CONTAG72
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setCONTAG72(String CONTAG72) { public void setContag72(String contag72) {
this.CONTAG72 = CONTAG72; this.contag72 = contag72;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.CONTAG79 * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.CONTAG79
* @return the value of CPT.CONTAG79 * @return the value of CPT.CONTAG79
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getCONTAG79() { public String getContag79() {
return CONTAG79; return contag79;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.CONTAG79 * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.CONTAG79
* @param CONTAG79 the value for CPT.CONTAG79 * @param contag79 the value for CPT.CONTAG79
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setCONTAG79(String CONTAG79) { public void setContag79(String contag79) {
this.CONTAG79 = CONTAG79; this.contag79 = contag79;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.CONTAG70 * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.CONTAG70
* @return the value of CPT.CONTAG70 * @return the value of CPT.CONTAG70
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getCONTAG70() { public String getContag70() {
return CONTAG70; return contag70;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.CONTAG70 * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.CONTAG70
* @param CONTAG70 the value for CPT.CONTAG70 * @param contag70 the value for CPT.CONTAG70
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setCONTAG70(String CONTAG70) { public void setContag70(String contag70) {
this.CONTAG70 = CONTAG70; this.contag70 = contag70;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.REMARK * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.REMARK
* @return the value of CPT.REMARK * @return the value of CPT.REMARK
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getREMARK() { public String getRemark() {
return REMARK; return remark;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.REMARK * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.REMARK
* @param REMARK the value for CPT.REMARK * @param remark the value for CPT.REMARK
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setREMARK(String REMARK) { public void setRemark(String remark) {
this.REMARK = REMARK; this.remark = remark;
} }
} }
\ No newline at end of file
...@@ -6,186 +6,186 @@ public class Ptm { ...@@ -6,186 +6,186 @@ public class Ptm {
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.INR * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.INR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String INR; private String inr;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.PTAINR * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.PTAINR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String PTAINR; private String ptainr;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.CORTYP * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.CORTYP
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String CORTYP; private String cortyp;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.CORADR * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.CORADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String CORADR; private String coradr;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.AUTFLG * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.AUTFLG
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String AUTFLG; private String autflg;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.AUTDET * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.AUTDET
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String AUTDET; private String autdet;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.VER * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.VER
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String VER; private String ver;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.ETGEXTKEY * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.ETGEXTKEY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
private String ETGEXTKEY; private String etgextkey;
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.INR * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.INR
* @return the value of PTM.INR * @return the value of PTM.INR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getINR() { public String getInr() {
return INR; return inr;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.INR * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.INR
* @param INR the value for PTM.INR * @param inr the value for PTM.INR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setINR(String INR) { public void setInr(String inr) {
this.INR = INR; this.inr = inr;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.PTAINR * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.PTAINR
* @return the value of PTM.PTAINR * @return the value of PTM.PTAINR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getPTAINR() { public String getPtainr() {
return PTAINR; return ptainr;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.PTAINR * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.PTAINR
* @param PTAINR the value for PTM.PTAINR * @param ptainr the value for PTM.PTAINR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setPTAINR(String PTAINR) { public void setPtainr(String ptainr) {
this.PTAINR = PTAINR; this.ptainr = ptainr;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.CORTYP * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.CORTYP
* @return the value of PTM.CORTYP * @return the value of PTM.CORTYP
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getCORTYP() { public String getCortyp() {
return CORTYP; return cortyp;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.CORTYP * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.CORTYP
* @param CORTYP the value for PTM.CORTYP * @param cortyp the value for PTM.CORTYP
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setCORTYP(String CORTYP) { public void setCortyp(String cortyp) {
this.CORTYP = CORTYP; this.cortyp = cortyp;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.CORADR * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.CORADR
* @return the value of PTM.CORADR * @return the value of PTM.CORADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getCORADR() { public String getCoradr() {
return CORADR; return coradr;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.CORADR * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.CORADR
* @param CORADR the value for PTM.CORADR * @param coradr the value for PTM.CORADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setCORADR(String CORADR) { public void setCoradr(String coradr) {
this.CORADR = CORADR; this.coradr = coradr;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.AUTFLG * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.AUTFLG
* @return the value of PTM.AUTFLG * @return the value of PTM.AUTFLG
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getAUTFLG() { public String getAutflg() {
return AUTFLG; return autflg;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.AUTFLG * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.AUTFLG
* @param AUTFLG the value for PTM.AUTFLG * @param autflg the value for PTM.AUTFLG
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setAUTFLG(String AUTFLG) { public void setAutflg(String autflg) {
this.AUTFLG = AUTFLG; this.autflg = autflg;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.AUTDET * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.AUTDET
* @return the value of PTM.AUTDET * @return the value of PTM.AUTDET
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getAUTDET() { public String getAutdet() {
return AUTDET; return autdet;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.AUTDET * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.AUTDET
* @param AUTDET the value for PTM.AUTDET * @param autdet the value for PTM.AUTDET
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setAUTDET(String AUTDET) { public void setAutdet(String autdet) {
this.AUTDET = AUTDET; this.autdet = autdet;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.VER * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.VER
* @return the value of PTM.VER * @return the value of PTM.VER
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getVER() { public String getVer() {
return VER; return ver;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.VER * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.VER
* @param VER the value for PTM.VER * @param ver the value for PTM.VER
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setVER(String VER) { public void setVer(String ver) {
this.VER = VER; this.ver = ver;
} }
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.ETGEXTKEY * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.ETGEXTKEY
* @return the value of PTM.ETGEXTKEY * @return the value of PTM.ETGEXTKEY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public String getETGEXTKEY() { public String getEtgextkey() {
return ETGEXTKEY; return etgextkey;
} }
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.ETGEXTKEY * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.ETGEXTKEY
* @param ETGEXTKEY the value for PTM.ETGEXTKEY * @param etgextkey the value for PTM.ETGEXTKEY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/ */
public void setETGEXTKEY(String ETGEXTKEY) { public void setEtgextkey(String etgextkey) {
this.ETGEXTKEY = ETGEXTKEY; this.etgextkey = etgextkey;
} }
} }
\ No newline at end of file
package com.brilliance.remit.db.model;
public class Tst {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TST.INR
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
private String inr;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TST.NAM
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
private String nam;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TST.PWD
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
private String pwd;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TST.CHNNAM
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
private String chnnam;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TST.USRLEV
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
private String usrlev;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TST.BCHINR
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
private String bchinr;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TST.INR
*
* @return the value of TST.INR
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
public String getInr() {
return inr;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TST.INR
*
* @param inr the value for TST.INR
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
public void setInr(String inr) {
this.inr = inr;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TST.NAM
*
* @return the value of TST.NAM
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
public String getNam() {
return nam;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TST.NAM
*
* @param nam the value for TST.NAM
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
public void setNam(String nam) {
this.nam = nam;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TST.PWD
*
* @return the value of TST.PWD
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
public String getPwd() {
return pwd;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TST.PWD
*
* @param pwd the value for TST.PWD
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
public void setPwd(String pwd) {
this.pwd = pwd;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TST.CHNNAM
*
* @return the value of TST.CHNNAM
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
public String getChnnam() {
return chnnam;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TST.CHNNAM
*
* @param chnnam the value for TST.CHNNAM
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
public void setChnnam(String chnnam) {
this.chnnam = chnnam;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TST.USRLEV
*
* @return the value of TST.USRLEV
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
public String getUsrlev() {
return usrlev;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TST.USRLEV
*
* @param usrlev the value for TST.USRLEV
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
public void setUsrlev(String usrlev) {
this.usrlev = usrlev;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TST.BCHINR
*
* @return the value of TST.BCHINR
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
public String getBchinr() {
return bchinr;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TST.BCHINR
*
* @param bchinr the value for TST.BCHINR
*
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
public void setBchinr(String bchinr) {
this.bchinr = bchinr;
}
}
\ No newline at end of file
package com.brilliance.remit.db.model; package com.brilliance.remit.db.model;
public class Usr { public class Usr {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column USR.INR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
private String INR;
/** /**
* * This field was generated by MyBatis Generator. This field corresponds to the database column USR.INR
* This field was generated by MyBatis Generator. * @mbggenerated Thu Dec 20 10:36:40 CST 2018
* This field corresponds to the database column USR.NAM */
* private String inr;
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 /**
*/ * This field was generated by MyBatis Generator. This field corresponds to the database column USR.NAM
private String NAM; * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
/** private String nam;
* /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator. This field corresponds to the database column USR.PWD
* This field corresponds to the database column USR.PWD * @mbggenerated Thu Dec 20 10:36:40 CST 2018
* */
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 private String pwd;
*/ /**
private String PWD; * This field was generated by MyBatis Generator. This field corresponds to the database column USR.CHNNAM
* @mbggenerated Thu Dec 20 10:36:40 CST 2018
/** */
* private String chnnam;
* This field was generated by MyBatis Generator. /**
* This field corresponds to the database column USR.CHNNAM * This field was generated by MyBatis Generator. This field corresponds to the database column USR.USRLEV
* * @mbggenerated Thu Dec 20 10:36:40 CST 2018
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 */
*/ private String usrlev;
private String CHNNAM; /**
* This field was generated by MyBatis Generator. This field corresponds to the database column USR.BCHINR
/** * @mbggenerated Thu Dec 20 10:36:40 CST 2018
* */
* This field was generated by MyBatis Generator. private String bchinr;
* This field corresponds to the database column USR.USRLEV
* /**
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * This method was generated by MyBatis Generator. This method returns the value of the database column USR.INR
*/ * @return the value of USR.INR
private String USRLEV; * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
/** public String getInr() {
* return inr;
* This field was generated by MyBatis Generator. }
* This field corresponds to the database column USR.BCHINR
* /**
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * This method was generated by MyBatis Generator. This method sets the value of the database column USR.INR
*/ * @param inr the value for USR.INR
private String BCHINR; * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
/** public void setInr(String inr) {
* This method was generated by MyBatis Generator. this.inr = inr;
* This method returns the value of the database column USR.INR }
*
* @return the value of USR.INR /**
* * This method was generated by MyBatis Generator. This method returns the value of the database column USR.NAM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @return the value of USR.NAM
*/ * @mbggenerated Thu Dec 20 10:36:40 CST 2018
public String getINR() { */
return INR; public String getNam() {
} return nam;
}
/**
* This method was generated by MyBatis Generator. /**
* This method sets the value of the database column USR.INR * This method was generated by MyBatis Generator. This method sets the value of the database column USR.NAM
* * @param nam the value for USR.NAM
* @param INR the value for USR.INR * @mbggenerated Thu Dec 20 10:36:40 CST 2018
* */
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 public void setNam(String nam) {
*/ this.nam = nam;
public void setINR(String INR) { }
this.INR = INR;
} /**
* This method was generated by MyBatis Generator. This method returns the value of the database column USR.PWD
/** * @return the value of USR.PWD
* This method was generated by MyBatis Generator. * @mbggenerated Thu Dec 20 10:36:40 CST 2018
* This method returns the value of the database column USR.NAM */
* public String getPwd() {
* @return the value of USR.NAM return pwd;
* }
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ /**
public String getNAM() { * This method was generated by MyBatis Generator. This method sets the value of the database column USR.PWD
return NAM; * @param pwd the value for USR.PWD
} * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
/** public void setPwd(String pwd) {
* This method was generated by MyBatis Generator. this.pwd = pwd;
* This method sets the value of the database column USR.NAM }
*
* @param NAM the value for USR.NAM /**
* * This method was generated by MyBatis Generator. This method returns the value of the database column USR.CHNNAM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @return the value of USR.CHNNAM
*/ * @mbggenerated Thu Dec 20 10:36:40 CST 2018
public void setNAM(String NAM) { */
this.NAM = NAM; public String getChnnam() {
} return chnnam;
}
/**
* This method was generated by MyBatis Generator. /**
* This method returns the value of the database column USR.PWD * This method was generated by MyBatis Generator. This method sets the value of the database column USR.CHNNAM
* * @param chnnam the value for USR.CHNNAM
* @return the value of USR.PWD * @mbggenerated Thu Dec 20 10:36:40 CST 2018
* */
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 public void setChnnam(String chnnam) {
*/ this.chnnam = chnnam;
public String getPWD() { }
return PWD;
} /**
* This method was generated by MyBatis Generator. This method returns the value of the database column USR.USRLEV
/** * @return the value of USR.USRLEV
* This method was generated by MyBatis Generator. * @mbggenerated Thu Dec 20 10:36:40 CST 2018
* This method sets the value of the database column USR.PWD */
* public String getUsrlev() {
* @param PWD the value for USR.PWD return usrlev;
* }
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ /**
public void setPWD(String PWD) { * This method was generated by MyBatis Generator. This method sets the value of the database column USR.USRLEV
this.PWD = PWD; * @param usrlev the value for USR.USRLEV
} * @mbggenerated Thu Dec 20 10:36:40 CST 2018
*/
/** public void setUsrlev(String usrlev) {
* This method was generated by MyBatis Generator. this.usrlev = usrlev;
* This method returns the value of the database column USR.CHNNAM }
*
* @return the value of USR.CHNNAM /**
* * This method was generated by MyBatis Generator. This method returns the value of the database column USR.BCHINR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 * @return the value of USR.BCHINR
*/ * @mbggenerated Thu Dec 20 10:36:40 CST 2018
public String getCHNNAM() { */
return CHNNAM; public String getBchinr() {
} return bchinr;
}
/**
* This method was generated by MyBatis Generator. /**
* This method sets the value of the database column USR.CHNNAM * This method was generated by MyBatis Generator. This method sets the value of the database column USR.BCHINR
* * @param bchinr the value for USR.BCHINR
* @param CHNNAM the value for USR.CHNNAM * @mbggenerated Thu Dec 20 10:36:40 CST 2018
* */
* @mbggenerated Tue Dec 18 10:11:00 CST 2018 public void setBchinr(String bchinr) {
*/ this.bchinr = bchinr;
public void setCHNNAM(String CHNNAM) { }
this.CHNNAM = CHNNAM;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column USR.USRLEV
*
* @return the value of USR.USRLEV
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public String getUSRLEV() {
return USRLEV;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column USR.USRLEV
*
* @param USRLEV the value for USR.USRLEV
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public void setUSRLEV(String USRLEV) {
this.USRLEV = USRLEV;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column USR.BCHINR
*
* @return the value of USR.BCHINR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public String getBCHINR() {
return BCHINR;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column USR.BCHINR
*
* @param BCHINR the value for USR.BCHINR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public void setBCHINR(String BCHINR) {
this.BCHINR = BCHINR;
}
} }
\ No newline at end of file
package com.brilliance.remit.listen;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Service;
@Service
public class StartupListener implements ApplicationListener<ContextRefreshedEvent> {
@Override
public void onApplicationEvent(ContextRefreshedEvent evt) {
// 防止启动两次
if (evt.getApplicationContext().getParent() != null) {
buildIndex();
}
}
private void buildIndex() {
System.out.println("********************build index");
}
}
package com.brilliance.remit.service;
import com.brilliance.remit.db.model.Adr;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 22:06:10
**/
public interface AdrService {
public boolean save(Adr adr);
}
package com.brilliance.remit.service; package com.brilliance.remit.service;
import com.brilliance.remit.db.model.Bch;
/** /**
This java was generated by Auto Generator. This java was generated by Auto Generator.
created at time 2018-12-18 10:15:14 created at time 2018-12-18 22:06:09
**/ **/
public interface BchService { public interface BchService {
public void sample(); public boolean save(Bch bch);
} }
package com.brilliance.remit.service;
import com.brilliance.remit.db.model.Cbb;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 22:06:10
**/
public interface CbbService {
public boolean save(Cbb cbb);
}
package com.brilliance.remit.service;
import com.brilliance.remit.db.model.Cbe;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 22:06:10
**/
public interface CbeService {
public boolean save(Cbe cbe);
}
...@@ -2,5 +2,5 @@ package com.brilliance.remit.service; ...@@ -2,5 +2,5 @@ package com.brilliance.remit.service;
public interface CntService { public interface CntService {
int counter(String nam); String counter(String nam);
} }
package com.brilliance.remit.service; package com.brilliance.remit.service;
import com.brilliance.remit.db.model.Cpd;
/** /**
This java was generated by Auto Generator. This java was generated by Auto Generator.
created at time 2018-12-17 17:38:41 created at time 2018-12-18 22:06:10
**/ **/
public interface CpdService { public interface CpdService {
public void sample(); public boolean save(Cpd cpd);
} }
package com.brilliance.remit.service;
import com.brilliance.remit.db.model.Cpt;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 22:06:10
**/
public interface CptService {
public boolean save(Cpt cpt);
}
package com.brilliance.remit.service;
import com.brilliance.remit.db.model.Cpdgrp;
import com.brilliance.remit.db.model.Pta;
/**
* This java was generated by Auto Generator. created at time 2018-12-18
* 22:06:10
**/
public interface PtaService {
public boolean save(Pta pta);
public Cpdgrp custormerInfo(String extkey);
public Cpdgrp bankInfo(String extkey);
}
package com.brilliance.remit.service;
import com.brilliance.remit.db.model.Pts;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 22:06:10
**/
public interface PtsService {
public boolean save(Pts pts);
}
package com.brilliance.remit.service;
import java.util.List;
import com.brilliance.remit.db.model.Pty;
/**
* This java was generated by Auto Generator. created at time 2018-12-18
* 22:06:10
**/
public interface PtyService {
public boolean save(Pty pty);
public List<Pty> ptyInfos(String extkey, String ptytyp);
}
package com.brilliance.remit.service;
import com.brilliance.remit.db.model.Trn;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 22:06:10
**/
public interface TrnService {
public boolean save(Trn trn);
}
...@@ -4,10 +4,12 @@ import com.brilliance.remit.db.model.Usr; ...@@ -4,10 +4,12 @@ import com.brilliance.remit.db.model.Usr;
/** /**
* This java was generated by Auto Generator. created at time 2018-12-18 * This java was generated by Auto Generator. created at time 2018-12-18
* 10:15:14 * 22:00:32
**/ **/
public interface UsrService { public interface UsrService {
public boolean save(Usr usr);
public Usr getUserByUserId(String userId); public Usr getUserByUserId(String userId);
} }
package com.brilliance.remit.service.imp;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.brilliance.remit.service.AdrService;
import com.brilliance.remit.db.dao.AdrMapper;
import com.brilliance.remit.db.model.Adr;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 22:06:10
**/
@Service("adrService")
public class AdrServiceImp implements AdrService {
@Autowired
private AdrMapper adrMapper;
@Resource(name = "txManager")
private DataSourceTransactionManager transactionManager;
private static Log log = LogFactory.getLog(AdrServiceImp.class);
@Override
public boolean save(Adr adr) {
// 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try {
// you can do business hanle herer
adrMapper.insert(adr);
transactionManager.commit(status);
return true;
} catch (Exception e) {
log.error("error", e);
transactionManager.rollback(status);
return false;
}
}
}
...@@ -6,18 +6,15 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -6,18 +6,15 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager; import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus; import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil; import com.brilliance.remit.common.util.DbUtil;
import com.brilliance.remit.common.util.SpringContextUtil;
import com.brilliance.remit.service.CntService;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import com.brilliance.remit.service.BchService; import com.brilliance.remit.service.BchService;
import com.brilliance.remit.db.dao.BchMapper; import com.brilliance.remit.db.dao.BchMapper;
import com.brilliance.remit.service.CntService; import com.brilliance.remit.db.model.Bch;
/** /**
This java was generated by Auto Generator. This java was generated by Auto Generator.
created at time 2018-12-18 10:15:14 created at time 2018-12-18 22:06:10
**/ **/
@Service("bchService") @Service("bchService")
...@@ -30,18 +27,18 @@ public class BchServiceImp implements BchService { ...@@ -30,18 +27,18 @@ public class BchServiceImp implements BchService {
private static Log log = LogFactory.getLog(BchServiceImp.class); private static Log log = LogFactory.getLog(BchServiceImp.class);
@Override @Override
public void sample() { public boolean save(Bch bch) {
CntService cntService = (CntService) SpringContextUtil.getApplicationContext().getBean(CntService.class);
// 事务操作 // 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition()); TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try { try {
// you can do business hanle herer // you can do business hanle herer
bchMapper.insert(bch);
transactionManager.commit(status); transactionManager.commit(status);
// get inr method return true;
cntService.counter("XXX");
} catch (Exception e) { } catch (Exception e) {
log.error("error", e); log.error("error", e);
transactionManager.rollback(status); transactionManager.rollback(status);
return false;
} }
} }
......
package com.brilliance.remit.service.imp;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.brilliance.remit.service.CbbService;
import com.brilliance.remit.db.dao.CbbMapper;
import com.brilliance.remit.db.model.Cbb;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 22:06:10
**/
@Service("cbbService")
public class CbbServiceImp implements CbbService {
@Autowired
private CbbMapper cbbMapper;
@Resource(name = "txManager")
private DataSourceTransactionManager transactionManager;
private static Log log = LogFactory.getLog(CbbServiceImp.class);
@Override
public boolean save(Cbb cbb) {
// 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try {
// you can do business hanle herer
cbbMapper.insert(cbb);
transactionManager.commit(status);
return true;
} catch (Exception e) {
log.error("error", e);
transactionManager.rollback(status);
return false;
}
}
}
package com.brilliance.remit.service.imp;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.brilliance.remit.service.CbeService;
import com.brilliance.remit.db.dao.CbeMapper;
import com.brilliance.remit.db.model.Cbe;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 22:06:10
**/
@Service("cbeService")
public class CbeServiceImp implements CbeService {
@Autowired
private CbeMapper cbeMapper;
@Resource(name = "txManager")
private DataSourceTransactionManager transactionManager;
private static Log log = LogFactory.getLog(CbeServiceImp.class);
@Override
public boolean save(Cbe cbe) {
// 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try {
// you can do business hanle herer
cbeMapper.insert(cbe);
transactionManager.commit(status);
return true;
} catch (Exception e) {
log.error("error", e);
transactionManager.rollback(status);
return false;
}
}
}
...@@ -16,20 +16,19 @@ public class CntServiceImpl implements CntService { ...@@ -16,20 +16,19 @@ public class CntServiceImpl implements CntService {
private CouMapper couMapper; private CouMapper couMapper;
@Override @Override
public synchronized int counter(String nam) { public synchronized String counter(String nam) {
Cou cnt = couMapper.selectByPrimaryKey(nam); Cou cnt = couMapper.selectByPrimaryKey(nam);
if (cnt == null) { if (cnt == null) {
cnt = new Cou(); cnt = new Cou();
cnt.setCOUNAM(nam); cnt.setCounam(nam);
cnt.setCOUSTP(new BigDecimal(1)); cnt.setCoustp(new BigDecimal(1));
cnt.setCOUVAL(new BigDecimal(1)); cnt.setCouval(new BigDecimal(1));
couMapper.insert(cnt); couMapper.insert(cnt);
} else { } else {
cnt.setCOUVAL(new BigDecimal(cnt.getCOUVAL().intValue() + 1)); cnt.setCouval(new BigDecimal(cnt.getCouval().intValue() + 1));
couMapper.updateByPrimaryKey(cnt); couMapper.updateByPrimaryKey(cnt);
} }
return cnt.getCOUVAL().intValue(); return String.format("%08d", cnt.getCouval().intValue());
} }
} }
...@@ -6,18 +6,15 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -6,18 +6,15 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager; import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus; import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil; import com.brilliance.remit.common.util.DbUtil;
import com.brilliance.remit.common.util.SpringContextUtil;
import com.brilliance.remit.service.CntService;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import com.brilliance.remit.service.CpdService; import com.brilliance.remit.service.CpdService;
import com.brilliance.remit.db.dao.CpdMapper; import com.brilliance.remit.db.dao.CpdMapper;
import com.brilliance.remit.service.CntService; import com.brilliance.remit.db.model.Cpd;
/** /**
This java was generated by Auto Generator. This java was generated by Auto Generator.
created at time 2018-12-17 17:38:41 created at time 2018-12-18 22:06:10
**/ **/
@Service("cpdService") @Service("cpdService")
...@@ -30,18 +27,18 @@ public class CpdServiceImp implements CpdService { ...@@ -30,18 +27,18 @@ public class CpdServiceImp implements CpdService {
private static Log log = LogFactory.getLog(CpdServiceImp.class); private static Log log = LogFactory.getLog(CpdServiceImp.class);
@Override @Override
public void sample() { public boolean save(Cpd cpd) {
CntService cntService = (CntService) SpringContextUtil.getApplicationContext().getBean(CntService.class);
// 事务操作 // 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition()); TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try { try {
// you can do business hanle herer // you can do business hanle herer
cpdMapper.insert(cpd);
transactionManager.commit(status); transactionManager.commit(status);
// get inr method return true;
cntService.counter("XXX");
} catch (Exception e) { } catch (Exception e) {
log.error("error", e); log.error("error", e);
transactionManager.rollback(status); transactionManager.rollback(status);
return false;
} }
} }
......
package com.brilliance.remit.service.imp;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.brilliance.remit.service.CptService;
import com.brilliance.remit.db.dao.CptMapper;
import com.brilliance.remit.db.model.Cpt;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 22:06:10
**/
@Service("cptService")
public class CptServiceImp implements CptService {
@Autowired
private CptMapper cptMapper;
@Resource(name = "txManager")
private DataSourceTransactionManager transactionManager;
private static Log log = LogFactory.getLog(CptServiceImp.class);
@Override
public boolean save(Cpt cpt) {
// 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try {
// you can do business hanle herer
cptMapper.insert(cpt);
transactionManager.commit(status);
return true;
} catch (Exception e) {
log.error("error", e);
transactionManager.rollback(status);
return false;
}
}
}
package com.brilliance.remit.service.imp;
import javax.annotation.Resource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil;
import com.brilliance.remit.db.dao.AdrMapper;
import com.brilliance.remit.db.dao.PtaMapper;
import com.brilliance.remit.db.dao.PtyMapper;
import com.brilliance.remit.db.model.Adr;
import com.brilliance.remit.db.model.Cpdgrp;
import com.brilliance.remit.db.model.Pta;
import com.brilliance.remit.db.model.Pty;
import com.brilliance.remit.service.PtaService;
/**
* This java was generated by Auto Generator. created at time 2018-12-18
* 22:06:10
**/
@Service("ptaService")
public class PtaServiceImp implements PtaService {
@Autowired
private PtaMapper ptaMapper;
@Autowired
private PtyMapper ptyMapper;
@Autowired
private AdrMapper adrMapper;
@Resource(name = "txManager")
private DataSourceTransactionManager transactionManager;
private static Log log = LogFactory.getLog(PtaServiceImp.class);
@Override
public boolean save(Pta pta) {
// 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try {
// you can do business hanle herer
ptaMapper.insert(pta);
transactionManager.commit(status);
return true;
} catch (Exception e) {
log.error("error", e);
transactionManager.rollback(status);
return false;
}
}
@Override
public Cpdgrp custormerInfo(String extkey) {
Cpdgrp cpdgrp = new Cpdgrp();
Pta pta = ptaMapper.selectCustomerInfo(extkey);
if (pta == null)
return null;
Adr adr = adrMapper.selectByPrimaryKey(pta.getObjinr());
Pty pty = ptyMapper.selectByPrimaryKey(pta.getPtyinr());
cpdgrp.setPta(pta);
cpdgrp.setAdr(adr);
cpdgrp.setPty(pty);
return cpdgrp;
}
@Override
public Cpdgrp bankInfo(String extkey) {
Cpdgrp cpdgrp = new Cpdgrp();
Pta pta = ptaMapper.selectBankInfo(extkey);
Adr adr = adrMapper.selectByPrimaryKey(pta.getObjinr());
Pty pty = ptyMapper.selectByPrimaryKey(pta.getPtyinr());
cpdgrp.setPta(pta);
cpdgrp.setAdr(adr);
cpdgrp.setPty(pty);
return cpdgrp;
}
}
package com.brilliance.remit.service.imp;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.brilliance.remit.service.PtsService;
import com.brilliance.remit.db.dao.PtsMapper;
import com.brilliance.remit.db.model.Pts;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 22:06:10
**/
@Service("ptsService")
public class PtsServiceImp implements PtsService {
@Autowired
private PtsMapper ptsMapper;
@Resource(name = "txManager")
private DataSourceTransactionManager transactionManager;
private static Log log = LogFactory.getLog(PtsServiceImp.class);
@Override
public boolean save(Pts pts) {
// 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try {
// you can do business hanle herer
ptsMapper.insert(pts);
transactionManager.commit(status);
return true;
} catch (Exception e) {
log.error("error", e);
transactionManager.rollback(status);
return false;
}
}
}
package com.brilliance.remit.service.imp;
import java.util.List;
import javax.annotation.Resource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil;
import com.brilliance.remit.db.dao.PtyMapper;
import com.brilliance.remit.db.model.Pty;
import com.brilliance.remit.service.PtyService;
/**
* This java was generated by Auto Generator. created at time 2018-12-18
* 22:06:10
**/
@Service("ptyService")
public class PtyServiceImp implements PtyService {
@Autowired
private PtyMapper ptyMapper;
@Resource(name = "txManager")
private DataSourceTransactionManager transactionManager;
private static Log log = LogFactory.getLog(PtyServiceImp.class);
@Override
public boolean save(Pty pty) {
// 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try {
// you can do business hanle herer
ptyMapper.insert(pty);
transactionManager.commit(status);
return true;
} catch (Exception e) {
log.error("error", e);
transactionManager.rollback(status);
return false;
}
}
@Override
public List<Pty> ptyInfos(String extkey, String ptytyp) {
return ptyMapper.selectptyInfos(extkey, ptytyp);
}
}
package com.brilliance.remit.service.imp;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.brilliance.remit.service.TrnService;
import com.brilliance.remit.db.dao.TrnMapper;
import com.brilliance.remit.db.model.Trn;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 22:06:10
**/
@Service("trnService")
public class TrnServiceImp implements TrnService {
@Autowired
private TrnMapper trnMapper;
@Resource(name = "txManager")
private DataSourceTransactionManager transactionManager;
private static Log log = LogFactory.getLog(TrnServiceImp.class);
@Override
public boolean save(Trn trn) {
// 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try {
// you can do business hanle herer
trnMapper.insert(trn);
transactionManager.commit(status);
return true;
} catch (Exception e) {
log.error("error", e);
transactionManager.rollback(status);
return false;
}
}
}
...@@ -2,17 +2,21 @@ package com.brilliance.remit.service.imp; ...@@ -2,17 +2,21 @@ package com.brilliance.remit.service.imp;
import javax.annotation.Resource; import javax.annotation.Resource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager; import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil;
import com.brilliance.remit.db.dao.UsrMapper; import com.brilliance.remit.db.dao.UsrMapper;
import com.brilliance.remit.db.model.Usr; import com.brilliance.remit.db.model.Usr;
import com.brilliance.remit.service.UsrService; import com.brilliance.remit.service.UsrService;
/** /**
* This java was generated by Auto Generator. created at time 2018-12-18 * This java was generated by Auto Generator. created at time 2018-12-18
* 10:15:14 * 22:00:33
**/ **/
@Service("usrService") @Service("usrService")
...@@ -22,6 +26,23 @@ public class UsrServiceImp implements UsrService { ...@@ -22,6 +26,23 @@ public class UsrServiceImp implements UsrService {
@Resource(name = "txManager") @Resource(name = "txManager")
private DataSourceTransactionManager transactionManager; private DataSourceTransactionManager transactionManager;
private static Log log = LogFactory.getLog(UsrServiceImp.class);
@Override
public boolean save(Usr usr) {
// 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try {
// you can do business hanle herer
usrMapper.insert(usr);
transactionManager.commit(status);
return true;
} catch (Exception e) {
log.error("error", e);
transactionManager.rollback(status);
return false;
}
}
@Override @Override
public Usr getUserByUserId(String userId) { public Usr getUserByUserId(String userId) {
......
...@@ -34,3 +34,14 @@ BCHINR CHAR(8), ...@@ -34,3 +34,14 @@ BCHINR CHAR(8),
PRIMARY KEY (INR) PRIMARY KEY (INR)
); );
CREATE TABLE USR1 (
INR CHAR(8) NOT NULL,
NAM VARCHAR2(40),
PWD VARCHAR2(40),
CHNNAM VARCHAR2(40),
USRLEV CHAR(2),
BCHINR CHAR(8),
PRIMARY KEY (INR)
);
package com.brilliance.remit.service; package com.brilliance.remit.service;
import com.brilliance.remit.db.model.${entity.name};
/** /**
This java was generated by Auto Generator. This java was generated by Auto Generator.
created at time ${entity.date} created at time ${entity.date}
**/ **/
public interface ${entity.name}Service { public interface ${entity.name}Service {
public void sample(); public boolean save(${entity.name} ${entity.lowerName});
} }
...@@ -6,15 +6,12 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -6,15 +6,12 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager; import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus; import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil; import com.brilliance.remit.common.util.DbUtil;
import com.brilliance.remit.common.util.SpringContextUtil;
import com.brilliance.remit.service.CntService;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import com.brilliance.remit.service.${entity.name}Service; import com.brilliance.remit.service.${entity.name}Service;
import com.brilliance.remit.db.dao.${entity.name}Mapper; import com.brilliance.remit.db.dao.${entity.name}Mapper;
import com.brilliance.remit.service.CntService; import com.brilliance.remit.db.model.${entity.name};
/** /**
This java was generated by Auto Generator. This java was generated by Auto Generator.
created at time ${entity.date} created at time ${entity.date}
...@@ -30,18 +27,18 @@ public class ${entity.name}ServiceImp implements ${entity.name}Service { ...@@ -30,18 +27,18 @@ public class ${entity.name}ServiceImp implements ${entity.name}Service {
private static Log log = LogFactory.getLog(${entity.name}ServiceImp.class); private static Log log = LogFactory.getLog(${entity.name}ServiceImp.class);
@Override @Override
public void sample() { public boolean save(${entity.name} ${entity.lowerName}) {
CntService cntService = (CntService) SpringContextUtil.getApplicationContext().getBean(CntService.class);
// 事务操作 // 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition()); TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try { try {
// you can do business hanle herer // you can do business hanle herer
${entity.lowerName}Mapper.insert(${entity.lowerName});
transactionManager.commit(status); transactionManager.commit(status);
// get inr method return true;
cntService.counter("XXX");
} catch (Exception e) { } catch (Exception e) {
log.error("error", e); log.error("error", e);
transactionManager.rollback(status); transactionManager.rollback(status);
return false;
} }
} }
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context
...@@ -9,37 +7,58 @@ ...@@ -9,37 +7,58 @@
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd"> http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">
<!-- 自动扫描注解的bean  --> <!-- 自动扫描注解的bean  -->
<context:component-scan base-package="com.brilliance.remit.service"/> <context:component-scan base-package="com.brilliance.remit.service" />
<!-- 配置数据源  --> <!-- 配置数据源  -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
<property name="url" value="jdbc:oracle:thin:@172.17.2.4:1521:orcl"/> <property name="url" value="jdbc:oracle:thin:@172.17.2.4:1521:orcl" />
<property name="username" value="xxremit"/> <property name="username" value="xxremit" />
<property name="password" value="xxremit"/> <property name="password" value="xxremit" />
<property name="maxActive" value="60"/> <property name="maxActive" value="60" />
<property name="maxIdle" value="60"/> <property name="maxIdle" value="60" />
<property name="minIdle" value="5"/> <property name="minIdle" value="5" />
<property name="initialSize" value="1"/> <property name="initialSize" value="1" />
<property name="maxWait" value="30000"/> <property name="maxWait" value="30000" />
</bean> </bean>
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource"/> <property name="dataSource" ref="dataSource" />
<!-- mapperLocations配置**Mapper.xml文件位置  --> <!-- mapperLocations配置**Mapper.xml文件位置  -->
<property name="mapperLocations" value="classpath*:com/brilliance/remit/db/mapper/**/*.xml"/> <property name="mapperLocations" value="classpath*:com/brilliance/remit/db/mapper/**/*.xml" />
</bean> </bean>
<!-- 事务管理器  --> <!-- 事务管理器  -->
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" /> <property name="dataSource" ref="dataSource" />
</bean> </bean>
<bean id="SpringContextUtil" class="com.brilliance.remit.common.util.SpringContextUtil" scope="singleton"></bean> <bean id="SpringContextUtil" class="com.brilliance.remit.common.util.SpringContextUtil" scope="singleton"></bean>
<!-- 配置mapper对应的dao和mybatis工厂  --> <!-- 配置mapper对应的dao和mybatis工厂  -->
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="com.brilliance.remit.db.dao"/> <property name="basePackage" value="com.brilliance.remit.db.dao" />
<property name="sqlSessionFactoryBeanName" value="sqlSessionFactory"/> <property name="sqlSessionFactoryBeanName" value="sqlSessionFactory" />
</bean> </bean>
<bean id="startUpListener" class="com.brilliance.remit.listen.StartupListener"></bean>
<!-- 用于将对象转换为 JSON -->
<!-- <bean id="stringConverter" class="org.springframework.http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/plain;charset=UTF-8</value>
</list>
</property>
</bean>
<bean id="jsonConverter" class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"></bean>
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="messageConverters">
<list>
<ref bean="stringConverter" />
<ref bean="jsonConverter" />
</list>
</property>
</bean> -->
</beans> </beans>
\ No newline at end of file
...@@ -19,11 +19,10 @@ ...@@ -19,11 +19,10 @@
</mvc:interceptor> </mvc:interceptor>
<mvc:interceptor> <mvc:interceptor>
<mvc:mapping path="/**" /> <mvc:mapping path="/**" />
<mvc:exclude-mapping path="/login" /> <mvc:exclude-mapping path="/login" />
<bean class="com.brilliance.remit.common.jwt.TokenInterceptor"></bean> <bean class="com.brilliance.remit.common.jwt.TokenInterceptor"></bean>
</mvc:interceptor> </mvc:interceptor>
</mvc:interceptors> </mvc:interceptors>
<!-- 配置自动扫描的包 --> <!-- 配置自动扫描的包 -->
......
...@@ -20,8 +20,18 @@ public class Genarate { ...@@ -20,8 +20,18 @@ public class Genarate {
public static void main(String[] args) throws FileNotFoundException, IOException { public static void main(String[] args) throws FileNotFoundException, IOException {
String rootPath = "G:/work/cbpp/remit"; String rootPath = "G:/work/cbpp/remit";
List<String> list = new ArrayList<String>(); List<String> list = new ArrayList<String>();
list.add("usr");
list.add("bch"); list.add("bch");
list.add("cpd");
list.add("cpt");
list.add("trn");
list.add("pts");
list.add("cbb");
list.add("cbe");
list.add("pty");
list.add("pta");
list.add("adr");
for (int i = 0; i < list.size(); i++) { for (int i = 0; i < list.size(); i++) {
String name = list.get(i); String name = list.get(i);
name = name.substring(0, 1).toUpperCase() + name.substring(1); name = name.substring(0, 1).toUpperCase() + name.substring(1);
...@@ -31,7 +41,9 @@ public class Genarate { ...@@ -31,7 +41,9 @@ public class Genarate {
IOUtils.write(generateService(list.get(i), "service.vm").getBytes("utf-8"), new FileOutputStream(new File(servicePath))); IOUtils.write(generateService(list.get(i), "service.vm").getBytes("utf-8"), new FileOutputStream(new File(servicePath)));
IOUtils.write(generateService(list.get(i), "serviceImp.vm").getBytes("utf-8"), new FileOutputStream(new File(serivceImpPath))); IOUtils.write(generateService(list.get(i), "serviceImp.vm").getBytes("utf-8"), new FileOutputStream(new File(serivceImpPath)));
IOUtils.write(generateService(list.get(i), "controller.vm").getBytes("utf-8"), new FileOutputStream(new File(controllerPath))); // IOUtils.write(generateService(list.get(i),
// "controller.vm").getBytes("utf-8"), new FileOutputStream(new
// File(controllerPath)));
} }
} }
......
package com.brilliance.listen;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
//创建的类名根据需要定义,但一定要实现ServletContextListener接口
public class BeInterfaceListen implements ServletContextListener {
@Override
public void contextInitialized(ServletContextEvent arg0) {
// 这里可以放你要执行的代码或方法
}
@Override
public void contextDestroyed(ServletContextEvent arg0) {
}
}
汇出汇款主表 CPD CPT
业务流水表 TRN
角色信息 PTS
变动余额 CBE
余额 CBB
分录信息 GLE
境外汇款 DBB/境内汇款 DBE
手续费 FEP
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment