Commit 19d6865d by gechengyang

提交springboot+mybatis测试代码

parent b575638b
......@@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.1.RELEASE</version>
<version>2.5.12</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
......@@ -17,7 +17,7 @@
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<mybatis.spring-boot.version>1.3.0</mybatis.spring-boot.version>
<mybatis.spring-boot.version>2.2.0</mybatis.spring-boot.version>
<mysql.connector.version>5.1.46</mysql.connector.version>
<alibaba.druid.version>1.1.6</alibaba.druid.version>
<page.helper.version>1.2.5</page.helper.version>
......@@ -90,6 +90,22 @@
<artifactId>persistence-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>commons-dbutils</groupId>
<artifactId>commons-dbutils</artifactId>
<version>1.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>2.5.10</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>2.2.5.RELEASE</version>
</dependency>
</dependencies>
......@@ -101,7 +117,8 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.1.1.RELEASE</version>
<!-- <version>2.1.1.RELEASE</version>-->
<version>2.5.12</version>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
......
package com.brilliance.controller;
import com.brilliance.entity.Smqinf;
import com.brilliance.mapper.SmqinfMapper;
import com.brilliance.vo.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
/*
*
* @Description
* @Author gechengyang
* @Date 2023/10/23
*/
@RestController
@RequestMapping("/smqinf")
public class SmqInfController {
private Logger logger = LoggerFactory.getLogger(this.getClass());
@Autowired
private SmqinfMapper smqinfMapper;
/* @Autowired
public SmqInfController(SmqinfMapper smqinfMapper) {
this.smqinfMapper = smqinfMapper;
}
*/
@GetMapping("/get")
//localhost:8085/smqinf/get?id=123&nam=zhangsan
public Result testParams(@RequestParam("id") String id,@RequestParam("nam") String paramName){
System.out.println("id==="+id);
System.out.println("name==="+paramName);
return new Result(id+"..."+paramName);
}
@GetMapping("/get1")
//localhost:8085/smqinf/get?id=123&nam=zhangsan
public Result testParams1(@RequestParam Map<String,Object> requestMap){
System.out.println("requesMap=="+requestMap);
return new Result(requestMap);
}
@PostMapping("/post2/{inr}/{nam}")
public Result testPathVariable(@PathVariable String inr,@PathVariable String nam) {
Smqinf smqinf=smqinfMapper.selectByPrimaryKey(inr);
return new Result(smqinf);
}
@PostMapping("/post")
public Result getSmqInfo(@RequestBody Smqinf requestSmqInf) {
String inr=requestSmqInf.getInr();
System.out.println("test...test...");
Smqinf smqinf=smqinfMapper.selectByPrimaryKey(inr);
return new Result(smqinf);
}
// 请求头
@GetMapping("/header")
public String getWithHeader(@RequestHeader("tokenid") String header) {
return "Header: " + header;
}
@GetMapping("/header1")
public Map getWithHeader(@RequestHeader Map map) {
return map;
}
}
package com.brilliance.controller;
import com.brilliance.entity.Smqlck;
import com.brilliance.service.SmqlckService;
import com.brilliance.vo.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Optional;
/*
*
* @Description
* @Author gechengyang
* @Date 2023/10/23
*/
@RestController
@RequestMapping("/smqlck")
public class SmqLckController {
private Logger logger = LoggerFactory.getLogger(this.getClass());
@Autowired
private SmqlckService smqlckService;
@PostMapping("/post")
public Result getSmqInfo(@RequestBody Smqlck smqlck) {
String inr=smqlck.getInr();
smqlckService.createLck(smqlck);
System.out.println("test...test...");
return new Result();
}
}
package com.brilliance.controller;
import com.brilliance.entity.Mps;
import com.brilliance.service.LckService;
import com.brilliance.service.MpsService;
import com.brilliance.vo.Result;
import org.apache.commons.lang.reflect.MethodUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;
import java.util.List;
/**
* @Description
* @Author gechengyang
* @Date 2023/10/23
*/
@RestController
@RequestMapping("mps")
public class XxxtskController {
private Logger logger = LoggerFactory.getLogger(this.getClass());
@Autowired
private MpsService mpsService;
@Autowired
private LckService lckService;
@PostMapping("xxxtsk")
public Result userList() {
List<Mps> mpsList = mpsService.getMpsList("XXX",">","A",new Date(),"sttdattim ASC");
for(Mps mps :mpsList){
}
Mps mps=new Mps();
String inr="CTEST001";
mps.setInr(inr);
mps.setChncod("SWT");
mps.setDir(">");
mps.setLstdattim(new Date());
mps.setRcvdattim(new Date());
mps.setSrcchncod("CTS");
mps.setSta("W");
mps.setSttdattim(new Date());
mps.setIsmx(0L);
//mpsService.test();
// mpsService.insert(mps);
// mpsService.delete(inr);
return new Result(mpsList);
}
public static void main(String[] args) {
Mps mps=new Mps();
mps.setInr("TEST0001");
System.out.println(mps.getClass().getSimpleName().toLowerCase());
try {
Object inrObj = MethodUtils.invokeMethod(mps, "getInr",null);
System.out.println(inrObj);
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
}
}
}
package com.brilliance.entity;
public class Clsmsg {
private String inr;
private String src;
private String des;
private String app;
private String msgno;
private String msgid;
private String msgref;
private String workdate;
private String reserve;
private String msgtyp;
private String gid;
private String sendid;
private String recvid;
private String snddattim;
private String vesion;
public String getInr() {
return inr;
}
public void setInr(String inr) {
this.inr = inr == null ? null : inr.trim();
}
public String getSrc() {
return src;
}
public void setSrc(String src) {
this.src = src == null ? null : src.trim();
}
public String getDes() {
return des;
}
public void setDes(String des) {
this.des = des == null ? null : des.trim();
}
public String getApp() {
return app;
}
public void setApp(String app) {
this.app = app == null ? null : app.trim();
}
public String getMsgno() {
return msgno;
}
public void setMsgno(String msgno) {
this.msgno = msgno == null ? null : msgno.trim();
}
public String getMsgid() {
return msgid;
}
public void setMsgid(String msgid) {
this.msgid = msgid == null ? null : msgid.trim();
}
public String getMsgref() {
return msgref;
}
public void setMsgref(String msgref) {
this.msgref = msgref == null ? null : msgref.trim();
}
public String getWorkdate() {
return workdate;
}
public void setWorkdate(String workdate) {
this.workdate = workdate == null ? null : workdate.trim();
}
public String getReserve() {
return reserve;
}
public void setReserve(String reserve) {
this.reserve = reserve == null ? null : reserve.trim();
}
public String getMsgtyp() {
return msgtyp;
}
public void setMsgtyp(String msgtyp) {
this.msgtyp = msgtyp == null ? null : msgtyp.trim();
}
public String getGid() {
return gid;
}
public void setGid(String gid) {
this.gid = gid == null ? null : gid.trim();
}
public String getSendid() {
return sendid;
}
public void setSendid(String sendid) {
this.sendid = sendid == null ? null : sendid.trim();
}
public String getRecvid() {
return recvid;
}
public void setRecvid(String recvid) {
this.recvid = recvid == null ? null : recvid.trim();
}
public String getSnddattim() {
return snddattim;
}
public void setSnddattim(String snddattim) {
this.snddattim = snddattim == null ? null : snddattim.trim();
}
public String getVesion() {
return vesion;
}
public void setVesion(String vesion) {
this.vesion = vesion == null ? null : vesion.trim();
}
}
\ No newline at end of file
package com.brilliance.entity;
import java.util.Date;
public class Lck {
public class Cnt {
private String nam;
private String txt;
private Short val;
private Date dattim;
private Short stp;
public String getNam() {
return nam;
......@@ -17,19 +15,19 @@ public class Lck {
this.nam = nam == null ? null : nam.trim();
}
public String getTxt() {
return txt;
public Short getVal() {
return val;
}
public void setTxt(String txt) {
this.txt = txt == null ? null : txt.trim();
public void setVal(Short val) {
this.val = val;
}
public Date getDattim() {
return dattim;
public Short getStp() {
return stp;
}
public void setDattim(Date dattim) {
this.dattim = dattim;
public void setStp(Short stp) {
this.stp = stp;
}
}
\ No newline at end of file
package com.brilliance.entity;
import java.util.Date;
public class Mpe {
private String inr;
private String chncod;
private Date dattim;
private String mpsinr;
private String nxtchncod;
private String nxtsmhinr;
private String prvsta;
private String smhinr;
private String sta;
private String txt;
private String rspsta;
private String prvrspsta;
private String usr;
private String frmnam;
private String etyinr;
private String ptyinr;
public String getInr() {
return inr;
}
public void setInr(String inr) {
this.inr = inr == null ? null : inr.trim();
}
public String getChncod() {
return chncod;
}
public void setChncod(String chncod) {
this.chncod = chncod == null ? null : chncod.trim();
}
public Date getDattim() {
return dattim;
}
public void setDattim(Date dattim) {
this.dattim = dattim;
}
public String getMpsinr() {
return mpsinr;
}
public void setMpsinr(String mpsinr) {
this.mpsinr = mpsinr == null ? null : mpsinr.trim();
}
public String getNxtchncod() {
return nxtchncod;
}
public void setNxtchncod(String nxtchncod) {
this.nxtchncod = nxtchncod == null ? null : nxtchncod.trim();
}
public String getNxtsmhinr() {
return nxtsmhinr;
}
public void setNxtsmhinr(String nxtsmhinr) {
this.nxtsmhinr = nxtsmhinr == null ? null : nxtsmhinr.trim();
}
public String getPrvsta() {
return prvsta;
}
public void setPrvsta(String prvsta) {
this.prvsta = prvsta == null ? null : prvsta.trim();
}
public String getSmhinr() {
return smhinr;
}
public void setSmhinr(String smhinr) {
this.smhinr = smhinr == null ? null : smhinr.trim();
}
public String getSta() {
return sta;
}
public void setSta(String sta) {
this.sta = sta == null ? null : sta.trim();
}
public String getTxt() {
return txt;
}
public void setTxt(String txt) {
this.txt = txt == null ? null : txt.trim();
}
public String getRspsta() {
return rspsta;
}
public void setRspsta(String rspsta) {
this.rspsta = rspsta == null ? null : rspsta.trim();
}
public String getPrvrspsta() {
return prvrspsta;
}
public void setPrvrspsta(String prvrspsta) {
this.prvrspsta = prvrspsta == null ? null : prvrspsta.trim();
}
public String getUsr() {
return usr;
}
public void setUsr(String usr) {
this.usr = usr == null ? null : usr.trim();
}
public String getFrmnam() {
return frmnam;
}
public void setFrmnam(String frmnam) {
this.frmnam = frmnam == null ? null : frmnam.trim();
}
public String getEtyinr() {
return etyinr;
}
public void setEtyinr(String etyinr) {
this.etyinr = etyinr == null ? null : etyinr.trim();
}
public String getPtyinr() {
return ptyinr;
}
public void setPtyinr(String ptyinr) {
this.ptyinr = ptyinr == null ? null : ptyinr.trim();
}
}
\ No newline at end of file
package com.brilliance.entity;
import java.util.Date;
public class Mpi {
private String inr;
private String act;
private Short amt;
private String cur;
private String dir;
private Date gendat;
private String msgtyp;
private String n20sha;
private String othref;
private String ownref;
private String rcvbic;
private String sndbic;
private String actbic;
private String subtyp;
private String taglst;
private String tagsha;
private String excmsg;
private Date valdat;
private String rpscod;
private String sndnum;
private String t53bic;
private String srcnum;
private String usrnam;
private String dtlchg;
private String etyinr;
private String ptyinr;
private String flg;
private String actsta;
private String fwdref;
private String fwdref2;
private String cjzsta;
private String branch;
private String gpi;
private String uetr;
private String systrackn;
private String accdat;
private Short selamt;
private String selcur;
private String msg71f;
private String gpival;
private String lcnb;
private String msgid;
private String sndflg;
private String biztyp;
private Date expsetdat;
private String paybic;
private String recbic;
private String rcvindbic;
private String sndindbic;
private String xdzsta;
private Long ismx;
private Short endtid;
private String dettyp;
private String loginoprtp;
private String sid;
private String mtp;
private String txtpcd;
private String ctgpcd;
private String mid;
private Date credat;
private String insgdp;
private String insdpl;
private String insgty;
private String insgpl;
private String insddp;
private String insddl;
private String insdty;
private String inspdl;
private String syscod;
private String rmk;
private String orgmid;
private String orginspty;
private String orginapty;
private String orgmsgtyp;
private Date orgsnddat;
private String stscod;
private String prcmsgdig;
private String rspmsg;
private String prcsts;
private String proccd;
private String rjcinf;
private Date sstdat;
private Date rcvdat;
private Date trndat;
private String orpmid;
private String orpinspty;
private String orpinapty;
private String orityp;
private Date oridat;
private String orists;
private String opinfo;
private Date oriaccdat;
private String trasts;
private String bllpaysts;
private String remark;
private String cursyssts;
private Object prccod;
private String envmsgtyp;
private String msgcnt;
public String getInr() {
return inr;
}
public void setInr(String inr) {
this.inr = inr == null ? null : inr.trim();
}
public String getAct() {
return act;
}
public void setAct(String act) {
this.act = act == null ? null : act.trim();
}
public Short getAmt() {
return amt;
}
public void setAmt(Short amt) {
this.amt = amt;
}
public String getCur() {
return cur;
}
public void setCur(String cur) {
this.cur = cur == null ? null : cur.trim();
}
public String getDir() {
return dir;
}
public void setDir(String dir) {
this.dir = dir == null ? null : dir.trim();
}
public Date getGendat() {
return gendat;
}
public void setGendat(Date gendat) {
this.gendat = gendat;
}
public String getMsgtyp() {
return msgtyp;
}
public void setMsgtyp(String msgtyp) {
this.msgtyp = msgtyp == null ? null : msgtyp.trim();
}
public String getN20sha() {
return n20sha;
}
public void setN20sha(String n20sha) {
this.n20sha = n20sha == null ? null : n20sha.trim();
}
public String getOthref() {
return othref;
}
public void setOthref(String othref) {
this.othref = othref == null ? null : othref.trim();
}
public String getOwnref() {
return ownref;
}
public void setOwnref(String ownref) {
this.ownref = ownref == null ? null : ownref.trim();
}
public String getRcvbic() {
return rcvbic;
}
public void setRcvbic(String rcvbic) {
this.rcvbic = rcvbic == null ? null : rcvbic.trim();
}
public String getSndbic() {
return sndbic;
}
public void setSndbic(String sndbic) {
this.sndbic = sndbic == null ? null : sndbic.trim();
}
public String getActbic() {
return actbic;
}
public void setActbic(String actbic) {
this.actbic = actbic == null ? null : actbic.trim();
}
public String getSubtyp() {
return subtyp;
}
public void setSubtyp(String subtyp) {
this.subtyp = subtyp == null ? null : subtyp.trim();
}
public String getTaglst() {
return taglst;
}
public void setTaglst(String taglst) {
this.taglst = taglst == null ? null : taglst.trim();
}
public String getTagsha() {
return tagsha;
}
public void setTagsha(String tagsha) {
this.tagsha = tagsha == null ? null : tagsha.trim();
}
public String getExcmsg() {
return excmsg;
}
public void setExcmsg(String excmsg) {
this.excmsg = excmsg == null ? null : excmsg.trim();
}
public Date getValdat() {
return valdat;
}
public void setValdat(Date valdat) {
this.valdat = valdat;
}
public String getRpscod() {
return rpscod;
}
public void setRpscod(String rpscod) {
this.rpscod = rpscod == null ? null : rpscod.trim();
}
public String getSndnum() {
return sndnum;
}
public void setSndnum(String sndnum) {
this.sndnum = sndnum == null ? null : sndnum.trim();
}
public String getT53bic() {
return t53bic;
}
public void setT53bic(String t53bic) {
this.t53bic = t53bic == null ? null : t53bic.trim();
}
public String getSrcnum() {
return srcnum;
}
public void setSrcnum(String srcnum) {
this.srcnum = srcnum == null ? null : srcnum.trim();
}
public String getUsrnam() {
return usrnam;
}
public void setUsrnam(String usrnam) {
this.usrnam = usrnam == null ? null : usrnam.trim();
}
public String getDtlchg() {
return dtlchg;
}
public void setDtlchg(String dtlchg) {
this.dtlchg = dtlchg == null ? null : dtlchg.trim();
}
public String getEtyinr() {
return etyinr;
}
public void setEtyinr(String etyinr) {
this.etyinr = etyinr == null ? null : etyinr.trim();
}
public String getPtyinr() {
return ptyinr;
}
public void setPtyinr(String ptyinr) {
this.ptyinr = ptyinr == null ? null : ptyinr.trim();
}
public String getFlg() {
return flg;
}
public void setFlg(String flg) {
this.flg = flg == null ? null : flg.trim();
}
public String getActsta() {
return actsta;
}
public void setActsta(String actsta) {
this.actsta = actsta == null ? null : actsta.trim();
}
public String getFwdref() {
return fwdref;
}
public void setFwdref(String fwdref) {
this.fwdref = fwdref == null ? null : fwdref.trim();
}
public String getFwdref2() {
return fwdref2;
}
public void setFwdref2(String fwdref2) {
this.fwdref2 = fwdref2 == null ? null : fwdref2.trim();
}
public String getCjzsta() {
return cjzsta;
}
public void setCjzsta(String cjzsta) {
this.cjzsta = cjzsta == null ? null : cjzsta.trim();
}
public String getBranch() {
return branch;
}
public void setBranch(String branch) {
this.branch = branch == null ? null : branch.trim();
}
public String getGpi() {
return gpi;
}
public void setGpi(String gpi) {
this.gpi = gpi == null ? null : gpi.trim();
}
public String getUetr() {
return uetr;
}
public void setUetr(String uetr) {
this.uetr = uetr == null ? null : uetr.trim();
}
public String getSystrackn() {
return systrackn;
}
public void setSystrackn(String systrackn) {
this.systrackn = systrackn == null ? null : systrackn.trim();
}
public String getAccdat() {
return accdat;
}
public void setAccdat(String accdat) {
this.accdat = accdat == null ? null : accdat.trim();
}
public Short getSelamt() {
return selamt;
}
public void setSelamt(Short selamt) {
this.selamt = selamt;
}
public String getSelcur() {
return selcur;
}
public void setSelcur(String selcur) {
this.selcur = selcur == null ? null : selcur.trim();
}
public String getMsg71f() {
return msg71f;
}
public void setMsg71f(String msg71f) {
this.msg71f = msg71f == null ? null : msg71f.trim();
}
public String getGpival() {
return gpival;
}
public void setGpival(String gpival) {
this.gpival = gpival == null ? null : gpival.trim();
}
public String getLcnb() {
return lcnb;
}
public void setLcnb(String lcnb) {
this.lcnb = lcnb == null ? null : lcnb.trim();
}
public String getMsgid() {
return msgid;
}
public void setMsgid(String msgid) {
this.msgid = msgid == null ? null : msgid.trim();
}
public String getSndflg() {
return sndflg;
}
public void setSndflg(String sndflg) {
this.sndflg = sndflg == null ? null : sndflg.trim();
}
public String getBiztyp() {
return biztyp;
}
public void setBiztyp(String biztyp) {
this.biztyp = biztyp == null ? null : biztyp.trim();
}
public Date getExpsetdat() {
return expsetdat;
}
public void setExpsetdat(Date expsetdat) {
this.expsetdat = expsetdat;
}
public String getPaybic() {
return paybic;
}
public void setPaybic(String paybic) {
this.paybic = paybic == null ? null : paybic.trim();
}
public String getRecbic() {
return recbic;
}
public void setRecbic(String recbic) {
this.recbic = recbic == null ? null : recbic.trim();
}
public String getRcvindbic() {
return rcvindbic;
}
public void setRcvindbic(String rcvindbic) {
this.rcvindbic = rcvindbic == null ? null : rcvindbic.trim();
}
public String getSndindbic() {
return sndindbic;
}
public void setSndindbic(String sndindbic) {
this.sndindbic = sndindbic == null ? null : sndindbic.trim();
}
public String getXdzsta() {
return xdzsta;
}
public void setXdzsta(String xdzsta) {
this.xdzsta = xdzsta == null ? null : xdzsta.trim();
}
public Long getIsmx() {
return ismx;
}
public void setIsmx(Long ismx) {
this.ismx = ismx;
}
public Short getEndtid() {
return endtid;
}
public void setEndtid(Short endtid) {
this.endtid = endtid;
}
public String getDettyp() {
return dettyp;
}
public void setDettyp(String dettyp) {
this.dettyp = dettyp == null ? null : dettyp.trim();
}
public String getLoginoprtp() {
return loginoprtp;
}
public void setLoginoprtp(String loginoprtp) {
this.loginoprtp = loginoprtp == null ? null : loginoprtp.trim();
}
public String getSid() {
return sid;
}
public void setSid(String sid) {
this.sid = sid == null ? null : sid.trim();
}
public String getMtp() {
return mtp;
}
public void setMtp(String mtp) {
this.mtp = mtp == null ? null : mtp.trim();
}
public String getTxtpcd() {
return txtpcd;
}
public void setTxtpcd(String txtpcd) {
this.txtpcd = txtpcd == null ? null : txtpcd.trim();
}
public String getCtgpcd() {
return ctgpcd;
}
public void setCtgpcd(String ctgpcd) {
this.ctgpcd = ctgpcd == null ? null : ctgpcd.trim();
}
public String getMid() {
return mid;
}
public void setMid(String mid) {
this.mid = mid == null ? null : mid.trim();
}
public Date getCredat() {
return credat;
}
public void setCredat(Date credat) {
this.credat = credat;
}
public String getInsgdp() {
return insgdp;
}
public void setInsgdp(String insgdp) {
this.insgdp = insgdp == null ? null : insgdp.trim();
}
public String getInsdpl() {
return insdpl;
}
public void setInsdpl(String insdpl) {
this.insdpl = insdpl == null ? null : insdpl.trim();
}
public String getInsgty() {
return insgty;
}
public void setInsgty(String insgty) {
this.insgty = insgty == null ? null : insgty.trim();
}
public String getInsgpl() {
return insgpl;
}
public void setInsgpl(String insgpl) {
this.insgpl = insgpl == null ? null : insgpl.trim();
}
public String getInsddp() {
return insddp;
}
public void setInsddp(String insddp) {
this.insddp = insddp == null ? null : insddp.trim();
}
public String getInsddl() {
return insddl;
}
public void setInsddl(String insddl) {
this.insddl = insddl == null ? null : insddl.trim();
}
public String getInsdty() {
return insdty;
}
public void setInsdty(String insdty) {
this.insdty = insdty == null ? null : insdty.trim();
}
public String getInspdl() {
return inspdl;
}
public void setInspdl(String inspdl) {
this.inspdl = inspdl == null ? null : inspdl.trim();
}
public String getSyscod() {
return syscod;
}
public void setSyscod(String syscod) {
this.syscod = syscod == null ? null : syscod.trim();
}
public String getRmk() {
return rmk;
}
public void setRmk(String rmk) {
this.rmk = rmk == null ? null : rmk.trim();
}
public String getOrgmid() {
return orgmid;
}
public void setOrgmid(String orgmid) {
this.orgmid = orgmid == null ? null : orgmid.trim();
}
public String getOrginspty() {
return orginspty;
}
public void setOrginspty(String orginspty) {
this.orginspty = orginspty == null ? null : orginspty.trim();
}
public String getOrginapty() {
return orginapty;
}
public void setOrginapty(String orginapty) {
this.orginapty = orginapty == null ? null : orginapty.trim();
}
public String getOrgmsgtyp() {
return orgmsgtyp;
}
public void setOrgmsgtyp(String orgmsgtyp) {
this.orgmsgtyp = orgmsgtyp == null ? null : orgmsgtyp.trim();
}
public Date getOrgsnddat() {
return orgsnddat;
}
public void setOrgsnddat(Date orgsnddat) {
this.orgsnddat = orgsnddat;
}
public String getStscod() {
return stscod;
}
public void setStscod(String stscod) {
this.stscod = stscod == null ? null : stscod.trim();
}
public String getPrcmsgdig() {
return prcmsgdig;
}
public void setPrcmsgdig(String prcmsgdig) {
this.prcmsgdig = prcmsgdig == null ? null : prcmsgdig.trim();
}
public String getRspmsg() {
return rspmsg;
}
public void setRspmsg(String rspmsg) {
this.rspmsg = rspmsg == null ? null : rspmsg.trim();
}
public String getPrcsts() {
return prcsts;
}
public void setPrcsts(String prcsts) {
this.prcsts = prcsts == null ? null : prcsts.trim();
}
public String getProccd() {
return proccd;
}
public void setProccd(String proccd) {
this.proccd = proccd == null ? null : proccd.trim();
}
public String getRjcinf() {
return rjcinf;
}
public void setRjcinf(String rjcinf) {
this.rjcinf = rjcinf == null ? null : rjcinf.trim();
}
public Date getSstdat() {
return sstdat;
}
public void setSstdat(Date sstdat) {
this.sstdat = sstdat;
}
public Date getRcvdat() {
return rcvdat;
}
public void setRcvdat(Date rcvdat) {
this.rcvdat = rcvdat;
}
public Date getTrndat() {
return trndat;
}
public void setTrndat(Date trndat) {
this.trndat = trndat;
}
public String getOrpmid() {
return orpmid;
}
public void setOrpmid(String orpmid) {
this.orpmid = orpmid == null ? null : orpmid.trim();
}
public String getOrpinspty() {
return orpinspty;
}
public void setOrpinspty(String orpinspty) {
this.orpinspty = orpinspty == null ? null : orpinspty.trim();
}
public String getOrpinapty() {
return orpinapty;
}
public void setOrpinapty(String orpinapty) {
this.orpinapty = orpinapty == null ? null : orpinapty.trim();
}
public String getOrityp() {
return orityp;
}
public void setOrityp(String orityp) {
this.orityp = orityp == null ? null : orityp.trim();
}
public Date getOridat() {
return oridat;
}
public void setOridat(Date oridat) {
this.oridat = oridat;
}
public String getOrists() {
return orists;
}
public void setOrists(String orists) {
this.orists = orists == null ? null : orists.trim();
}
public String getOpinfo() {
return opinfo;
}
public void setOpinfo(String opinfo) {
this.opinfo = opinfo == null ? null : opinfo.trim();
}
public Date getOriaccdat() {
return oriaccdat;
}
public void setOriaccdat(Date oriaccdat) {
this.oriaccdat = oriaccdat;
}
public String getTrasts() {
return trasts;
}
public void setTrasts(String trasts) {
this.trasts = trasts == null ? null : trasts.trim();
}
public String getBllpaysts() {
return bllpaysts;
}
public void setBllpaysts(String bllpaysts) {
this.bllpaysts = bllpaysts == null ? null : bllpaysts.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public String getCursyssts() {
return cursyssts;
}
public void setCursyssts(String cursyssts) {
this.cursyssts = cursyssts == null ? null : cursyssts.trim();
}
public Object getPrccod() {
return prccod;
}
public void setPrccod(Object prccod) {
this.prccod = prccod;
}
public String getEnvmsgtyp() {
return envmsgtyp;
}
public void setEnvmsgtyp(String envmsgtyp) {
this.envmsgtyp = envmsgtyp == null ? null : envmsgtyp.trim();
}
public String getMsgcnt() {
return msgcnt;
}
public void setMsgcnt(String msgcnt) {
this.msgcnt = msgcnt == null ? null : msgcnt.trim();
}
}
\ No newline at end of file
package com.brilliance.entity;
import java.util.Date;
public class Mps {
private String inr;
private String chncod;
private String dir;
private Date lstdattim;
private String nxtchncod;
private String pntinr;
private Date rcvdattim;
private Date rspdattim;
private String rspsta;
private String smhinr;
private Date snddattim;
private String srcchncod;
private String sta;
private String nxtsta;
private String stp;
private Date sttdattim;
private String tgtchncod;
private Date tgtdattime;
private String isman;
private String isblk;
private String etyinr;
private String ptyinr;
private String flg;
private String rspcod;
private String reptrksta;
private String swetyp;
private String sweack;
private String rptsta;
private String messageid;
private String blktyp;
private String xhxflg;
private Long ismx;
public String getInr() {
return inr;
}
public void setInr(String inr) {
this.inr = inr == null ? null : inr.trim();
}
public String getChncod() {
return chncod;
}
public void setChncod(String chncod) {
this.chncod = chncod == null ? null : chncod.trim();
}
public String getDir() {
return dir;
}
public void setDir(String dir) {
this.dir = dir == null ? null : dir.trim();
}
public Date getLstdattim() {
return lstdattim;
}
public void setLstdattim(Date lstdattim) {
this.lstdattim = lstdattim;
}
public String getNxtchncod() {
return nxtchncod;
}
public void setNxtchncod(String nxtchncod) {
this.nxtchncod = nxtchncod == null ? null : nxtchncod.trim();
}
public String getPntinr() {
return pntinr;
}
public void setPntinr(String pntinr) {
this.pntinr = pntinr == null ? null : pntinr.trim();
}
public Date getRcvdattim() {
return rcvdattim;
}
public void setRcvdattim(Date rcvdattim) {
this.rcvdattim = rcvdattim;
}
public Date getRspdattim() {
return rspdattim;
}
public void setRspdattim(Date rspdattim) {
this.rspdattim = rspdattim;
}
public String getRspsta() {
return rspsta;
}
public void setRspsta(String rspsta) {
this.rspsta = rspsta == null ? null : rspsta.trim();
}
public String getSmhinr() {
return smhinr;
}
public void setSmhinr(String smhinr) {
this.smhinr = smhinr == null ? null : smhinr.trim();
}
public Date getSnddattim() {
return snddattim;
}
public void setSnddattim(Date snddattim) {
this.snddattim = snddattim;
}
public String getSrcchncod() {
return srcchncod;
}
public void setSrcchncod(String srcchncod) {
this.srcchncod = srcchncod == null ? null : srcchncod.trim();
}
public String getSta() {
return sta;
}
public void setSta(String sta) {
this.sta = sta == null ? null : sta.trim();
}
public String getNxtsta() {
return nxtsta;
}
public void setNxtsta(String nxtsta) {
this.nxtsta = nxtsta == null ? null : nxtsta.trim();
}
public String getStp() {
return stp;
}
public void setStp(String stp) {
this.stp = stp == null ? null : stp.trim();
}
public Date getSttdattim() {
return sttdattim;
}
public void setSttdattim(Date sttdattim) {
this.sttdattim = sttdattim;
}
public String getTgtchncod() {
return tgtchncod;
}
public void setTgtchncod(String tgtchncod) {
this.tgtchncod = tgtchncod == null ? null : tgtchncod.trim();
}
public Date getTgtdattime() {
return tgtdattime;
}
public void setTgtdattime(Date tgtdattime) {
this.tgtdattime = tgtdattime;
}
public String getIsman() {
return isman;
}
public void setIsman(String isman) {
this.isman = isman == null ? null : isman.trim();
}
public String getIsblk() {
return isblk;
}
public void setIsblk(String isblk) {
this.isblk = isblk == null ? null : isblk.trim();
}
public String getEtyinr() {
return etyinr;
}
public void setEtyinr(String etyinr) {
this.etyinr = etyinr == null ? null : etyinr.trim();
}
public String getPtyinr() {
return ptyinr;
}
public void setPtyinr(String ptyinr) {
this.ptyinr = ptyinr == null ? null : ptyinr.trim();
}
public String getFlg() {
return flg;
}
public void setFlg(String flg) {
this.flg = flg == null ? null : flg.trim();
}
public String getRspcod() {
return rspcod;
}
public void setRspcod(String rspcod) {
this.rspcod = rspcod == null ? null : rspcod.trim();
}
public String getReptrksta() {
return reptrksta;
}
public void setReptrksta(String reptrksta) {
this.reptrksta = reptrksta == null ? null : reptrksta.trim();
}
public String getSwetyp() {
return swetyp;
}
public void setSwetyp(String swetyp) {
this.swetyp = swetyp == null ? null : swetyp.trim();
}
public String getSweack() {
return sweack;
}
public void setSweack(String sweack) {
this.sweack = sweack == null ? null : sweack.trim();
}
public String getRptsta() {
return rptsta;
}
public void setRptsta(String rptsta) {
this.rptsta = rptsta == null ? null : rptsta.trim();
}
public String getMessageid() {
return messageid;
}
public void setMessageid(String messageid) {
this.messageid = messageid == null ? null : messageid.trim();
}
public String getBlktyp() {
return blktyp;
}
public void setBlktyp(String blktyp) {
this.blktyp = blktyp == null ? null : blktyp.trim();
}
public String getXhxflg() {
return xhxflg;
}
public void setXhxflg(String xhxflg) {
this.xhxflg = xhxflg == null ? null : xhxflg.trim();
}
public Long getIsmx() {
return ismx;
}
public void setIsmx(Long ismx) {
this.ismx = ismx;
}
}
\ No newline at end of file
package com.brilliance.entity;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Table(name="smh")
public class Smh {
@Id
@Column(name="inr")
private String inr;
@Column(name="crtfrm")
private String crtfrm;
private String crtfrm;
@Column(name = "dattim")
private Date dattim;
public String getInr() {
return inr;
}
public void setInr(String smhinr) {
this.inr = smhinr;
public void setInr(String inr) {
this.inr = inr == null ? null : inr.trim();
}
public String getCrtfrm() {
......@@ -30,14 +22,14 @@ public class Smh {
}
public void setCrtfrm(String crtfrm) {
this.crtfrm = crtfrm;
this.crtfrm = crtfrm == null ? null : crtfrm.trim();
}
public Date getDattim() {
return dattim;
}
public void setDattim(Date dateTime) {
this.dattim = dateTime;
public void setDattim(Date dattim) {
this.dattim = dattim;
}
}
}
\ No newline at end of file
package com.brilliance.entity;
import java.util.Date;
public class Smqinf {
private String inr;
private String pth;
private Short cnt;
private String sta;
private Date credat;
private String mesgno;
private String objinr;
private String objtyp;
public String getInr() {
return inr;
}
public void setInr(String inr) {
this.inr = inr == null ? null : inr.trim();
}
public String getPth() {
return pth;
}
public void setPth(String pth) {
this.pth = pth == null ? null : pth.trim();
}
public Short getCnt() {
return cnt;
}
public void setCnt(Short cnt) {
this.cnt = cnt;
}
public String getSta() {
return sta;
}
public void setSta(String sta) {
this.sta = sta == null ? null : sta.trim();
}
public Date getCredat() {
return credat;
}
public void setCredat(Date credat) {
this.credat = credat;
}
public String getMesgno() {
return mesgno;
}
public void setMesgno(String mesgno) {
this.mesgno = mesgno == null ? null : mesgno.trim();
}
public String getObjinr() {
return objinr;
}
public void setObjinr(String objinr) {
this.objinr = objinr == null ? null : objinr.trim();
}
public String getObjtyp() {
return objtyp;
}
public void setObjtyp(String objtyp) {
this.objtyp = objtyp == null ? null : objtyp.trim();
}
}
\ No newline at end of file
package com.brilliance.entity;
public class Smqlck {
private String inr;
public String getInr() {
return inr;
}
public void setInr(String inr) {
this.inr = inr == null ? null : inr.trim();
}
}
\ No newline at end of file
......@@ -6,7 +6,7 @@ import org.springframework.web.servlet.config.annotation.InterceptorRegistration
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//@Configuration
@Configuration
public class WebConfig implements WebMvcConfigurer {
@Bean
......
package com.brilliance.mapper;
import com.brilliance.entity.Clsmsg;
public interface ClsmsgMapper {
int deleteByPrimaryKey(String inr);
int insert(Clsmsg record);
int insertSelective(Clsmsg record);
Clsmsg selectByPrimaryKey(String inr);
int updateByPrimaryKeySelective(Clsmsg record);
int updateByPrimaryKey(Clsmsg record);
}
\ No newline at end of file
package com.brilliance.mapper;
import com.brilliance.entity.Cnt;
public interface CntMapper {
int insert(Cnt record);
int insertSelective(Cnt record);
}
\ No newline at end of file
package com.brilliance.mapper;
import com.brilliance.entity.Lck;
import org.apache.ibatis.annotations.Param;
public interface LckMapper {
int insert(Lck record);
int insertSelective(Lck record);
Lck selectLck(@Param("nam") String userName, @Param("txt") String txtInfo);
int deleteByPrimaryKey(@Param("txt") String txtInfo,@Param("nam") String userName);
}
\ No newline at end of file
package com.brilliance.mapper;
import com.brilliance.entity.Mpe;
public interface MpeMapper {
int insert(Mpe record);
int insertSelective(Mpe record);
}
\ No newline at end of file
package com.brilliance.mapper;
import com.brilliance.entity.Mpi;
import org.apache.ibatis.annotations.Param;
public interface MpiMapper {
int deleteByPrimaryKey(String inr);
int insert(Mpi record);
int insertSelective(Mpi record);
Mpi selectByPrimaryKey(String inr);
int updateByPrimaryKeySelective(Mpi record);
int updateByPrimaryKey(Mpi record);
Mpi getMpi(@Param("othref") String othref, @Param("dir") String dir);
}
\ No newline at end of file
package com.brilliance.mapper;
import com.brilliance.entity.Mps;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
public interface MpsMapper {
int deleteByPrimaryKey(String inr);
int insert(Mps record);
int insertSelective(Mps record);
Mps selectByPrimaryKey(String inr);
int updateByPrimaryKeySelective(Mps record);
int updateByPrimaryKey(Mps record);
//Platform.mdbReadset($mpslst,new Argument("nxtchncod",channel).and("sta",state).and("dir",dir).and("sttdattim",LE,new Date()),new Argument("sttdattim",ASC));
List<Mps> getMpsList(@Param("nxtchncod") String nxtchncod,@Param("dir") String dir,@Param("sta") String sta,@Param("sttdattim") Date sttdattim,@Param("orderBy") String orderBy) ;
int counterMps(@Param("dir") String dir);
String getSrcchncod(@Param("inr") String inr);
}
\ No newline at end of file
package com.brilliance.mapper;
import com.brilliance.entity.Smh;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
public interface SmhMapper {
//@Select({"select * from user where age=#{age}"})
@Select({"select * from smh where inr= #{inr} "})
Smh selectSmh(@Param("inr") String inr);
int deleteByPrimaryKey(String inr);
@Insert({"insert into smh(inr,crtfrm,dattim) values (#{inr},#{crtfrm},#{dattim})"})
int insert(Smh smh);
int insert(Smh record);
int insertSelective(Smh record);
Smh selectByPrimaryKey(String inr);
int updateByPrimaryKeySelective(Smh record);
int updateByPrimaryKey(Smh record);
}
\ No newline at end of file
package com.brilliance.mapper;
import com.brilliance.entity.Smqinf;
import org.springframework.stereotype.Repository;
@Repository
public interface SmqinfMapper {
int deleteByPrimaryKey(String inr);
int insert(Smqinf record);
int insertSelective(Smqinf record);
Smqinf selectByPrimaryKey(String inr);
int updateByPrimaryKeySelective(Smqinf record);
int updateByPrimaryKey(Smqinf record);
}
\ No newline at end of file
package com.brilliance.mapper;
import com.brilliance.entity.Smqlck;
public interface SmqlckMapper {
int deleteByPrimaryKey(String inr);
int insert(Smqlck record);
int insertSelective(Smqlck record);
}
\ No newline at end of file
package com.brilliance.service;
import com.brilliance.entity.Mps;
import java.util.Date;
import java.util.List;
/**
* @Description
* @Author gechengyang
* @Date 2023/10/23
*/
public interface LckService {
boolean dbLock(Object obj,String userName);
boolean dbUnlock(Object obj,String userName);
boolean dbLock(String modeType,String inr,String userName);
boolean dbUnlock(String modeType, String inr,String name);
}
package com.brilliance.service;
import com.brilliance.entity.Mps;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
/**
* @Description
* @Author gechengyang
* @Date 2023/10/23
*/
public interface MpsService {
List<Mps> getMpsList(String nxtchncod, String dir, String sta, Date sttdattim,String orderBy) ;
boolean insert(Mps mps);
boolean delete(String inr);
void test();
}
package com.brilliance.service;
import com.brilliance.entity.Smqlck;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.jpa.repository.JpaRepository;
//@Mapper
public interface SmqlckService {
boolean createLck(Smqlck smqlck);
}
package com.brilliance.service.impl;
import com.brilliance.entity.Lck;
import com.brilliance.mapper.LckMapper;
import com.brilliance.service.LckService;
import org.apache.commons.lang.reflect.MethodUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;
/**
* @Description
* @Author gechengyang
* @Date 2023/10/23
*/
@Service
public class LckServiceImpl implements LckService {
private static Logger logger=LoggerFactory.getLogger(LckServiceImpl.class);
@Autowired
private LckMapper lckMapper;
@Override
public boolean dbLock(Object obj, String userName) {
Lck lck=new Lck();
Object inrObj =null;
if(obj==null)
return false;
String modeType=obj.getClass().getSimpleName().toLowerCase();
try {
inrObj = MethodUtils.invokeMethod(obj, "getInr",null);
} catch (Exception e) {
e.printStackTrace();
return false;
}
if(inrObj==null) {
return false;
}
String inr= (String) inrObj;
String txt=modeType+inr;
Lck lck1 = lckMapper.selectLck(userName, modeType);
if(lck1!=null){
logger.info("lck has been exsist,lck txt=【"+lck1.getTxt()+"】");
return false;
}
logger.info("logger test");
lck.setTxt(txt);
lck.setNam(userName);
lck.setDattim(new Date());
int insert = lckMapper.insert(lck);
if(insert>0)
return true;
return false;
}
@Override
public boolean dbUnlock(Object obj, String userName) {
String modeType=obj.getClass().getSimpleName().toLowerCase();
String inr="";
try {
Object inrObj = MethodUtils.invokeMethod(obj, "getInr",null);
} catch (Exception e) {
e.printStackTrace();
return false;
}
String txt=modeType+inr;
int delete = lckMapper.deleteByPrimaryKey(txt, userName);
if(delete>0)
return true;
return false;
}
@Override
public boolean dbLock(String modeType, String inr,String userName) {
Lck lck=new Lck();
lck.setTxt(modeType+inr);
lck.setNam(userName);
int insert = lckMapper.insert(lck);
if(insert>0)
return true;
return false;
}
@Override
public boolean dbUnlock(String modeType, String inr,String name) {
String txt=modeType+inr;
int delete = lckMapper.deleteByPrimaryKey(txt, name);
if(delete>0)
return true;
return false;
}
}
package com.brilliance.service.impl;
import com.brilliance.entity.Mps;
import com.brilliance.mapper.MpsMapper;
import com.brilliance.service.MpsService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
* @Description
* @Author gechengyang
* @Date 2023/10/23
*/
@Service
public class MpsServiceServiceImpl implements MpsService {
@Autowired
private MpsMapper mpsMapper;
@Override
public List<Mps> getMpsList(String nxtchncod, String dir, String sta, Date sttdattim,String orderBy) {
return mpsMapper.getMpsList(nxtchncod,dir,sta,sttdattim,orderBy);
}
@Override
public boolean insert(Mps mps) {
int insert = mpsMapper.insert(mps);
if(insert>0)
return true;
else
return false;
}
@Override
public boolean delete(String inr) {
int deleteByPrimaryKey = mpsMapper.deleteByPrimaryKey(inr);
if(deleteByPrimaryKey>0)
return true;
else
return false;
}
@Override
public void test() {
int i = mpsMapper.counterMps(">");
String srcchncod=mpsMapper.getSrcchncod("00000972");
}
}
package com.brilliance.service.impl;
import com.brilliance.entity.Smqlck;
import com.brilliance.mapper.SmqlckMapper;
import com.brilliance.service.SmqlckService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class SmqlckServiceImp implements SmqlckService {
@Autowired
private SmqlckMapper smqlckMapper;
@Override
public boolean createLck(Smqlck smqlck) {
System.out.println("it is a test !");
try {
int insert = smqlckMapper.insert(smqlck);
if(insert>0){
return true;
}else{
return false;
}
}catch (Exception e){
e.printStackTrace();;
return false;
}
}
}
......@@ -3,9 +3,9 @@ server:
spring:
datasource:
url: jdbc:oracle:thin:@114.115.138.98:9400:XE
username: test
password: test
url: jdbc:oracle:thin:@192.168.0.110:1524:XE
username: ncb_gj
password: ncb_gj
driver-class-name: oracle.jdbc.driver.OracleDriver
......@@ -7,7 +7,7 @@ logging:
# mybatis配置
mybatis:
mapperLocations: classpath:com.brilliance.mapper/*.xml
mapperLocations: classpath:mapper/*.xml
configuration:
logImpl: org.apache.ibatis.logging.stdout.StdOutImpl
call-setters-on-nulls: true
......
<?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.mapper.MpeMapper" >
<resultMap id="BaseResultMap" type="com.brilliance.entity.Mpe" >
<result column="INR" property="inr" jdbcType="CHAR" />
<result column="CHNCOD" property="chncod" jdbcType="VARCHAR" />
<result column="DATTIM" property="dattim" jdbcType="TIMESTAMP" />
<result column="MPSINR" property="mpsinr" jdbcType="VARCHAR" />
<result column="NXTCHNCOD" property="nxtchncod" jdbcType="VARCHAR" />
<result column="NXTSMHINR" property="nxtsmhinr" jdbcType="VARCHAR" />
<result column="PRVSTA" property="prvsta" jdbcType="CHAR" />
<result column="SMHINR" property="smhinr" jdbcType="VARCHAR" />
<result column="STA" property="sta" jdbcType="CHAR" />
<result column="TXT" property="txt" jdbcType="VARCHAR" />
<result column="RSPSTA" property="rspsta" jdbcType="CHAR" />
<result column="PRVRSPSTA" property="prvrspsta" jdbcType="CHAR" />
<result column="USR" property="usr" jdbcType="VARCHAR" />
<result column="FRMNAM" property="frmnam" jdbcType="VARCHAR" />
<result column="ETYINR" property="etyinr" jdbcType="CHAR" />
<result column="PTYINR" property="ptyinr" jdbcType="CHAR" />
</resultMap>
<insert id="insert" parameterType="com.brilliance.entity.Mpe" >
insert into TEST.MPE (INR, CHNCOD, DATTIM,
MPSINR, NXTCHNCOD, NXTSMHINR,
PRVSTA, SMHINR, STA, TXT,
RSPSTA, PRVRSPSTA, USR, FRMNAM,
ETYINR, PTYINR)
values (#{inr,jdbcType=CHAR}, #{chncod,jdbcType=VARCHAR}, #{dattim,jdbcType=TIMESTAMP},
#{mpsinr,jdbcType=VARCHAR}, #{nxtchncod,jdbcType=VARCHAR}, #{nxtsmhinr,jdbcType=VARCHAR},
#{prvsta,jdbcType=CHAR}, #{smhinr,jdbcType=VARCHAR}, #{sta,jdbcType=CHAR}, #{txt,jdbcType=VARCHAR},
#{rspsta,jdbcType=CHAR}, #{prvrspsta,jdbcType=CHAR}, #{usr,jdbcType=VARCHAR}, #{frmnam,jdbcType=VARCHAR},
#{etyinr,jdbcType=CHAR}, #{ptyinr,jdbcType=CHAR})
</insert>
<insert id="insertSelective" parameterType="com.brilliance.entity.Mpe" >
insert into TEST.MPE
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="inr != null" >
INR,
</if>
<if test="chncod != null" >
CHNCOD,
</if>
<if test="dattim != null" >
DATTIM,
</if>
<if test="mpsinr != null" >
MPSINR,
</if>
<if test="nxtchncod != null" >
NXTCHNCOD,
</if>
<if test="nxtsmhinr != null" >
NXTSMHINR,
</if>
<if test="prvsta != null" >
PRVSTA,
</if>
<if test="smhinr != null" >
SMHINR,
</if>
<if test="sta != null" >
STA,
</if>
<if test="txt != null" >
TXT,
</if>
<if test="rspsta != null" >
RSPSTA,
</if>
<if test="prvrspsta != null" >
PRVRSPSTA,
</if>
<if test="usr != null" >
USR,
</if>
<if test="frmnam != null" >
FRMNAM,
</if>
<if test="etyinr != null" >
ETYINR,
</if>
<if test="ptyinr != null" >
PTYINR,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="inr != null" >
#{inr,jdbcType=CHAR},
</if>
<if test="chncod != null" >
#{chncod,jdbcType=VARCHAR},
</if>
<if test="dattim != null" >
#{dattim,jdbcType=TIMESTAMP},
</if>
<if test="mpsinr != null" >
#{mpsinr,jdbcType=VARCHAR},
</if>
<if test="nxtchncod != null" >
#{nxtchncod,jdbcType=VARCHAR},
</if>
<if test="nxtsmhinr != null" >
#{nxtsmhinr,jdbcType=VARCHAR},
</if>
<if test="prvsta != null" >
#{prvsta,jdbcType=CHAR},
</if>
<if test="smhinr != null" >
#{smhinr,jdbcType=VARCHAR},
</if>
<if test="sta != null" >
#{sta,jdbcType=CHAR},
</if>
<if test="txt != null" >
#{txt,jdbcType=VARCHAR},
</if>
<if test="rspsta != null" >
#{rspsta,jdbcType=CHAR},
</if>
<if test="prvrspsta != null" >
#{prvrspsta,jdbcType=CHAR},
</if>
<if test="usr != null" >
#{usr,jdbcType=VARCHAR},
</if>
<if test="frmnam != null" >
#{frmnam,jdbcType=VARCHAR},
</if>
<if test="etyinr != null" >
#{etyinr,jdbcType=CHAR},
</if>
<if test="ptyinr != null" >
#{ptyinr,jdbcType=CHAR},
</if>
</trim>
</insert>
</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.mapper.MpiMapper" >
<resultMap id="BaseResultMap" type="com.brilliance.entity.Mpi" >
<id column="INR" property="inr" jdbcType="CHAR" />
<result column="ACT" property="act" jdbcType="VARCHAR" />
<result column="AMT" property="amt" jdbcType="DECIMAL" />
<result column="CUR" property="cur" jdbcType="VARCHAR" />
<result column="DIR" property="dir" jdbcType="CHAR" />
<result column="GENDAT" property="gendat" jdbcType="TIMESTAMP" />
<result column="MSGTYP" property="msgtyp" jdbcType="VARCHAR" />
<result column="N20SHA" property="n20sha" jdbcType="VARCHAR" />
<result column="OTHREF" property="othref" jdbcType="VARCHAR" />
<result column="OWNREF" property="ownref" jdbcType="VARCHAR" />
<result column="RCVBIC" property="rcvbic" jdbcType="VARCHAR" />
<result column="SNDBIC" property="sndbic" jdbcType="VARCHAR" />
<result column="ACTBIC" property="actbic" jdbcType="VARCHAR" />
<result column="SUBTYP" property="subtyp" jdbcType="VARCHAR" />
<result column="TAGLST" property="taglst" jdbcType="VARCHAR" />
<result column="TAGSHA" property="tagsha" jdbcType="VARCHAR" />
<result column="EXCMSG" property="excmsg" jdbcType="VARCHAR" />
<result column="VALDAT" property="valdat" jdbcType="TIMESTAMP" />
<result column="RPSCOD" property="rpscod" jdbcType="VARCHAR" />
<result column="SNDNUM" property="sndnum" jdbcType="VARCHAR" />
<result column="T53BIC" property="t53bic" jdbcType="VARCHAR" />
<result column="SRCNUM" property="srcnum" jdbcType="VARCHAR" />
<result column="USRNAM" property="usrnam" jdbcType="VARCHAR" />
<result column="DTLCHG" property="dtlchg" jdbcType="VARCHAR" />
<result column="ETYINR" property="etyinr" jdbcType="CHAR" />
<result column="PTYINR" property="ptyinr" jdbcType="CHAR" />
<result column="FLG" property="flg" jdbcType="CHAR" />
<result column="ACTSTA" property="actsta" jdbcType="VARCHAR" />
<result column="FWDREF" property="fwdref" jdbcType="VARCHAR" />
<result column="FWDREF2" property="fwdref2" jdbcType="VARCHAR" />
<result column="CJZSTA" property="cjzsta" jdbcType="VARCHAR" />
<result column="BRANCH" property="branch" jdbcType="VARCHAR" />
<result column="GPI" property="gpi" jdbcType="VARCHAR" />
<result column="UETR" property="uetr" jdbcType="VARCHAR" />
<result column="SYSTRACKN" property="systrackn" jdbcType="VARCHAR" />
<result column="ACCDAT" property="accdat" jdbcType="VARCHAR" />
<result column="SELAMT" property="selamt" jdbcType="DECIMAL" />
<result column="SELCUR" property="selcur" jdbcType="VARCHAR" />
<result column="MSG71F" property="msg71f" jdbcType="VARCHAR" />
<result column="GPIVAL" property="gpival" jdbcType="VARCHAR" />
<result column="LCNB" property="lcnb" jdbcType="VARCHAR" />
<result column="MSGID" property="msgid" jdbcType="VARCHAR" />
<result column="SNDFLG" property="sndflg" jdbcType="VARCHAR" />
<result column="BIZTYP" property="biztyp" jdbcType="VARCHAR" />
<result column="EXPSETDAT" property="expsetdat" jdbcType="TIMESTAMP" />
<result column="PAYBIC" property="paybic" jdbcType="VARCHAR" />
<result column="RECBIC" property="recbic" jdbcType="VARCHAR" />
<result column="RCVINDBIC" property="rcvindbic" jdbcType="VARCHAR" />
<result column="SNDINDBIC" property="sndindbic" jdbcType="VARCHAR" />
<result column="XDZSTA" property="xdzsta" jdbcType="VARCHAR" />
<result column="ISMX" property="ismx" jdbcType="DECIMAL" />
<result column="ENDTID" property="endtid" jdbcType="DECIMAL" />
<result column="DETTYP" property="dettyp" jdbcType="VARCHAR" />
<result column="LOGINOPRTP" property="loginoprtp" jdbcType="VARCHAR" />
<result column="SID" property="sid" jdbcType="VARCHAR" />
<result column="MTP" property="mtp" jdbcType="VARCHAR" />
<result column="TXTPCD" property="txtpcd" jdbcType="VARCHAR" />
<result column="CTGPCD" property="ctgpcd" jdbcType="VARCHAR" />
<result column="MID" property="mid" jdbcType="VARCHAR" />
<result column="CREDAT" property="credat" jdbcType="TIMESTAMP" />
<result column="INSGDP" property="insgdp" jdbcType="VARCHAR" />
<result column="INSDPL" property="insdpl" jdbcType="VARCHAR" />
<result column="INSGTY" property="insgty" jdbcType="VARCHAR" />
<result column="INSGPL" property="insgpl" jdbcType="VARCHAR" />
<result column="INSDDP" property="insddp" jdbcType="VARCHAR" />
<result column="INSDDL" property="insddl" jdbcType="VARCHAR" />
<result column="INSDTY" property="insdty" jdbcType="VARCHAR" />
<result column="INSPDL" property="inspdl" jdbcType="VARCHAR" />
<result column="SYSCOD" property="syscod" jdbcType="VARCHAR" />
<result column="RMK" property="rmk" jdbcType="VARCHAR" />
<result column="ORGMID" property="orgmid" jdbcType="VARCHAR" />
<result column="ORGINSPTY" property="orginspty" jdbcType="VARCHAR" />
<result column="ORGINAPTY" property="orginapty" jdbcType="VARCHAR" />
<result column="ORGMSGTYP" property="orgmsgtyp" jdbcType="VARCHAR" />
<result column="ORGSNDDAT" property="orgsnddat" jdbcType="TIMESTAMP" />
<result column="STSCOD" property="stscod" jdbcType="VARCHAR" />
<result column="PRCMSGDIG" property="prcmsgdig" jdbcType="VARCHAR" />
<result column="RSPMSG" property="rspmsg" jdbcType="VARCHAR" />
<result column="PRCSTS" property="prcsts" jdbcType="VARCHAR" />
<result column="PROCCD" property="proccd" jdbcType="VARCHAR" />
<result column="RJCINF" property="rjcinf" jdbcType="VARCHAR" />
<result column="SSTDAT" property="sstdat" jdbcType="TIMESTAMP" />
<result column="RCVDAT" property="rcvdat" jdbcType="TIMESTAMP" />
<result column="TRNDAT" property="trndat" jdbcType="TIMESTAMP" />
<result column="ORPMID" property="orpmid" jdbcType="VARCHAR" />
<result column="ORPINSPTY" property="orpinspty" jdbcType="VARCHAR" />
<result column="ORPINAPTY" property="orpinapty" jdbcType="VARCHAR" />
<result column="ORITYP" property="orityp" jdbcType="VARCHAR" />
<result column="ORIDAT" property="oridat" jdbcType="TIMESTAMP" />
<result column="ORISTS" property="orists" jdbcType="VARCHAR" />
<result column="OPINFO" property="opinfo" jdbcType="VARCHAR" />
<result column="ORIACCDAT" property="oriaccdat" jdbcType="TIMESTAMP" />
<result column="TRASTS" property="trasts" jdbcType="VARCHAR" />
<result column="BLLPAYSTS" property="bllpaysts" jdbcType="VARCHAR" />
<result column="REMARK" property="remark" jdbcType="VARCHAR" />
<result column="CURSYSSTS" property="cursyssts" jdbcType="VARCHAR" />
<result column="PRCCOD" property="prccod" jdbcType="OTHER" />
<result column="ENVMSGTYP" property="envmsgtyp" jdbcType="VARCHAR" />
<result column="MSGCNT" property="msgcnt" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
INR, ACT, AMT, CUR, DIR, GENDAT, MSGTYP, N20SHA, OTHREF, OWNREF, RCVBIC, SNDBIC,
ACTBIC, SUBTYP, TAGLST, TAGSHA, EXCMSG, VALDAT, RPSCOD, SNDNUM, T53BIC, SRCNUM, USRNAM,
DTLCHG, ETYINR, PTYINR, FLG, ACTSTA, FWDREF, FWDREF2, CJZSTA, BRANCH, GPI, UETR,
SYSTRACKN, ACCDAT, SELAMT, SELCUR, MSG71F, GPIVAL, LCNB, MSGID, SNDFLG, BIZTYP, EXPSETDAT,
PAYBIC, RECBIC, RCVINDBIC, SNDINDBIC, XDZSTA, ISMX, ENDTID, DETTYP, LOGINOPRTP, SID,
MTP, TXTPCD, CTGPCD, MID, CREDAT, INSGDP, INSDPL, INSGTY, INSGPL, INSDDP, INSDDL,
INSDTY, INSPDL, SYSCOD, RMK, ORGMID, ORGINSPTY, ORGINAPTY, ORGMSGTYP, ORGSNDDAT,
STSCOD, PRCMSGDIG, RSPMSG, PRCSTS, PROCCD, RJCINF, SSTDAT, RCVDAT, TRNDAT, ORPMID,
ORPINSPTY, ORPINAPTY, ORITYP, ORIDAT, ORISTS, OPINFO, ORIACCDAT, TRASTS, BLLPAYSTS,
REMARK, CURSYSSTS, PRCCOD, ENVMSGTYP, MSGCNT
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TEST.MPI
where INR = #{inr,jdbcType=CHAR}
</select>
<select id="getMpi" resultType="com.brilliance.entity.Mpi">
select * from mpi where othref = #{othref} and dir = #{dir}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TEST.MPI
where INR = #{inr,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.entity.Mpi" >
insert into TEST.MPI (INR, ACT, AMT, CUR,
DIR, GENDAT, MSGTYP,
N20SHA, OTHREF, OWNREF,
RCVBIC, SNDBIC, ACTBIC,
SUBTYP, TAGLST, TAGSHA,
EXCMSG, VALDAT, RPSCOD,
SNDNUM, T53BIC, SRCNUM,
USRNAM, DTLCHG, ETYINR,
PTYINR, FLG, ACTSTA, FWDREF,
FWDREF2, CJZSTA, BRANCH,
GPI, UETR, SYSTRACKN,
ACCDAT, SELAMT, SELCUR,
MSG71F, GPIVAL, LCNB,
MSGID, SNDFLG, BIZTYP,
EXPSETDAT, PAYBIC, RECBIC,
RCVINDBIC, SNDINDBIC, XDZSTA,
ISMX, ENDTID, DETTYP,
LOGINOPRTP, SID, MTP,
TXTPCD, CTGPCD, MID,
CREDAT, INSGDP, INSDPL,
INSGTY, INSGPL, INSDDP,
INSDDL, INSDTY, INSPDL,
SYSCOD, RMK, ORGMID,
ORGINSPTY, ORGINAPTY, ORGMSGTYP,
ORGSNDDAT, STSCOD, PRCMSGDIG,
RSPMSG, PRCSTS, PROCCD,
RJCINF, SSTDAT, RCVDAT,
TRNDAT, ORPMID, ORPINSPTY,
ORPINAPTY, ORITYP, ORIDAT,
ORISTS, OPINFO, ORIACCDAT,
TRASTS, BLLPAYSTS, REMARK,
CURSYSSTS, PRCCOD, ENVMSGTYP,
MSGCNT)
values (#{inr,jdbcType=CHAR}, #{act,jdbcType=VARCHAR}, #{amt,jdbcType=DECIMAL}, #{cur,jdbcType=VARCHAR},
#{dir,jdbcType=CHAR}, #{gendat,jdbcType=TIMESTAMP}, #{msgtyp,jdbcType=VARCHAR},
#{n20sha,jdbcType=VARCHAR}, #{othref,jdbcType=VARCHAR}, #{ownref,jdbcType=VARCHAR},
#{rcvbic,jdbcType=VARCHAR}, #{sndbic,jdbcType=VARCHAR}, #{actbic,jdbcType=VARCHAR},
#{subtyp,jdbcType=VARCHAR}, #{taglst,jdbcType=VARCHAR}, #{tagsha,jdbcType=VARCHAR},
#{excmsg,jdbcType=VARCHAR}, #{valdat,jdbcType=TIMESTAMP}, #{rpscod,jdbcType=VARCHAR},
#{sndnum,jdbcType=VARCHAR}, #{t53bic,jdbcType=VARCHAR}, #{srcnum,jdbcType=VARCHAR},
#{usrnam,jdbcType=VARCHAR}, #{dtlchg,jdbcType=VARCHAR}, #{etyinr,jdbcType=CHAR},
#{ptyinr,jdbcType=CHAR}, #{flg,jdbcType=CHAR}, #{actsta,jdbcType=VARCHAR}, #{fwdref,jdbcType=VARCHAR},
#{fwdref2,jdbcType=VARCHAR}, #{cjzsta,jdbcType=VARCHAR}, #{branch,jdbcType=VARCHAR},
#{gpi,jdbcType=VARCHAR}, #{uetr,jdbcType=VARCHAR}, #{systrackn,jdbcType=VARCHAR},
#{accdat,jdbcType=VARCHAR}, #{selamt,jdbcType=DECIMAL}, #{selcur,jdbcType=VARCHAR},
#{msg71f,jdbcType=VARCHAR}, #{gpival,jdbcType=VARCHAR}, #{lcnb,jdbcType=VARCHAR},
#{msgid,jdbcType=VARCHAR}, #{sndflg,jdbcType=VARCHAR}, #{biztyp,jdbcType=VARCHAR},
#{expsetdat,jdbcType=TIMESTAMP}, #{paybic,jdbcType=VARCHAR}, #{recbic,jdbcType=VARCHAR},
#{rcvindbic,jdbcType=VARCHAR}, #{sndindbic,jdbcType=VARCHAR}, #{xdzsta,jdbcType=VARCHAR},
#{ismx,jdbcType=DECIMAL}, #{endtid,jdbcType=DECIMAL}, #{dettyp,jdbcType=VARCHAR},
#{loginoprtp,jdbcType=VARCHAR}, #{sid,jdbcType=VARCHAR}, #{mtp,jdbcType=VARCHAR},
#{txtpcd,jdbcType=VARCHAR}, #{ctgpcd,jdbcType=VARCHAR}, #{mid,jdbcType=VARCHAR},
#{credat,jdbcType=TIMESTAMP}, #{insgdp,jdbcType=VARCHAR}, #{insdpl,jdbcType=VARCHAR},
#{insgty,jdbcType=VARCHAR}, #{insgpl,jdbcType=VARCHAR}, #{insddp,jdbcType=VARCHAR},
#{insddl,jdbcType=VARCHAR}, #{insdty,jdbcType=VARCHAR}, #{inspdl,jdbcType=VARCHAR},
#{syscod,jdbcType=VARCHAR}, #{rmk,jdbcType=VARCHAR}, #{orgmid,jdbcType=VARCHAR},
#{orginspty,jdbcType=VARCHAR}, #{orginapty,jdbcType=VARCHAR}, #{orgmsgtyp,jdbcType=VARCHAR},
#{orgsnddat,jdbcType=TIMESTAMP}, #{stscod,jdbcType=VARCHAR}, #{prcmsgdig,jdbcType=VARCHAR},
#{rspmsg,jdbcType=VARCHAR}, #{prcsts,jdbcType=VARCHAR}, #{proccd,jdbcType=VARCHAR},
#{rjcinf,jdbcType=VARCHAR}, #{sstdat,jdbcType=TIMESTAMP}, #{rcvdat,jdbcType=TIMESTAMP},
#{trndat,jdbcType=TIMESTAMP}, #{orpmid,jdbcType=VARCHAR}, #{orpinspty,jdbcType=VARCHAR},
#{orpinapty,jdbcType=VARCHAR}, #{orityp,jdbcType=VARCHAR}, #{oridat,jdbcType=TIMESTAMP},
#{orists,jdbcType=VARCHAR}, #{opinfo,jdbcType=VARCHAR}, #{oriaccdat,jdbcType=TIMESTAMP},
#{trasts,jdbcType=VARCHAR}, #{bllpaysts,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
#{cursyssts,jdbcType=VARCHAR}, #{prccod,jdbcType=OTHER}, #{envmsgtyp,jdbcType=VARCHAR},
#{msgcnt,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.brilliance.entity.Mpi" >
insert into TEST.MPI
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="inr != null" >
INR,
</if>
<if test="act != null" >
ACT,
</if>
<if test="amt != null" >
AMT,
</if>
<if test="cur != null" >
CUR,
</if>
<if test="dir != null" >
DIR,
</if>
<if test="gendat != null" >
GENDAT,
</if>
<if test="msgtyp != null" >
MSGTYP,
</if>
<if test="n20sha != null" >
N20SHA,
</if>
<if test="othref != null" >
OTHREF,
</if>
<if test="ownref != null" >
OWNREF,
</if>
<if test="rcvbic != null" >
RCVBIC,
</if>
<if test="sndbic != null" >
SNDBIC,
</if>
<if test="actbic != null" >
ACTBIC,
</if>
<if test="subtyp != null" >
SUBTYP,
</if>
<if test="taglst != null" >
TAGLST,
</if>
<if test="tagsha != null" >
TAGSHA,
</if>
<if test="excmsg != null" >
EXCMSG,
</if>
<if test="valdat != null" >
VALDAT,
</if>
<if test="rpscod != null" >
RPSCOD,
</if>
<if test="sndnum != null" >
SNDNUM,
</if>
<if test="t53bic != null" >
T53BIC,
</if>
<if test="srcnum != null" >
SRCNUM,
</if>
<if test="usrnam != null" >
USRNAM,
</if>
<if test="dtlchg != null" >
DTLCHG,
</if>
<if test="etyinr != null" >
ETYINR,
</if>
<if test="ptyinr != null" >
PTYINR,
</if>
<if test="flg != null" >
FLG,
</if>
<if test="actsta != null" >
ACTSTA,
</if>
<if test="fwdref != null" >
FWDREF,
</if>
<if test="fwdref2 != null" >
FWDREF2,
</if>
<if test="cjzsta != null" >
CJZSTA,
</if>
<if test="branch != null" >
BRANCH,
</if>
<if test="gpi != null" >
GPI,
</if>
<if test="uetr != null" >
UETR,
</if>
<if test="systrackn != null" >
SYSTRACKN,
</if>
<if test="accdat != null" >
ACCDAT,
</if>
<if test="selamt != null" >
SELAMT,
</if>
<if test="selcur != null" >
SELCUR,
</if>
<if test="msg71f != null" >
MSG71F,
</if>
<if test="gpival != null" >
GPIVAL,
</if>
<if test="lcnb != null" >
LCNB,
</if>
<if test="msgid != null" >
MSGID,
</if>
<if test="sndflg != null" >
SNDFLG,
</if>
<if test="biztyp != null" >
BIZTYP,
</if>
<if test="expsetdat != null" >
EXPSETDAT,
</if>
<if test="paybic != null" >
PAYBIC,
</if>
<if test="recbic != null" >
RECBIC,
</if>
<if test="rcvindbic != null" >
RCVINDBIC,
</if>
<if test="sndindbic != null" >
SNDINDBIC,
</if>
<if test="xdzsta != null" >
XDZSTA,
</if>
<if test="ismx != null" >
ISMX,
</if>
<if test="endtid != null" >
ENDTID,
</if>
<if test="dettyp != null" >
DETTYP,
</if>
<if test="loginoprtp != null" >
LOGINOPRTP,
</if>
<if test="sid != null" >
SID,
</if>
<if test="mtp != null" >
MTP,
</if>
<if test="txtpcd != null" >
TXTPCD,
</if>
<if test="ctgpcd != null" >
CTGPCD,
</if>
<if test="mid != null" >
MID,
</if>
<if test="credat != null" >
CREDAT,
</if>
<if test="insgdp != null" >
INSGDP,
</if>
<if test="insdpl != null" >
INSDPL,
</if>
<if test="insgty != null" >
INSGTY,
</if>
<if test="insgpl != null" >
INSGPL,
</if>
<if test="insddp != null" >
INSDDP,
</if>
<if test="insddl != null" >
INSDDL,
</if>
<if test="insdty != null" >
INSDTY,
</if>
<if test="inspdl != null" >
INSPDL,
</if>
<if test="syscod != null" >
SYSCOD,
</if>
<if test="rmk != null" >
RMK,
</if>
<if test="orgmid != null" >
ORGMID,
</if>
<if test="orginspty != null" >
ORGINSPTY,
</if>
<if test="orginapty != null" >
ORGINAPTY,
</if>
<if test="orgmsgtyp != null" >
ORGMSGTYP,
</if>
<if test="orgsnddat != null" >
ORGSNDDAT,
</if>
<if test="stscod != null" >
STSCOD,
</if>
<if test="prcmsgdig != null" >
PRCMSGDIG,
</if>
<if test="rspmsg != null" >
RSPMSG,
</if>
<if test="prcsts != null" >
PRCSTS,
</if>
<if test="proccd != null" >
PROCCD,
</if>
<if test="rjcinf != null" >
RJCINF,
</if>
<if test="sstdat != null" >
SSTDAT,
</if>
<if test="rcvdat != null" >
RCVDAT,
</if>
<if test="trndat != null" >
TRNDAT,
</if>
<if test="orpmid != null" >
ORPMID,
</if>
<if test="orpinspty != null" >
ORPINSPTY,
</if>
<if test="orpinapty != null" >
ORPINAPTY,
</if>
<if test="orityp != null" >
ORITYP,
</if>
<if test="oridat != null" >
ORIDAT,
</if>
<if test="orists != null" >
ORISTS,
</if>
<if test="opinfo != null" >
OPINFO,
</if>
<if test="oriaccdat != null" >
ORIACCDAT,
</if>
<if test="trasts != null" >
TRASTS,
</if>
<if test="bllpaysts != null" >
BLLPAYSTS,
</if>
<if test="remark != null" >
REMARK,
</if>
<if test="cursyssts != null" >
CURSYSSTS,
</if>
<if test="prccod != null" >
PRCCOD,
</if>
<if test="envmsgtyp != null" >
ENVMSGTYP,
</if>
<if test="msgcnt != null" >
MSGCNT,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="inr != null" >
#{inr,jdbcType=CHAR},
</if>
<if test="act != null" >
#{act,jdbcType=VARCHAR},
</if>
<if test="amt != null" >
#{amt,jdbcType=DECIMAL},
</if>
<if test="cur != null" >
#{cur,jdbcType=VARCHAR},
</if>
<if test="dir != null" >
#{dir,jdbcType=CHAR},
</if>
<if test="gendat != null" >
#{gendat,jdbcType=TIMESTAMP},
</if>
<if test="msgtyp != null" >
#{msgtyp,jdbcType=VARCHAR},
</if>
<if test="n20sha != null" >
#{n20sha,jdbcType=VARCHAR},
</if>
<if test="othref != null" >
#{othref,jdbcType=VARCHAR},
</if>
<if test="ownref != null" >
#{ownref,jdbcType=VARCHAR},
</if>
<if test="rcvbic != null" >
#{rcvbic,jdbcType=VARCHAR},
</if>
<if test="sndbic != null" >
#{sndbic,jdbcType=VARCHAR},
</if>
<if test="actbic != null" >
#{actbic,jdbcType=VARCHAR},
</if>
<if test="subtyp != null" >
#{subtyp,jdbcType=VARCHAR},
</if>
<if test="taglst != null" >
#{taglst,jdbcType=VARCHAR},
</if>
<if test="tagsha != null" >
#{tagsha,jdbcType=VARCHAR},
</if>
<if test="excmsg != null" >
#{excmsg,jdbcType=VARCHAR},
</if>
<if test="valdat != null" >
#{valdat,jdbcType=TIMESTAMP},
</if>
<if test="rpscod != null" >
#{rpscod,jdbcType=VARCHAR},
</if>
<if test="sndnum != null" >
#{sndnum,jdbcType=VARCHAR},
</if>
<if test="t53bic != null" >
#{t53bic,jdbcType=VARCHAR},
</if>
<if test="srcnum != null" >
#{srcnum,jdbcType=VARCHAR},
</if>
<if test="usrnam != null" >
#{usrnam,jdbcType=VARCHAR},
</if>
<if test="dtlchg != null" >
#{dtlchg,jdbcType=VARCHAR},
</if>
<if test="etyinr != null" >
#{etyinr,jdbcType=CHAR},
</if>
<if test="ptyinr != null" >
#{ptyinr,jdbcType=CHAR},
</if>
<if test="flg != null" >
#{flg,jdbcType=CHAR},
</if>
<if test="actsta != null" >
#{actsta,jdbcType=VARCHAR},
</if>
<if test="fwdref != null" >
#{fwdref,jdbcType=VARCHAR},
</if>
<if test="fwdref2 != null" >
#{fwdref2,jdbcType=VARCHAR},
</if>
<if test="cjzsta != null" >
#{cjzsta,jdbcType=VARCHAR},
</if>
<if test="branch != null" >
#{branch,jdbcType=VARCHAR},
</if>
<if test="gpi != null" >
#{gpi,jdbcType=VARCHAR},
</if>
<if test="uetr != null" >
#{uetr,jdbcType=VARCHAR},
</if>
<if test="systrackn != null" >
#{systrackn,jdbcType=VARCHAR},
</if>
<if test="accdat != null" >
#{accdat,jdbcType=VARCHAR},
</if>
<if test="selamt != null" >
#{selamt,jdbcType=DECIMAL},
</if>
<if test="selcur != null" >
#{selcur,jdbcType=VARCHAR},
</if>
<if test="msg71f != null" >
#{msg71f,jdbcType=VARCHAR},
</if>
<if test="gpival != null" >
#{gpival,jdbcType=VARCHAR},
</if>
<if test="lcnb != null" >
#{lcnb,jdbcType=VARCHAR},
</if>
<if test="msgid != null" >
#{msgid,jdbcType=VARCHAR},
</if>
<if test="sndflg != null" >
#{sndflg,jdbcType=VARCHAR},
</if>
<if test="biztyp != null" >
#{biztyp,jdbcType=VARCHAR},
</if>
<if test="expsetdat != null" >
#{expsetdat,jdbcType=TIMESTAMP},
</if>
<if test="paybic != null" >
#{paybic,jdbcType=VARCHAR},
</if>
<if test="recbic != null" >
#{recbic,jdbcType=VARCHAR},
</if>
<if test="rcvindbic != null" >
#{rcvindbic,jdbcType=VARCHAR},
</if>
<if test="sndindbic != null" >
#{sndindbic,jdbcType=VARCHAR},
</if>
<if test="xdzsta != null" >
#{xdzsta,jdbcType=VARCHAR},
</if>
<if test="ismx != null" >
#{ismx,jdbcType=DECIMAL},
</if>
<if test="endtid != null" >
#{endtid,jdbcType=DECIMAL},
</if>
<if test="dettyp != null" >
#{dettyp,jdbcType=VARCHAR},
</if>
<if test="loginoprtp != null" >
#{loginoprtp,jdbcType=VARCHAR},
</if>
<if test="sid != null" >
#{sid,jdbcType=VARCHAR},
</if>
<if test="mtp != null" >
#{mtp,jdbcType=VARCHAR},
</if>
<if test="txtpcd != null" >
#{txtpcd,jdbcType=VARCHAR},
</if>
<if test="ctgpcd != null" >
#{ctgpcd,jdbcType=VARCHAR},
</if>
<if test="mid != null" >
#{mid,jdbcType=VARCHAR},
</if>
<if test="credat != null" >
#{credat,jdbcType=TIMESTAMP},
</if>
<if test="insgdp != null" >
#{insgdp,jdbcType=VARCHAR},
</if>
<if test="insdpl != null" >
#{insdpl,jdbcType=VARCHAR},
</if>
<if test="insgty != null" >
#{insgty,jdbcType=VARCHAR},
</if>
<if test="insgpl != null" >
#{insgpl,jdbcType=VARCHAR},
</if>
<if test="insddp != null" >
#{insddp,jdbcType=VARCHAR},
</if>
<if test="insddl != null" >
#{insddl,jdbcType=VARCHAR},
</if>
<if test="insdty != null" >
#{insdty,jdbcType=VARCHAR},
</if>
<if test="inspdl != null" >
#{inspdl,jdbcType=VARCHAR},
</if>
<if test="syscod != null" >
#{syscod,jdbcType=VARCHAR},
</if>
<if test="rmk != null" >
#{rmk,jdbcType=VARCHAR},
</if>
<if test="orgmid != null" >
#{orgmid,jdbcType=VARCHAR},
</if>
<if test="orginspty != null" >
#{orginspty,jdbcType=VARCHAR},
</if>
<if test="orginapty != null" >
#{orginapty,jdbcType=VARCHAR},
</if>
<if test="orgmsgtyp != null" >
#{orgmsgtyp,jdbcType=VARCHAR},
</if>
<if test="orgsnddat != null" >
#{orgsnddat,jdbcType=TIMESTAMP},
</if>
<if test="stscod != null" >
#{stscod,jdbcType=VARCHAR},
</if>
<if test="prcmsgdig != null" >
#{prcmsgdig,jdbcType=VARCHAR},
</if>
<if test="rspmsg != null" >
#{rspmsg,jdbcType=VARCHAR},
</if>
<if test="prcsts != null" >
#{prcsts,jdbcType=VARCHAR},
</if>
<if test="proccd != null" >
#{proccd,jdbcType=VARCHAR},
</if>
<if test="rjcinf != null" >
#{rjcinf,jdbcType=VARCHAR},
</if>
<if test="sstdat != null" >
#{sstdat,jdbcType=TIMESTAMP},
</if>
<if test="rcvdat != null" >
#{rcvdat,jdbcType=TIMESTAMP},
</if>
<if test="trndat != null" >
#{trndat,jdbcType=TIMESTAMP},
</if>
<if test="orpmid != null" >
#{orpmid,jdbcType=VARCHAR},
</if>
<if test="orpinspty != null" >
#{orpinspty,jdbcType=VARCHAR},
</if>
<if test="orpinapty != null" >
#{orpinapty,jdbcType=VARCHAR},
</if>
<if test="orityp != null" >
#{orityp,jdbcType=VARCHAR},
</if>
<if test="oridat != null" >
#{oridat,jdbcType=TIMESTAMP},
</if>
<if test="orists != null" >
#{orists,jdbcType=VARCHAR},
</if>
<if test="opinfo != null" >
#{opinfo,jdbcType=VARCHAR},
</if>
<if test="oriaccdat != null" >
#{oriaccdat,jdbcType=TIMESTAMP},
</if>
<if test="trasts != null" >
#{trasts,jdbcType=VARCHAR},
</if>
<if test="bllpaysts != null" >
#{bllpaysts,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
#{remark,jdbcType=VARCHAR},
</if>
<if test="cursyssts != null" >
#{cursyssts,jdbcType=VARCHAR},
</if>
<if test="prccod != null" >
#{prccod,jdbcType=OTHER},
</if>
<if test="envmsgtyp != null" >
#{envmsgtyp,jdbcType=VARCHAR},
</if>
<if test="msgcnt != null" >
#{msgcnt,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.entity.Mpi" >
update TEST.MPI
<set >
<if test="act != null" >
ACT = #{act,jdbcType=VARCHAR},
</if>
<if test="amt != null" >
AMT = #{amt,jdbcType=DECIMAL},
</if>
<if test="cur != null" >
CUR = #{cur,jdbcType=VARCHAR},
</if>
<if test="dir != null" >
DIR = #{dir,jdbcType=CHAR},
</if>
<if test="gendat != null" >
GENDAT = #{gendat,jdbcType=TIMESTAMP},
</if>
<if test="msgtyp != null" >
MSGTYP = #{msgtyp,jdbcType=VARCHAR},
</if>
<if test="n20sha != null" >
N20SHA = #{n20sha,jdbcType=VARCHAR},
</if>
<if test="othref != null" >
OTHREF = #{othref,jdbcType=VARCHAR},
</if>
<if test="ownref != null" >
OWNREF = #{ownref,jdbcType=VARCHAR},
</if>
<if test="rcvbic != null" >
RCVBIC = #{rcvbic,jdbcType=VARCHAR},
</if>
<if test="sndbic != null" >
SNDBIC = #{sndbic,jdbcType=VARCHAR},
</if>
<if test="actbic != null" >
ACTBIC = #{actbic,jdbcType=VARCHAR},
</if>
<if test="subtyp != null" >
SUBTYP = #{subtyp,jdbcType=VARCHAR},
</if>
<if test="taglst != null" >
TAGLST = #{taglst,jdbcType=VARCHAR},
</if>
<if test="tagsha != null" >
TAGSHA = #{tagsha,jdbcType=VARCHAR},
</if>
<if test="excmsg != null" >
EXCMSG = #{excmsg,jdbcType=VARCHAR},
</if>
<if test="valdat != null" >
VALDAT = #{valdat,jdbcType=TIMESTAMP},
</if>
<if test="rpscod != null" >
RPSCOD = #{rpscod,jdbcType=VARCHAR},
</if>
<if test="sndnum != null" >
SNDNUM = #{sndnum,jdbcType=VARCHAR},
</if>
<if test="t53bic != null" >
T53BIC = #{t53bic,jdbcType=VARCHAR},
</if>
<if test="srcnum != null" >
SRCNUM = #{srcnum,jdbcType=VARCHAR},
</if>
<if test="usrnam != null" >
USRNAM = #{usrnam,jdbcType=VARCHAR},
</if>
<if test="dtlchg != null" >
DTLCHG = #{dtlchg,jdbcType=VARCHAR},
</if>
<if test="etyinr != null" >
ETYINR = #{etyinr,jdbcType=CHAR},
</if>
<if test="ptyinr != null" >
PTYINR = #{ptyinr,jdbcType=CHAR},
</if>
<if test="flg != null" >
FLG = #{flg,jdbcType=CHAR},
</if>
<if test="actsta != null" >
ACTSTA = #{actsta,jdbcType=VARCHAR},
</if>
<if test="fwdref != null" >
FWDREF = #{fwdref,jdbcType=VARCHAR},
</if>
<if test="fwdref2 != null" >
FWDREF2 = #{fwdref2,jdbcType=VARCHAR},
</if>
<if test="cjzsta != null" >
CJZSTA = #{cjzsta,jdbcType=VARCHAR},
</if>
<if test="branch != null" >
BRANCH = #{branch,jdbcType=VARCHAR},
</if>
<if test="gpi != null" >
GPI = #{gpi,jdbcType=VARCHAR},
</if>
<if test="uetr != null" >
UETR = #{uetr,jdbcType=VARCHAR},
</if>
<if test="systrackn != null" >
SYSTRACKN = #{systrackn,jdbcType=VARCHAR},
</if>
<if test="accdat != null" >
ACCDAT = #{accdat,jdbcType=VARCHAR},
</if>
<if test="selamt != null" >
SELAMT = #{selamt,jdbcType=DECIMAL},
</if>
<if test="selcur != null" >
SELCUR = #{selcur,jdbcType=VARCHAR},
</if>
<if test="msg71f != null" >
MSG71F = #{msg71f,jdbcType=VARCHAR},
</if>
<if test="gpival != null" >
GPIVAL = #{gpival,jdbcType=VARCHAR},
</if>
<if test="lcnb != null" >
LCNB = #{lcnb,jdbcType=VARCHAR},
</if>
<if test="msgid != null" >
MSGID = #{msgid,jdbcType=VARCHAR},
</if>
<if test="sndflg != null" >
SNDFLG = #{sndflg,jdbcType=VARCHAR},
</if>
<if test="biztyp != null" >
BIZTYP = #{biztyp,jdbcType=VARCHAR},
</if>
<if test="expsetdat != null" >
EXPSETDAT = #{expsetdat,jdbcType=TIMESTAMP},
</if>
<if test="paybic != null" >
PAYBIC = #{paybic,jdbcType=VARCHAR},
</if>
<if test="recbic != null" >
RECBIC = #{recbic,jdbcType=VARCHAR},
</if>
<if test="rcvindbic != null" >
RCVINDBIC = #{rcvindbic,jdbcType=VARCHAR},
</if>
<if test="sndindbic != null" >
SNDINDBIC = #{sndindbic,jdbcType=VARCHAR},
</if>
<if test="xdzsta != null" >
XDZSTA = #{xdzsta,jdbcType=VARCHAR},
</if>
<if test="ismx != null" >
ISMX = #{ismx,jdbcType=DECIMAL},
</if>
<if test="endtid != null" >
ENDTID = #{endtid,jdbcType=DECIMAL},
</if>
<if test="dettyp != null" >
DETTYP = #{dettyp,jdbcType=VARCHAR},
</if>
<if test="loginoprtp != null" >
LOGINOPRTP = #{loginoprtp,jdbcType=VARCHAR},
</if>
<if test="sid != null" >
SID = #{sid,jdbcType=VARCHAR},
</if>
<if test="mtp != null" >
MTP = #{mtp,jdbcType=VARCHAR},
</if>
<if test="txtpcd != null" >
TXTPCD = #{txtpcd,jdbcType=VARCHAR},
</if>
<if test="ctgpcd != null" >
CTGPCD = #{ctgpcd,jdbcType=VARCHAR},
</if>
<if test="mid != null" >
MID = #{mid,jdbcType=VARCHAR},
</if>
<if test="credat != null" >
CREDAT = #{credat,jdbcType=TIMESTAMP},
</if>
<if test="insgdp != null" >
INSGDP = #{insgdp,jdbcType=VARCHAR},
</if>
<if test="insdpl != null" >
INSDPL = #{insdpl,jdbcType=VARCHAR},
</if>
<if test="insgty != null" >
INSGTY = #{insgty,jdbcType=VARCHAR},
</if>
<if test="insgpl != null" >
INSGPL = #{insgpl,jdbcType=VARCHAR},
</if>
<if test="insddp != null" >
INSDDP = #{insddp,jdbcType=VARCHAR},
</if>
<if test="insddl != null" >
INSDDL = #{insddl,jdbcType=VARCHAR},
</if>
<if test="insdty != null" >
INSDTY = #{insdty,jdbcType=VARCHAR},
</if>
<if test="inspdl != null" >
INSPDL = #{inspdl,jdbcType=VARCHAR},
</if>
<if test="syscod != null" >
SYSCOD = #{syscod,jdbcType=VARCHAR},
</if>
<if test="rmk != null" >
RMK = #{rmk,jdbcType=VARCHAR},
</if>
<if test="orgmid != null" >
ORGMID = #{orgmid,jdbcType=VARCHAR},
</if>
<if test="orginspty != null" >
ORGINSPTY = #{orginspty,jdbcType=VARCHAR},
</if>
<if test="orginapty != null" >
ORGINAPTY = #{orginapty,jdbcType=VARCHAR},
</if>
<if test="orgmsgtyp != null" >
ORGMSGTYP = #{orgmsgtyp,jdbcType=VARCHAR},
</if>
<if test="orgsnddat != null" >
ORGSNDDAT = #{orgsnddat,jdbcType=TIMESTAMP},
</if>
<if test="stscod != null" >
STSCOD = #{stscod,jdbcType=VARCHAR},
</if>
<if test="prcmsgdig != null" >
PRCMSGDIG = #{prcmsgdig,jdbcType=VARCHAR},
</if>
<if test="rspmsg != null" >
RSPMSG = #{rspmsg,jdbcType=VARCHAR},
</if>
<if test="prcsts != null" >
PRCSTS = #{prcsts,jdbcType=VARCHAR},
</if>
<if test="proccd != null" >
PROCCD = #{proccd,jdbcType=VARCHAR},
</if>
<if test="rjcinf != null" >
RJCINF = #{rjcinf,jdbcType=VARCHAR},
</if>
<if test="sstdat != null" >
SSTDAT = #{sstdat,jdbcType=TIMESTAMP},
</if>
<if test="rcvdat != null" >
RCVDAT = #{rcvdat,jdbcType=TIMESTAMP},
</if>
<if test="trndat != null" >
TRNDAT = #{trndat,jdbcType=TIMESTAMP},
</if>
<if test="orpmid != null" >
ORPMID = #{orpmid,jdbcType=VARCHAR},
</if>
<if test="orpinspty != null" >
ORPINSPTY = #{orpinspty,jdbcType=VARCHAR},
</if>
<if test="orpinapty != null" >
ORPINAPTY = #{orpinapty,jdbcType=VARCHAR},
</if>
<if test="orityp != null" >
ORITYP = #{orityp,jdbcType=VARCHAR},
</if>
<if test="oridat != null" >
ORIDAT = #{oridat,jdbcType=TIMESTAMP},
</if>
<if test="orists != null" >
ORISTS = #{orists,jdbcType=VARCHAR},
</if>
<if test="opinfo != null" >
OPINFO = #{opinfo,jdbcType=VARCHAR},
</if>
<if test="oriaccdat != null" >
ORIACCDAT = #{oriaccdat,jdbcType=TIMESTAMP},
</if>
<if test="trasts != null" >
TRASTS = #{trasts,jdbcType=VARCHAR},
</if>
<if test="bllpaysts != null" >
BLLPAYSTS = #{bllpaysts,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
REMARK = #{remark,jdbcType=VARCHAR},
</if>
<if test="cursyssts != null" >
CURSYSSTS = #{cursyssts,jdbcType=VARCHAR},
</if>
<if test="prccod != null" >
PRCCOD = #{prccod,jdbcType=OTHER},
</if>
<if test="envmsgtyp != null" >
ENVMSGTYP = #{envmsgtyp,jdbcType=VARCHAR},
</if>
<if test="msgcnt != null" >
MSGCNT = #{msgcnt,jdbcType=VARCHAR},
</if>
</set>
where INR = #{inr,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.entity.Mpi" >
update TEST.MPI
set ACT = #{act,jdbcType=VARCHAR},
AMT = #{amt,jdbcType=DECIMAL},
CUR = #{cur,jdbcType=VARCHAR},
DIR = #{dir,jdbcType=CHAR},
GENDAT = #{gendat,jdbcType=TIMESTAMP},
MSGTYP = #{msgtyp,jdbcType=VARCHAR},
N20SHA = #{n20sha,jdbcType=VARCHAR},
OTHREF = #{othref,jdbcType=VARCHAR},
OWNREF = #{ownref,jdbcType=VARCHAR},
RCVBIC = #{rcvbic,jdbcType=VARCHAR},
SNDBIC = #{sndbic,jdbcType=VARCHAR},
ACTBIC = #{actbic,jdbcType=VARCHAR},
SUBTYP = #{subtyp,jdbcType=VARCHAR},
TAGLST = #{taglst,jdbcType=VARCHAR},
TAGSHA = #{tagsha,jdbcType=VARCHAR},
EXCMSG = #{excmsg,jdbcType=VARCHAR},
VALDAT = #{valdat,jdbcType=TIMESTAMP},
RPSCOD = #{rpscod,jdbcType=VARCHAR},
SNDNUM = #{sndnum,jdbcType=VARCHAR},
T53BIC = #{t53bic,jdbcType=VARCHAR},
SRCNUM = #{srcnum,jdbcType=VARCHAR},
USRNAM = #{usrnam,jdbcType=VARCHAR},
DTLCHG = #{dtlchg,jdbcType=VARCHAR},
ETYINR = #{etyinr,jdbcType=CHAR},
PTYINR = #{ptyinr,jdbcType=CHAR},
FLG = #{flg,jdbcType=CHAR},
ACTSTA = #{actsta,jdbcType=VARCHAR},
FWDREF = #{fwdref,jdbcType=VARCHAR},
FWDREF2 = #{fwdref2,jdbcType=VARCHAR},
CJZSTA = #{cjzsta,jdbcType=VARCHAR},
BRANCH = #{branch,jdbcType=VARCHAR},
GPI = #{gpi,jdbcType=VARCHAR},
UETR = #{uetr,jdbcType=VARCHAR},
SYSTRACKN = #{systrackn,jdbcType=VARCHAR},
ACCDAT = #{accdat,jdbcType=VARCHAR},
SELAMT = #{selamt,jdbcType=DECIMAL},
SELCUR = #{selcur,jdbcType=VARCHAR},
MSG71F = #{msg71f,jdbcType=VARCHAR},
GPIVAL = #{gpival,jdbcType=VARCHAR},
LCNB = #{lcnb,jdbcType=VARCHAR},
MSGID = #{msgid,jdbcType=VARCHAR},
SNDFLG = #{sndflg,jdbcType=VARCHAR},
BIZTYP = #{biztyp,jdbcType=VARCHAR},
EXPSETDAT = #{expsetdat,jdbcType=TIMESTAMP},
PAYBIC = #{paybic,jdbcType=VARCHAR},
RECBIC = #{recbic,jdbcType=VARCHAR},
RCVINDBIC = #{rcvindbic,jdbcType=VARCHAR},
SNDINDBIC = #{sndindbic,jdbcType=VARCHAR},
XDZSTA = #{xdzsta,jdbcType=VARCHAR},
ISMX = #{ismx,jdbcType=DECIMAL},
ENDTID = #{endtid,jdbcType=DECIMAL},
DETTYP = #{dettyp,jdbcType=VARCHAR},
LOGINOPRTP = #{loginoprtp,jdbcType=VARCHAR},
SID = #{sid,jdbcType=VARCHAR},
MTP = #{mtp,jdbcType=VARCHAR},
TXTPCD = #{txtpcd,jdbcType=VARCHAR},
CTGPCD = #{ctgpcd,jdbcType=VARCHAR},
MID = #{mid,jdbcType=VARCHAR},
CREDAT = #{credat,jdbcType=TIMESTAMP},
INSGDP = #{insgdp,jdbcType=VARCHAR},
INSDPL = #{insdpl,jdbcType=VARCHAR},
INSGTY = #{insgty,jdbcType=VARCHAR},
INSGPL = #{insgpl,jdbcType=VARCHAR},
INSDDP = #{insddp,jdbcType=VARCHAR},
INSDDL = #{insddl,jdbcType=VARCHAR},
INSDTY = #{insdty,jdbcType=VARCHAR},
INSPDL = #{inspdl,jdbcType=VARCHAR},
SYSCOD = #{syscod,jdbcType=VARCHAR},
RMK = #{rmk,jdbcType=VARCHAR},
ORGMID = #{orgmid,jdbcType=VARCHAR},
ORGINSPTY = #{orginspty,jdbcType=VARCHAR},
ORGINAPTY = #{orginapty,jdbcType=VARCHAR},
ORGMSGTYP = #{orgmsgtyp,jdbcType=VARCHAR},
ORGSNDDAT = #{orgsnddat,jdbcType=TIMESTAMP},
STSCOD = #{stscod,jdbcType=VARCHAR},
PRCMSGDIG = #{prcmsgdig,jdbcType=VARCHAR},
RSPMSG = #{rspmsg,jdbcType=VARCHAR},
PRCSTS = #{prcsts,jdbcType=VARCHAR},
PROCCD = #{proccd,jdbcType=VARCHAR},
RJCINF = #{rjcinf,jdbcType=VARCHAR},
SSTDAT = #{sstdat,jdbcType=TIMESTAMP},
RCVDAT = #{rcvdat,jdbcType=TIMESTAMP},
TRNDAT = #{trndat,jdbcType=TIMESTAMP},
ORPMID = #{orpmid,jdbcType=VARCHAR},
ORPINSPTY = #{orpinspty,jdbcType=VARCHAR},
ORPINAPTY = #{orpinapty,jdbcType=VARCHAR},
ORITYP = #{orityp,jdbcType=VARCHAR},
ORIDAT = #{oridat,jdbcType=TIMESTAMP},
ORISTS = #{orists,jdbcType=VARCHAR},
OPINFO = #{opinfo,jdbcType=VARCHAR},
ORIACCDAT = #{oriaccdat,jdbcType=TIMESTAMP},
TRASTS = #{trasts,jdbcType=VARCHAR},
BLLPAYSTS = #{bllpaysts,jdbcType=VARCHAR},
REMARK = #{remark,jdbcType=VARCHAR},
CURSYSSTS = #{cursyssts,jdbcType=VARCHAR},
PRCCOD = #{prccod,jdbcType=OTHER},
ENVMSGTYP = #{envmsgtyp,jdbcType=VARCHAR},
MSGCNT = #{msgcnt,jdbcType=VARCHAR}
where INR = #{inr,jdbcType=CHAR}
</update>
</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.mapper.MpsMapper" >
<resultMap id="BaseResultMap" type="com.brilliance.entity.Mps" >
<id column="INR" property="inr" jdbcType="CHAR" />
<result column="CHNCOD" property="chncod" jdbcType="VARCHAR" />
<result column="DIR" property="dir" jdbcType="CHAR" />
<result column="LSTDATTIM" property="lstdattim" jdbcType="TIMESTAMP" />
<result column="NXTCHNCOD" property="nxtchncod" jdbcType="VARCHAR" />
<result column="PNTINR" property="pntinr" jdbcType="VARCHAR" />
<result column="RCVDATTIM" property="rcvdattim" jdbcType="TIMESTAMP" />
<result column="RSPDATTIM" property="rspdattim" jdbcType="TIMESTAMP" />
<result column="RSPSTA" property="rspsta" jdbcType="CHAR" />
<result column="SMHINR" property="smhinr" jdbcType="VARCHAR" />
<result column="SNDDATTIM" property="snddattim" jdbcType="TIMESTAMP" />
<result column="SRCCHNCOD" property="srcchncod" jdbcType="VARCHAR" />
<result column="STA" property="sta" jdbcType="CHAR" />
<result column="NXTSTA" property="nxtsta" jdbcType="CHAR" />
<result column="STP" property="stp" jdbcType="VARCHAR" />
<result column="STTDATTIM" property="sttdattim" jdbcType="TIMESTAMP" />
<result column="TGTCHNCOD" property="tgtchncod" jdbcType="VARCHAR" />
<result column="TGTDATTIME" property="tgtdattime" jdbcType="TIMESTAMP" />
<result column="ISMAN" property="isman" jdbcType="VARCHAR" />
<result column="ISBLK" property="isblk" jdbcType="VARCHAR" />
<result column="ETYINR" property="etyinr" jdbcType="CHAR" />
<result column="PTYINR" property="ptyinr" jdbcType="CHAR" />
<result column="FLG" property="flg" jdbcType="CHAR" />
<result column="RSPCOD" property="rspcod" jdbcType="VARCHAR" />
<result column="REPTRKSTA" property="reptrksta" jdbcType="VARCHAR" />
<result column="SWETYP" property="swetyp" jdbcType="VARCHAR" />
<result column="SWEACK" property="sweack" jdbcType="VARCHAR" />
<result column="RPTSTA" property="rptsta" jdbcType="VARCHAR" />
<result column="MESSAGEID" property="messageid" jdbcType="VARCHAR" />
<result column="BLKTYP" property="blktyp" jdbcType="VARCHAR" />
<result column="XHXFLG" property="xhxflg" jdbcType="CHAR" />
<result column="ISMX" property="ismx" jdbcType="DECIMAL" />
</resultMap>
<sql id="Base_Column_List" >
INR, CHNCOD, DIR, LSTDATTIM, NXTCHNCOD, PNTINR, RCVDATTIM, RSPDATTIM, RSPSTA, SMHINR,
SNDDATTIM, SRCCHNCOD, STA, NXTSTA, STP, STTDATTIM, TGTCHNCOD, TGTDATTIME, ISMAN,
ISBLK, ETYINR, PTYINR, FLG, RSPCOD, REPTRKSTA, SWETYP, SWEACK, RPTSTA, MESSAGEID,
BLKTYP, XHXFLG, ISMX
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TEST.MPS
where INR = #{inr,jdbcType=CHAR}
</select>
<select id="getMpsList" resultType="com.brilliance.entity.Mps">
select * from mps
where 1=1
<if test="nxtchncod != null">
and nxtchncod = #{nxtchncod}
</if>
<if test="dir != null">
and dir = #{dir}
</if>
<if test="sta != null">
and sta = #{sta}
</if>
<if test="sttdattim != null">
and sttdattim &lt;= #{sttdattim}
</if>
<if test="orderBy != null">
order by #{orderBy}
</if>
</select>
<select id="counterMps" resultType="java.lang.Integer">
select count(*) cnt from mps where dir=#{dir}
</select>
<select id="getSrcchncod" resultType="java.lang.String">
select srcchncod from mps where inr=#{inr}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TEST.MPS
where INR = #{inr,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.entity.Mps" >
insert into TEST.MPS (INR, CHNCOD, DIR, LSTDATTIM,
NXTCHNCOD, PNTINR, RCVDATTIM,
RSPDATTIM, RSPSTA, SMHINR,
SNDDATTIM, SRCCHNCOD, STA,
NXTSTA, STP, STTDATTIM,
TGTCHNCOD, TGTDATTIME, ISMAN,
ISBLK, ETYINR, PTYINR, FLG,
RSPCOD, REPTRKSTA, SWETYP,
SWEACK, RPTSTA, MESSAGEID,
BLKTYP, XHXFLG, ISMX)
values (#{inr,jdbcType=CHAR}, #{chncod,jdbcType=VARCHAR}, #{dir,jdbcType=CHAR}, #{lstdattim,jdbcType=TIMESTAMP},
#{nxtchncod,jdbcType=VARCHAR}, #{pntinr,jdbcType=VARCHAR}, #{rcvdattim,jdbcType=TIMESTAMP},
#{rspdattim,jdbcType=TIMESTAMP}, #{rspsta,jdbcType=CHAR}, #{smhinr,jdbcType=VARCHAR},
#{snddattim,jdbcType=TIMESTAMP}, #{srcchncod,jdbcType=VARCHAR}, #{sta,jdbcType=CHAR},
#{nxtsta,jdbcType=CHAR}, #{stp,jdbcType=VARCHAR}, #{sttdattim,jdbcType=TIMESTAMP},
#{tgtchncod,jdbcType=VARCHAR}, #{tgtdattime,jdbcType=TIMESTAMP}, #{isman,jdbcType=VARCHAR},
#{isblk,jdbcType=VARCHAR}, #{etyinr,jdbcType=CHAR}, #{ptyinr,jdbcType=CHAR}, #{flg,jdbcType=CHAR},
#{rspcod,jdbcType=VARCHAR}, #{reptrksta,jdbcType=VARCHAR}, #{swetyp,jdbcType=VARCHAR},
#{sweack,jdbcType=VARCHAR}, #{rptsta,jdbcType=VARCHAR}, #{messageid,jdbcType=VARCHAR},
#{blktyp,jdbcType=VARCHAR}, #{xhxflg,jdbcType=CHAR}, #{ismx,jdbcType=DECIMAL})
</insert>
<insert id="insertSelective" parameterType="com.brilliance.entity.Mps" >
insert into TEST.MPS
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="inr != null" >
INR,
</if>
<if test="chncod != null" >
CHNCOD,
</if>
<if test="dir != null" >
DIR,
</if>
<if test="lstdattim != null" >
LSTDATTIM,
</if>
<if test="nxtchncod != null" >
NXTCHNCOD,
</if>
<if test="pntinr != null" >
PNTINR,
</if>
<if test="rcvdattim != null" >
RCVDATTIM,
</if>
<if test="rspdattim != null" >
RSPDATTIM,
</if>
<if test="rspsta != null" >
RSPSTA,
</if>
<if test="smhinr != null" >
SMHINR,
</if>
<if test="snddattim != null" >
SNDDATTIM,
</if>
<if test="srcchncod != null" >
SRCCHNCOD,
</if>
<if test="sta != null" >
STA,
</if>
<if test="nxtsta != null" >
NXTSTA,
</if>
<if test="stp != null" >
STP,
</if>
<if test="sttdattim != null" >
STTDATTIM,
</if>
<if test="tgtchncod != null" >
TGTCHNCOD,
</if>
<if test="tgtdattime != null" >
TGTDATTIME,
</if>
<if test="isman != null" >
ISMAN,
</if>
<if test="isblk != null" >
ISBLK,
</if>
<if test="etyinr != null" >
ETYINR,
</if>
<if test="ptyinr != null" >
PTYINR,
</if>
<if test="flg != null" >
FLG,
</if>
<if test="rspcod != null" >
RSPCOD,
</if>
<if test="reptrksta != null" >
REPTRKSTA,
</if>
<if test="swetyp != null" >
SWETYP,
</if>
<if test="sweack != null" >
SWEACK,
</if>
<if test="rptsta != null" >
RPTSTA,
</if>
<if test="messageid != null" >
MESSAGEID,
</if>
<if test="blktyp != null" >
BLKTYP,
</if>
<if test="xhxflg != null" >
XHXFLG,
</if>
<if test="ismx != null" >
ISMX,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="inr != null" >
#{inr,jdbcType=CHAR},
</if>
<if test="chncod != null" >
#{chncod,jdbcType=VARCHAR},
</if>
<if test="dir != null" >
#{dir,jdbcType=CHAR},
</if>
<if test="lstdattim != null" >
#{lstdattim,jdbcType=TIMESTAMP},
</if>
<if test="nxtchncod != null" >
#{nxtchncod,jdbcType=VARCHAR},
</if>
<if test="pntinr != null" >
#{pntinr,jdbcType=VARCHAR},
</if>
<if test="rcvdattim != null" >
#{rcvdattim,jdbcType=TIMESTAMP},
</if>
<if test="rspdattim != null" >
#{rspdattim,jdbcType=TIMESTAMP},
</if>
<if test="rspsta != null" >
#{rspsta,jdbcType=CHAR},
</if>
<if test="smhinr != null" >
#{smhinr,jdbcType=VARCHAR},
</if>
<if test="snddattim != null" >
#{snddattim,jdbcType=TIMESTAMP},
</if>
<if test="srcchncod != null" >
#{srcchncod,jdbcType=VARCHAR},
</if>
<if test="sta != null" >
#{sta,jdbcType=CHAR},
</if>
<if test="nxtsta != null" >
#{nxtsta,jdbcType=CHAR},
</if>
<if test="stp != null" >
#{stp,jdbcType=VARCHAR},
</if>
<if test="sttdattim != null" >
#{sttdattim,jdbcType=TIMESTAMP},
</if>
<if test="tgtchncod != null" >
#{tgtchncod,jdbcType=VARCHAR},
</if>
<if test="tgtdattime != null" >
#{tgtdattime,jdbcType=TIMESTAMP},
</if>
<if test="isman != null" >
#{isman,jdbcType=VARCHAR},
</if>
<if test="isblk != null" >
#{isblk,jdbcType=VARCHAR},
</if>
<if test="etyinr != null" >
#{etyinr,jdbcType=CHAR},
</if>
<if test="ptyinr != null" >
#{ptyinr,jdbcType=CHAR},
</if>
<if test="flg != null" >
#{flg,jdbcType=CHAR},
</if>
<if test="rspcod != null" >
#{rspcod,jdbcType=VARCHAR},
</if>
<if test="reptrksta != null" >
#{reptrksta,jdbcType=VARCHAR},
</if>
<if test="swetyp != null" >
#{swetyp,jdbcType=VARCHAR},
</if>
<if test="sweack != null" >
#{sweack,jdbcType=VARCHAR},
</if>
<if test="rptsta != null" >
#{rptsta,jdbcType=VARCHAR},
</if>
<if test="messageid != null" >
#{messageid,jdbcType=VARCHAR},
</if>
<if test="blktyp != null" >
#{blktyp,jdbcType=VARCHAR},
</if>
<if test="xhxflg != null" >
#{xhxflg,jdbcType=CHAR},
</if>
<if test="ismx != null" >
#{ismx,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.entity.Mps" >
update TEST.MPS
<set >
<if test="chncod != null" >
CHNCOD = #{chncod,jdbcType=VARCHAR},
</if>
<if test="dir != null" >
DIR = #{dir,jdbcType=CHAR},
</if>
<if test="lstdattim != null" >
LSTDATTIM = #{lstdattim,jdbcType=TIMESTAMP},
</if>
<if test="nxtchncod != null" >
NXTCHNCOD = #{nxtchncod,jdbcType=VARCHAR},
</if>
<if test="pntinr != null" >
PNTINR = #{pntinr,jdbcType=VARCHAR},
</if>
<if test="rcvdattim != null" >
RCVDATTIM = #{rcvdattim,jdbcType=TIMESTAMP},
</if>
<if test="rspdattim != null" >
RSPDATTIM = #{rspdattim,jdbcType=TIMESTAMP},
</if>
<if test="rspsta != null" >
RSPSTA = #{rspsta,jdbcType=CHAR},
</if>
<if test="smhinr != null" >
SMHINR = #{smhinr,jdbcType=VARCHAR},
</if>
<if test="snddattim != null" >
SNDDATTIM = #{snddattim,jdbcType=TIMESTAMP},
</if>
<if test="srcchncod != null" >
SRCCHNCOD = #{srcchncod,jdbcType=VARCHAR},
</if>
<if test="sta != null" >
STA = #{sta,jdbcType=CHAR},
</if>
<if test="nxtsta != null" >
NXTSTA = #{nxtsta,jdbcType=CHAR},
</if>
<if test="stp != null" >
STP = #{stp,jdbcType=VARCHAR},
</if>
<if test="sttdattim != null" >
STTDATTIM = #{sttdattim,jdbcType=TIMESTAMP},
</if>
<if test="tgtchncod != null" >
TGTCHNCOD = #{tgtchncod,jdbcType=VARCHAR},
</if>
<if test="tgtdattime != null" >
TGTDATTIME = #{tgtdattime,jdbcType=TIMESTAMP},
</if>
<if test="isman != null" >
ISMAN = #{isman,jdbcType=VARCHAR},
</if>
<if test="isblk != null" >
ISBLK = #{isblk,jdbcType=VARCHAR},
</if>
<if test="etyinr != null" >
ETYINR = #{etyinr,jdbcType=CHAR},
</if>
<if test="ptyinr != null" >
PTYINR = #{ptyinr,jdbcType=CHAR},
</if>
<if test="flg != null" >
FLG = #{flg,jdbcType=CHAR},
</if>
<if test="rspcod != null" >
RSPCOD = #{rspcod,jdbcType=VARCHAR},
</if>
<if test="reptrksta != null" >
REPTRKSTA = #{reptrksta,jdbcType=VARCHAR},
</if>
<if test="swetyp != null" >
SWETYP = #{swetyp,jdbcType=VARCHAR},
</if>
<if test="sweack != null" >
SWEACK = #{sweack,jdbcType=VARCHAR},
</if>
<if test="rptsta != null" >
RPTSTA = #{rptsta,jdbcType=VARCHAR},
</if>
<if test="messageid != null" >
MESSAGEID = #{messageid,jdbcType=VARCHAR},
</if>
<if test="blktyp != null" >
BLKTYP = #{blktyp,jdbcType=VARCHAR},
</if>
<if test="xhxflg != null" >
XHXFLG = #{xhxflg,jdbcType=CHAR},
</if>
<if test="ismx != null" >
ISMX = #{ismx,jdbcType=DECIMAL},
</if>
</set>
where INR = #{inr,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.entity.Mps" >
update TEST.MPS
set CHNCOD = #{chncod,jdbcType=VARCHAR},
DIR = #{dir,jdbcType=CHAR},
LSTDATTIM = #{lstdattim,jdbcType=TIMESTAMP},
NXTCHNCOD = #{nxtchncod,jdbcType=VARCHAR},
PNTINR = #{pntinr,jdbcType=VARCHAR},
RCVDATTIM = #{rcvdattim,jdbcType=TIMESTAMP},
RSPDATTIM = #{rspdattim,jdbcType=TIMESTAMP},
RSPSTA = #{rspsta,jdbcType=CHAR},
SMHINR = #{smhinr,jdbcType=VARCHAR},
SNDDATTIM = #{snddattim,jdbcType=TIMESTAMP},
SRCCHNCOD = #{srcchncod,jdbcType=VARCHAR},
STA = #{sta,jdbcType=CHAR},
NXTSTA = #{nxtsta,jdbcType=CHAR},
STP = #{stp,jdbcType=VARCHAR},
STTDATTIM = #{sttdattim,jdbcType=TIMESTAMP},
TGTCHNCOD = #{tgtchncod,jdbcType=VARCHAR},
TGTDATTIME = #{tgtdattime,jdbcType=TIMESTAMP},
ISMAN = #{isman,jdbcType=VARCHAR},
ISBLK = #{isblk,jdbcType=VARCHAR},
ETYINR = #{etyinr,jdbcType=CHAR},
PTYINR = #{ptyinr,jdbcType=CHAR},
FLG = #{flg,jdbcType=CHAR},
RSPCOD = #{rspcod,jdbcType=VARCHAR},
REPTRKSTA = #{reptrksta,jdbcType=VARCHAR},
SWETYP = #{swetyp,jdbcType=VARCHAR},
SWEACK = #{sweack,jdbcType=VARCHAR},
RPTSTA = #{rptsta,jdbcType=VARCHAR},
MESSAGEID = #{messageid,jdbcType=VARCHAR},
BLKTYP = #{blktyp,jdbcType=VARCHAR},
XHXFLG = #{xhxflg,jdbcType=CHAR},
ISMX = #{ismx,jdbcType=DECIMAL}
where INR = #{inr,jdbcType=CHAR}
</update>
</mapper>
\ No newline at end of file
jdbc.driverLocation=lib/ojdbc6-11.2.0.3.jar
jdbc.driverClass=oracle.jdbc.driver.OracleDriver
jdbc.connectionURL=jdbc:oracle:thin:@114.115.138.98:9400:XE
jdbc.userId=test
jdbc.password=test
\ No newline at end of file
jdbc.connectionURL=jdbc:oracle:thin:@192.168.0.110:1524:XE
jdbc.userId=ncb_gj
jdbc.password=ncb_gj
\ No newline at end of file
......@@ -51,7 +51,7 @@
</javaModelGenerator>
<!--Mapper映射文件生成所在的目录 为每一个数据库的表生成对应的SqlMap文件 -->
<sqlMapGenerator targetPackage="com.brilliance.mapper" targetProject="src/main/resources">
<sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources">
<property name="enableSubPackages" value="false"/>
</sqlMapGenerator>
......@@ -60,21 +60,29 @@
<!-- <property name="enableSubPackages" value="true"/>-->
</javaClientGenerator>
<table schema="test" tableName="LCK" domainObjectName="Lck" enableCountByExample="false"
<table schema="ncb_gj" tableName="Clsmsg" domainObjectName="Clsmsg" enableCountByExample="false"
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
selectByExampleQueryId="false"/>
<table schema="ncb_gj" tableName="Cnt" domainObjectName="Cnt" enableCountByExample="false"
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
selectByExampleQueryId="false"/>
<table schema="ncb_gj" tableName="smh" domainObjectName="Smh" enableCountByExample="false"
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
selectByExampleQueryId="false"/>
<table schema="ncb_gj" tableName="SMQINF" domainObjectName="Smqinf" enableCountByExample="false"
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
selectByExampleQueryId="false"/>
<!-- <table schema="test" tableName="MPI" domainObjectName="Mpi" enableCountByExample="false"
<table schema="ncb_gj" tableName="SMQLCK" domainObjectName="Smqlck" enableCountByExample="false"
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
selectByExampleQueryId="false"/>-->
<!--
<table schema="test" tableName="MPS" domainObjectName="Mps" enableCountByExample="false"
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
selectByExampleQueryId="false"/>
<table schema="test" tableName="MPE" domainObjectName="Mpe" enableCountByExample="false"
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
selectByExampleQueryId="false"/>-->
selectByExampleQueryId="false"/>
</context>
......
<?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.mapper.ClsmsgMapper" >
<resultMap id="BaseResultMap" type="com.brilliance.entity.Clsmsg" >
<id column="INR" property="inr" jdbcType="CHAR" />
<result column="SRC" property="src" jdbcType="VARCHAR" />
<result column="DES" property="des" jdbcType="VARCHAR" />
<result column="APP" property="app" jdbcType="VARCHAR" />
<result column="MSGNO" property="msgno" jdbcType="VARCHAR" />
<result column="MSGID" property="msgid" jdbcType="VARCHAR" />
<result column="MSGREF" property="msgref" jdbcType="VARCHAR" />
<result column="WORKDATE" property="workdate" jdbcType="VARCHAR" />
<result column="RESERVE" property="reserve" jdbcType="VARCHAR" />
<result column="MSGTYP" property="msgtyp" jdbcType="VARCHAR" />
<result column="GID" property="gid" jdbcType="VARCHAR" />
<result column="SENDID" property="sendid" jdbcType="VARCHAR" />
<result column="RECVID" property="recvid" jdbcType="VARCHAR" />
<result column="SNDDATTIM" property="snddattim" jdbcType="VARCHAR" />
<result column="VESION" property="vesion" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
INR, SRC, DES, APP, MSGNO, MSGID, MSGREF, WORKDATE, RESERVE, MSGTYP, GID, SENDID,
RECVID, SNDDATTIM, VESION
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from NCB_GJ.CLSMSG
where INR = #{inr,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from NCB_GJ.CLSMSG
where INR = #{inr,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.entity.Clsmsg" >
insert into NCB_GJ.CLSMSG (INR, SRC, DES, APP,
MSGNO, MSGID, MSGREF,
WORKDATE, RESERVE, MSGTYP,
GID, SENDID, RECVID,
SNDDATTIM, VESION)
values (#{inr,jdbcType=CHAR}, #{src,jdbcType=VARCHAR}, #{des,jdbcType=VARCHAR}, #{app,jdbcType=VARCHAR},
#{msgno,jdbcType=VARCHAR}, #{msgid,jdbcType=VARCHAR}, #{msgref,jdbcType=VARCHAR},
#{workdate,jdbcType=VARCHAR}, #{reserve,jdbcType=VARCHAR}, #{msgtyp,jdbcType=VARCHAR},
#{gid,jdbcType=VARCHAR}, #{sendid,jdbcType=VARCHAR}, #{recvid,jdbcType=VARCHAR},
#{snddattim,jdbcType=VARCHAR}, #{vesion,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.brilliance.entity.Clsmsg" >
insert into NCB_GJ.CLSMSG
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="inr != null" >
INR,
</if>
<if test="src != null" >
SRC,
</if>
<if test="des != null" >
DES,
</if>
<if test="app != null" >
APP,
</if>
<if test="msgno != null" >
MSGNO,
</if>
<if test="msgid != null" >
MSGID,
</if>
<if test="msgref != null" >
MSGREF,
</if>
<if test="workdate != null" >
WORKDATE,
</if>
<if test="reserve != null" >
RESERVE,
</if>
<if test="msgtyp != null" >
MSGTYP,
</if>
<if test="gid != null" >
GID,
</if>
<if test="sendid != null" >
SENDID,
</if>
<if test="recvid != null" >
RECVID,
</if>
<if test="snddattim != null" >
SNDDATTIM,
</if>
<if test="vesion != null" >
VESION,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="inr != null" >
#{inr,jdbcType=CHAR},
</if>
<if test="src != null" >
#{src,jdbcType=VARCHAR},
</if>
<if test="des != null" >
#{des,jdbcType=VARCHAR},
</if>
<if test="app != null" >
#{app,jdbcType=VARCHAR},
</if>
<if test="msgno != null" >
#{msgno,jdbcType=VARCHAR},
</if>
<if test="msgid != null" >
#{msgid,jdbcType=VARCHAR},
</if>
<if test="msgref != null" >
#{msgref,jdbcType=VARCHAR},
</if>
<if test="workdate != null" >
#{workdate,jdbcType=VARCHAR},
</if>
<if test="reserve != null" >
#{reserve,jdbcType=VARCHAR},
</if>
<if test="msgtyp != null" >
#{msgtyp,jdbcType=VARCHAR},
</if>
<if test="gid != null" >
#{gid,jdbcType=VARCHAR},
</if>
<if test="sendid != null" >
#{sendid,jdbcType=VARCHAR},
</if>
<if test="recvid != null" >
#{recvid,jdbcType=VARCHAR},
</if>
<if test="snddattim != null" >
#{snddattim,jdbcType=VARCHAR},
</if>
<if test="vesion != null" >
#{vesion,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.entity.Clsmsg" >
update NCB_GJ.CLSMSG
<set >
<if test="src != null" >
SRC = #{src,jdbcType=VARCHAR},
</if>
<if test="des != null" >
DES = #{des,jdbcType=VARCHAR},
</if>
<if test="app != null" >
APP = #{app,jdbcType=VARCHAR},
</if>
<if test="msgno != null" >
MSGNO = #{msgno,jdbcType=VARCHAR},
</if>
<if test="msgid != null" >
MSGID = #{msgid,jdbcType=VARCHAR},
</if>
<if test="msgref != null" >
MSGREF = #{msgref,jdbcType=VARCHAR},
</if>
<if test="workdate != null" >
WORKDATE = #{workdate,jdbcType=VARCHAR},
</if>
<if test="reserve != null" >
RESERVE = #{reserve,jdbcType=VARCHAR},
</if>
<if test="msgtyp != null" >
MSGTYP = #{msgtyp,jdbcType=VARCHAR},
</if>
<if test="gid != null" >
GID = #{gid,jdbcType=VARCHAR},
</if>
<if test="sendid != null" >
SENDID = #{sendid,jdbcType=VARCHAR},
</if>
<if test="recvid != null" >
RECVID = #{recvid,jdbcType=VARCHAR},
</if>
<if test="snddattim != null" >
SNDDATTIM = #{snddattim,jdbcType=VARCHAR},
</if>
<if test="vesion != null" >
VESION = #{vesion,jdbcType=VARCHAR},
</if>
</set>
where INR = #{inr,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.entity.Clsmsg" >
update NCB_GJ.CLSMSG
set SRC = #{src,jdbcType=VARCHAR},
DES = #{des,jdbcType=VARCHAR},
APP = #{app,jdbcType=VARCHAR},
MSGNO = #{msgno,jdbcType=VARCHAR},
MSGID = #{msgid,jdbcType=VARCHAR},
MSGREF = #{msgref,jdbcType=VARCHAR},
WORKDATE = #{workdate,jdbcType=VARCHAR},
RESERVE = #{reserve,jdbcType=VARCHAR},
MSGTYP = #{msgtyp,jdbcType=VARCHAR},
GID = #{gid,jdbcType=VARCHAR},
SENDID = #{sendid,jdbcType=VARCHAR},
RECVID = #{recvid,jdbcType=VARCHAR},
SNDDATTIM = #{snddattim,jdbcType=VARCHAR},
VESION = #{vesion,jdbcType=VARCHAR}
where INR = #{inr,jdbcType=CHAR}
</update>
</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.mapper.LckMapper" >
<resultMap id="BaseResultMap" type="com.brilliance.entity.Lck" >
<mapper namespace="com.brilliance.mapper.CntMapper" >
<resultMap id="BaseResultMap" type="com.brilliance.entity.Cnt" >
<result column="NAM" property="nam" jdbcType="VARCHAR" />
<result column="TXT" property="txt" jdbcType="VARCHAR" />
<result column="DATTIM" property="dattim" jdbcType="TIMESTAMP" />
<result column="VAL" property="val" jdbcType="DECIMAL" />
<result column="STP" property="stp" jdbcType="DECIMAL" />
</resultMap>
<insert id="insert" parameterType="com.brilliance.entity.Lck" >
insert into TEST.LCK (NAM, TXT, DATTIM
<insert id="insert" parameterType="com.brilliance.entity.Cnt" >
insert into NCB_GJ.CNT (NAM, VAL, STP
)
values (#{nam,jdbcType=VARCHAR}, #{txt,jdbcType=VARCHAR}, #{dattim,jdbcType=TIMESTAMP}
values (#{nam,jdbcType=VARCHAR}, #{val,jdbcType=DECIMAL}, #{stp,jdbcType=DECIMAL}
)
</insert>
<insert id="insertSelective" parameterType="com.brilliance.entity.Lck" >
insert into TEST.LCK
<insert id="insertSelective" parameterType="com.brilliance.entity.Cnt" >
insert into NCB_GJ.CNT
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="nam != null" >
NAM,
</if>
<if test="txt != null" >
TXT,
<if test="val != null" >
VAL,
</if>
<if test="dattim != null" >
DATTIM,
<if test="stp != null" >
STP,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="nam != null" >
#{nam,jdbcType=VARCHAR},
</if>
<if test="txt != null" >
#{txt,jdbcType=VARCHAR},
<if test="val != null" >
#{val,jdbcType=DECIMAL},
</if>
<if test="dattim != null" >
#{dattim,jdbcType=TIMESTAMP},
<if test="stp != null" >
#{stp,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TEST.LCK
where TXT = #{txt,jdbcType=CHAR} and NAM=#{nam}
</delete>
</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.mapper.SmhMapper" >
<resultMap id="BaseResultMap" type="com.brilliance.entity.Smh" >
<id column="INR" property="inr" jdbcType="CHAR" />
<result column="CRTFRM" property="crtfrm" jdbcType="VARCHAR" />
<result column="DATTIM" property="dattim" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Base_Column_List" >
INR, CRTFRM, DATTIM
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from NCB_GJ.SMH
where INR = #{inr,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from NCB_GJ.SMH
where INR = #{inr,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.entity.Smh" >
insert into NCB_GJ.SMH (INR, CRTFRM, DATTIM
)
values (#{inr,jdbcType=CHAR}, #{crtfrm,jdbcType=VARCHAR}, #{dattim,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.brilliance.entity.Smh" >
insert into NCB_GJ.SMH
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="inr != null" >
INR,
</if>
<if test="crtfrm != null" >
CRTFRM,
</if>
<if test="dattim != null" >
DATTIM,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="inr != null" >
#{inr,jdbcType=CHAR},
</if>
<if test="crtfrm != null" >
#{crtfrm,jdbcType=VARCHAR},
</if>
<if test="dattim != null" >
#{dattim,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.entity.Smh" >
update NCB_GJ.SMH
<set >
<if test="crtfrm != null" >
CRTFRM = #{crtfrm,jdbcType=VARCHAR},
</if>
<if test="dattim != null" >
DATTIM = #{dattim,jdbcType=TIMESTAMP},
</if>
</set>
where INR = #{inr,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.entity.Smh" >
update NCB_GJ.SMH
set CRTFRM = #{crtfrm,jdbcType=VARCHAR},
DATTIM = #{dattim,jdbcType=TIMESTAMP}
where INR = #{inr,jdbcType=CHAR}
</update>
</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.mapper.SmqinfMapper" >
<resultMap id="BaseResultMap" type="com.brilliance.entity.Smqinf" >
<id column="INR" property="inr" jdbcType="CHAR" />
<result column="PTH" property="pth" jdbcType="VARCHAR" />
<result column="CNT" property="cnt" jdbcType="DECIMAL" />
<result column="STA" property="sta" jdbcType="CHAR" />
<result column="CREDAT" property="credat" jdbcType="TIMESTAMP" />
<result column="MESGNO" property="mesgno" jdbcType="VARCHAR" />
<result column="OBJINR" property="objinr" jdbcType="CHAR" />
<result column="OBJTYP" property="objtyp" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
INR, PTH, CNT, STA, CREDAT, MESGNO, OBJINR, OBJTYP
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from NCB_GJ.SMQINF
where INR = #{inr,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from NCB_GJ.SMQINF
where INR = #{inr,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.entity.Smqinf" >
insert into NCB_GJ.SMQINF (INR, PTH, CNT, STA,
CREDAT, MESGNO, OBJINR,
OBJTYP)
values (#{inr,jdbcType=CHAR}, #{pth,jdbcType=VARCHAR}, #{cnt,jdbcType=DECIMAL}, #{sta,jdbcType=CHAR},
#{credat,jdbcType=TIMESTAMP}, #{mesgno,jdbcType=VARCHAR}, #{objinr,jdbcType=CHAR},
#{objtyp,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.brilliance.entity.Smqinf" >
insert into NCB_GJ.SMQINF
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="inr != null" >
INR,
</if>
<if test="pth != null" >
PTH,
</if>
<if test="cnt != null" >
CNT,
</if>
<if test="sta != null" >
STA,
</if>
<if test="credat != null" >
CREDAT,
</if>
<if test="mesgno != null" >
MESGNO,
</if>
<if test="objinr != null" >
OBJINR,
</if>
<if test="objtyp != null" >
OBJTYP,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="inr != null" >
#{inr,jdbcType=CHAR},
</if>
<if test="pth != null" >
#{pth,jdbcType=VARCHAR},
</if>
<if test="cnt != null" >
#{cnt,jdbcType=DECIMAL},
</if>
<if test="sta != null" >
#{sta,jdbcType=CHAR},
</if>
<if test="credat != null" >
#{credat,jdbcType=TIMESTAMP},
</if>
<if test="mesgno != null" >
#{mesgno,jdbcType=VARCHAR},
</if>
<if test="objinr != null" >
#{objinr,jdbcType=CHAR},
</if>
<if test="objtyp != null" >
#{objtyp,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.entity.Smqinf" >
update NCB_GJ.SMQINF
<set >
<if test="pth != null" >
PTH = #{pth,jdbcType=VARCHAR},
</if>
<if test="cnt != null" >
CNT = #{cnt,jdbcType=DECIMAL},
</if>
<if test="sta != null" >
STA = #{sta,jdbcType=CHAR},
</if>
<if test="credat != null" >
CREDAT = #{credat,jdbcType=TIMESTAMP},
</if>
<if test="mesgno != null" >
MESGNO = #{mesgno,jdbcType=VARCHAR},
</if>
<if test="objinr != null" >
OBJINR = #{objinr,jdbcType=CHAR},
</if>
<if test="objtyp != null" >
OBJTYP = #{objtyp,jdbcType=VARCHAR},
</if>
</set>
where INR = #{inr,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.entity.Smqinf" >
update NCB_GJ.SMQINF
set PTH = #{pth,jdbcType=VARCHAR},
CNT = #{cnt,jdbcType=DECIMAL},
STA = #{sta,jdbcType=CHAR},
CREDAT = #{credat,jdbcType=TIMESTAMP},
MESGNO = #{mesgno,jdbcType=VARCHAR},
OBJINR = #{objinr,jdbcType=CHAR},
OBJTYP = #{objtyp,jdbcType=VARCHAR}
where INR = #{inr,jdbcType=CHAR}
</update>
</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.mapper.SmqlckMapper" >
<resultMap id="BaseResultMap" type="com.brilliance.entity.Smqlck" >
<id column="INR" property="inr" jdbcType="CHAR" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from NCB_GJ.SMQLCK
where INR = #{inr,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.entity.Smqlck" >
insert into NCB_GJ.SMQLCK (INR)
values (#{inr,jdbcType=CHAR})
</insert>
<insert id="insertSelective" parameterType="com.brilliance.entity.Smqlck" >
insert into NCB_GJ.SMQLCK
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="inr != null" >
INR,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="inr != null" >
#{inr,jdbcType=CHAR},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
......@@ -18,7 +18,9 @@
</environments>
<mappers>
<package name="com/brilliance/mapper"/>
<mapper resource="mapper/SmqinfMapper.xml"/>
<package name="com/brilliance/mapper"/>
<!--<mapper resource="com/brilliance/mapper/MpsMapper.xml"/>
<mapper resource="com/brilliance/mapper/MpiMapper.xml"/>
<mapper resource="com/brilliance/mapper/MpeMapper.xml"/>
......
......@@ -19,9 +19,10 @@
<mappers>
<!-- <package name="mappers"/>-->
<mapper resource="com/brilliance/mapper/MpsMapper.xml"/>
<mapper resource="com/brilliance/mapper/MpiMapper.xml"/>
<mapper resource="com/brilliance/mapper/MpeMapper.xml"/>
<mapper resource="com/brilliance/mapper/LckMapper.xml"/>
<mapper resource="mapper/ClsmsgMapper.xml"/>
<mapper resource="mapper/CntMapper.xml"/>
<mapper resource="mapper/SmhMapper.xml"/>
<mapper resource="mapper/SmqinfMapper.xml"/>
<mapper resource="mapper/SmqlckMapper.xml"/>
</mappers>
</configuration>
package com.brilliance.test;
import com.brilliance.entity.Lck;
import com.brilliance.entity.Mpi;
import com.brilliance.entity.Mps;
import com.brilliance.entity.Smh;
import com.brilliance.mapper.LckMapper;
import com.brilliance.mapper.MpiMapper;
import com.brilliance.mapper.MpsMapper;
import com.alibaba.druid.pool.DruidDataSource;
import com.brilliance.entity.*;
import com.brilliance.mapper.SmhMapper;
import com.brilliance.util.DbCommonUtil;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;
import org.apache.commons.dbutils.handlers.BeanListHandler;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import java.sql.SQLException;
import java.util.List;
public class MybatisTest {
@Test
public void test_dbUtil() throws SQLException {
//1、创建数据源(数据库连接池)对象
DruidDataSource ds =new DruidDataSource();
//2、设置参数
//(1)设置基本参数
ds.setDriverClassName("oracle.jdbc.OracleDriver");
ds.setUrl("jdbc:oracle:thin:@192.168.0.110:1524:XE");
ds.setUsername("ncb_gj");
ds.setPassword("ncb_gj");
ds.setInitialSize(5);//一开始提前申请好5个连接,不够了,重写申请
ds.setMaxActive(10);//最多不超过10个,如果10都用完了,还没还回来,就会出现等待
ds.setMaxWait(1000);//用户最多等1000毫秒,如果1000毫秒还没有人还回来,就异常了
QueryRunner queryRunner=new QueryRunner(ds);
String sql = "SELECT * FROM clsmsg";
List<Clsmsg> clsMsgList = queryRunner.query(sql, new BeanListHandler<>(Clsmsg.class));
System.out.println("clsMsgList==="+clsMsgList);
sql="select * from clsmsg where inr='00000007'";
Clsmsg clsmsg = queryRunner.query(sql, new BeanHandler<>(Clsmsg.class));
System.out.println(clsmsg.getSrc());
}
@Test
public void test_annotation() throws Exception {
String resource = "mybatis-config-annotation.xml";
/*String resource = "mybatis-config-annotation.xml";
InputStream inputStream = Resources.getResourceAsStream(resource);
SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
// sqlSessionFactory.getConfiguration().addMapper(MpsMapper.class);
......@@ -37,16 +63,16 @@ public class MybatisTest {
Smh smh1=new Smh();
smh1.setInr("TESTINR1");
smh1.setCrtfrm("TTT");
smh1.setDattim(new Date());
//smh1.setDattim(new Date());
int insert = smhMapper.insert(smh1);
System.out.println("insert==="+insert);
openSession.commit();
openSession.close();
openSession.close();*/
}
@Test
public void test() throws Exception {
String resource = "mybatis-config.xml";
/* String resource = "mybatis-config.xml";
InputStream inputStream = Resources.getResourceAsStream(resource);
SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
// sqlSessionFactory.getConfiguration().addMapper(MpsMapper.class);
......@@ -55,13 +81,13 @@ public class MybatisTest {
MpsMapper mpsMapper = openSession.getMapper(MpsMapper.class);
int cnt = mpsMapper.counterMps(">");
System.out.println("cnt="+cnt);
openSession.close();
openSession.close();*/
}
@Test
public void test2() throws Exception {
SqlSession openSession = DbCommonUtil.getSqlSession();
/* SqlSession openSession = DbCommonUtil.getSqlSession();
MpsMapper mpsMapper = openSession.getMapper(MpsMapper.class);
int cnt = mpsMapper.counterMps(">");
Mps mps = mpsMapper.selectByPrimaryKey("00000972");
......@@ -78,6 +104,6 @@ public class MybatisTest {
System.out.println(lck.getDattim());
}
DbCommonUtil.close(openSession);
DbCommonUtil.close(openSession);*/
}
}
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