Commit 0bfda2d1 by gechengyang

提交代碼

parent fb073d85
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<property name="enableSubPackages" value="false" /> <property name="enableSubPackages" value="false" />
</javaClientGenerator> </javaClientGenerator>
<!-- 指定数据库表 --> <!-- 指定数据库表 -->
<!-- <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CPD"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CPD">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CPT"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CPT">
...@@ -69,10 +69,15 @@ ...@@ -69,10 +69,15 @@
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CBE"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="CBE">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true" />
</table> --> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="COU"> <table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="COU">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true" />
</table> </table>
<table enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" tableName="USR">
<property name="useActualColumnNames" value="true" />
</table>
</context> </context>
</generatorConfiguration> </generatorConfiguration>
\ No newline at end of file
package com.brilliance.remit.common.util;
import java.security.MessageDigest;
public class PwdUtil {
public static String encryptMD5(String inStr) throws Exception {
MessageDigest md5 = null;
md5 = MessageDigest.getInstance("MD5");
char[] charArray = inStr.toCharArray();
byte[] byteArray = new byte[charArray.length];
for (int i = 0; i < charArray.length; i++)
byteArray[i] = (byte) charArray[i];
byte[] md5Bytes = md5.digest(byteArray);
StringBuffer hexValue = new StringBuffer();
for (int i = 0; i < md5Bytes.length; i++) {
int val = ((int) md5Bytes[i]) & 0xff;
if (val < 16)
hexValue.append("0");
hexValue.append(Integer.toHexString(val));
}
return hexValue.toString();
}
public static void main(String[] args) throws Exception {
System.out.println(encryptMD5("1"));
}
}
package com.brilliance.remit.controller;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.brilliance.remit.common.response.ErrorCodes;
import com.brilliance.remit.common.response.ResultUtil;
import com.brilliance.remit.service.BchService;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 10:15:14
**/
@RequestMapping("bch")
@Controller
public class BchController {
@Autowired
private BchService bchService;
private static final Log log = LogFactory.getLog(BchController.class);
@ResponseBody
@RequestMapping(value = "/test", method = RequestMethod.POST)
public Object test(@RequestBody Map<String, Object> dataMap, HttpServletRequest request, HttpSession session) {
/**
you can do business hanle here.
**/
return ResultUtil.result(ErrorCodes.SUCCESS, "sucess", null);
}
}
...@@ -19,8 +19,8 @@ import com.brilliance.remit.common.response.ResultUtil; ...@@ -19,8 +19,8 @@ import com.brilliance.remit.common.response.ResultUtil;
import com.brilliance.remit.service.CpdService; import com.brilliance.remit.service.CpdService;
/** /**
This java was generated by Auto Generator. * This java was generated by Auto Generator. created at time 2018-12-17
created at time 2018-12-17 17:38:42 * 17:38:42
**/ **/
@RequestMapping("cpd") @RequestMapping("cpd")
@Controller @Controller
...@@ -34,8 +34,15 @@ public class CpdController { ...@@ -34,8 +34,15 @@ public class CpdController {
@RequestMapping(value = "/test", method = RequestMethod.POST) @RequestMapping(value = "/test", method = RequestMethod.POST)
public Object test(@RequestBody Map<String, Object> dataMap, HttpServletRequest request, HttpSession session) { public Object test(@RequestBody Map<String, Object> dataMap, HttpServletRequest request, HttpSession session) {
/** /**
you can do business hanle here. * you can do business hanle here.
**/ **/
return ResultUtil.result(ErrorCodes.SUCCESS, "sucess", null);
}
@ResponseBody
@RequestMapping(value = "/save", method = RequestMethod.POST)
public Object save(@RequestBody Map<String, Object> dataMap, HttpServletRequest request, HttpSession session) {
return ResultUtil.result(ErrorCodes.SUCCESS, "sucess", null); return ResultUtil.result(ErrorCodes.SUCCESS, "sucess", null);
} }
} }
...@@ -8,6 +8,7 @@ import javax.servlet.http.HttpSession; ...@@ -8,6 +8,7 @@ import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
...@@ -15,49 +16,60 @@ import org.springframework.web.bind.annotation.RequestMethod; ...@@ -15,49 +16,60 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import com.brilliance.remit.common.Constants; import com.brilliance.remit.common.Constants;
import com.brilliance.remit.common.exception.RemitException;
import com.brilliance.remit.common.jwt.JWT; import com.brilliance.remit.common.jwt.JWT;
import com.brilliance.remit.common.jwt.JwtLogin; import com.brilliance.remit.common.jwt.JwtLogin;
import com.brilliance.remit.common.jwt.RedisLoginInfo; import com.brilliance.remit.common.jwt.RedisLoginInfo;
import com.brilliance.remit.common.response.ErrorCodes; import com.brilliance.remit.common.response.ErrorCodes;
import com.brilliance.remit.common.response.ResultUtil; import com.brilliance.remit.common.response.ResultUtil;
import com.brilliance.remit.common.util.NumericUtil; import com.brilliance.remit.common.util.NumericUtil;
import com.brilliance.remit.common.util.PwdUtil;
import com.brilliance.remit.common.util.RedisUtil; import com.brilliance.remit.common.util.RedisUtil;
import com.brilliance.remit.common.util.StringUtil; import com.brilliance.remit.common.util.StringUtil;
import com.brilliance.remit.db.model.Usr;
import com.brilliance.remit.service.UsrService;
@Controller @Controller
public class LoginController { public class LoginController {
private static final Log log = LogFactory.getLog(LoginController.class); private final Log log = LogFactory.getLog(LoginController.class);
@Autowired
private UsrService usrService;
@ResponseBody @ResponseBody
@RequestMapping(value = "/login", method = RequestMethod.POST) @RequestMapping(value = "/login", method = RequestMethod.POST)
public Object login(@RequestBody Map<String, Object> dataMap, HttpServletRequest request, HttpSession session) { public Object login(@RequestBody Map<String, Object> dataMap, HttpServletRequest request, HttpSession session) {
System.out.println(dataMap); System.out.println(dataMap);
Map<String, Object> map = new HashMap<String, Object>();
String userId = dataMap.get(Constants.USERNAME).toString(); String userId = dataMap.get(Constants.USERNAME).toString();
String terminalType = request.getHeader("terminalType"); String terminalType = request.getHeader("terminalType");
log.debug("terminalType=" + terminalType);
String password = dataMap.get(Constants.PASSWORD).toString(); String password = dataMap.get(Constants.PASSWORD).toString();
boolean loginSuccess = true; if (StringUtil.isEmpty(userId))
return ResultUtil.result(ErrorCodes.ERROR, "用户ID为空", null);
if (StringUtil.isEmpty(password))
return ResultUtil.result(ErrorCodes.ERROR, "用户密码为空", null);
try { try {
if (loginSuccess) { String md5Pwd = PwdUtil.encryptMD5(password);
Usr usr = usrService.getUserByUserId(userId);
JwtLogin login = new JwtLogin(); if (usr == null)
login.setUserId(userId); return ResultUtil.result(ErrorCodes.ERROR, "用户【" + userId + "】不存在", null);
login.setPassword(password);
// 给用户jwt加密生成token if (!md5Pwd.equals(usr.getPWD()))
String token = JWT.sign(login, 60L * 1000L * 30L); return ResultUtil.result(ErrorCodes.ERROR, "用户【" + userId + "】密码错误", null);
Map<String, Object> retDatamap = new HashMap<String, Object>();
retDatamap.put("token", token); JwtLogin login = new JwtLogin();
// redis中存储用户相关信息 login.setUserId(userId);
RedisLoginInfo redisLoginInfo = new RedisLoginInfo(userId, token, NumericUtil.sessionTimeOut(), null); login.setPassword(password);
RedisUtil.set(StringUtil.userUniqueId(userId, terminalType), redisLoginInfo); // 给用户jwt加密生成token
return ResultUtil.result(ErrorCodes.SUCCESS, ErrorCodes.SUCCESS_INFO, retDatamap); String token = JWT.sign(login, 60L * 1000L * 30L);
} Map<String, Object> retDatamap = new HashMap<String, Object>();
retDatamap.put("token", token);
// redis中存储用户相关信息
RedisLoginInfo redisLoginInfo = new RedisLoginInfo(userId, token, NumericUtil.sessionTimeOut(), null);
RedisUtil.set(StringUtil.userUniqueId(userId, terminalType), redisLoginInfo);
return ResultUtil.result(ErrorCodes.SUCCESS, ErrorCodes.SUCCESS_INFO, retDatamap);
} catch (Exception e) { } catch (Exception e) {
log.error("Login command error", e); log.error("Login command error", e);
throw new RemitException("Login command error", e); return ResultUtil.result(ErrorCodes.ERROR, "login failed", null);
} }
log.debug("Login command is finished");
return ResultUtil.result(ErrorCodes.ERROR, "login failed", null);
} }
} }
package com.brilliance.remit.controller;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.brilliance.remit.common.response.ErrorCodes;
import com.brilliance.remit.common.response.ResultUtil;
import com.brilliance.remit.service.UsrService;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 10:15:14
**/
@RequestMapping("usr")
@Controller
public class UsrController {
@Autowired
private UsrService usrService;
private static final Log log = LogFactory.getLog(UsrController.class);
@ResponseBody
@RequestMapping(value = "/test", method = RequestMethod.POST)
public Object test(@RequestBody Map<String, Object> dataMap, HttpServletRequest request, HttpSession session) {
/**
you can do business hanle here.
**/
return ResultUtil.result(ErrorCodes.SUCCESS, "sucess", null);
}
}
...@@ -6,13 +6,37 @@ public interface AdrMapper { ...@@ -6,13 +6,37 @@ public interface AdrMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table ADR * This method was generated by MyBatis Generator. This method corresponds to the database table ADR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table ADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Adr record); int insert(Adr record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table ADR * This method was generated by MyBatis Generator. This method corresponds to the database table ADR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Adr record); int insertSelective(Adr record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table ADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Adr selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table ADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Adr record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table ADR
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Adr record);
} }
\ No newline at end of file
...@@ -6,13 +6,37 @@ public interface BchMapper { ...@@ -6,13 +6,37 @@ public interface BchMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table BCH * This method was generated by MyBatis Generator. This method corresponds to the database table BCH
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table BCH
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Bch record); int insert(Bch record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table BCH * This method was generated by MyBatis Generator. This method corresponds to the database table BCH
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Bch record); int insertSelective(Bch record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table BCH
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Bch selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table BCH
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Bch record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table BCH
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Bch record);
} }
\ No newline at end of file
...@@ -6,13 +6,37 @@ public interface CbbMapper { ...@@ -6,13 +6,37 @@ public interface CbbMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBB * This method was generated by MyBatis Generator. This method corresponds to the database table CBB
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBB
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Cbb record); int insert(Cbb record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBB * This method was generated by MyBatis Generator. This method corresponds to the database table CBB
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Cbb record); int insertSelective(Cbb record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBB
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Cbb selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBB
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Cbb record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBB
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Cbb record);
} }
\ No newline at end of file
...@@ -6,13 +6,37 @@ public interface CbeMapper { ...@@ -6,13 +6,37 @@ public interface CbeMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBE * This method was generated by MyBatis Generator. This method corresponds to the database table CBE
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Cbe record); int insert(Cbe record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBE * This method was generated by MyBatis Generator. This method corresponds to the database table CBE
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Cbe record); int insertSelective(Cbe record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Cbe selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Cbe record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CBE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Cbe record);
} }
\ No newline at end of file
...@@ -6,37 +6,37 @@ public interface CouMapper { ...@@ -6,37 +6,37 @@ public interface CouMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table COU * This method was generated by MyBatis Generator. This method corresponds to the database table COU
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int deleteByPrimaryKey(String COUNAM); int deleteByPrimaryKey(String COUNAM);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table COU * This method was generated by MyBatis Generator. This method corresponds to the database table COU
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Cou record); int insert(Cou record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table COU * This method was generated by MyBatis Generator. This method corresponds to the database table COU
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Cou record); int insertSelective(Cou record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table COU * This method was generated by MyBatis Generator. This method corresponds to the database table COU
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
Cou selectByPrimaryKey(String COUNAM); Cou selectByPrimaryKey(String COUNAM);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table COU * This method was generated by MyBatis Generator. This method corresponds to the database table COU
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int updateByPrimaryKeySelective(Cou record); int updateByPrimaryKeySelective(Cou record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table COU * This method was generated by MyBatis Generator. This method corresponds to the database table COU
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int updateByPrimaryKey(Cou record); int updateByPrimaryKey(Cou record);
} }
\ No newline at end of file
...@@ -6,13 +6,37 @@ public interface CpdMapper { ...@@ -6,13 +6,37 @@ public interface CpdMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPD * This method was generated by MyBatis Generator. This method corresponds to the database table CPD
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPD
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Cpd record); int insert(Cpd record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPD * This method was generated by MyBatis Generator. This method corresponds to the database table CPD
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Cpd record); int insertSelective(Cpd record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPD
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Cpd selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPD
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Cpd record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPD
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Cpd record);
} }
\ No newline at end of file
...@@ -7,13 +7,37 @@ public interface CptMapper { ...@@ -7,13 +7,37 @@ public interface CptMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPT * This method was generated by MyBatis Generator. This method corresponds to the database table CPT
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Cpt record); int insert(Cpt record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPT * This method was generated by MyBatis Generator. This method corresponds to the database table CPT
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Cpt record); int insertSelective(Cpt record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Cpt selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Cpt record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table CPT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Cpt record);
} }
\ No newline at end of file
...@@ -6,13 +6,37 @@ public interface PtaMapper { ...@@ -6,13 +6,37 @@ public interface PtaMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTA * This method was generated by MyBatis Generator. This method corresponds to the database table PTA
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTA
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Pta record); int insert(Pta record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTA * This method was generated by MyBatis Generator. This method corresponds to the database table PTA
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Pta record); int insertSelective(Pta record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTA
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Pta selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTA
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Pta record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTA
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Pta record);
} }
\ No newline at end of file
...@@ -6,13 +6,37 @@ public interface PteMapper { ...@@ -6,13 +6,37 @@ public interface PteMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTE * This method was generated by MyBatis Generator. This method corresponds to the database table PTE
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Pte record); int insert(Pte record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTE * This method was generated by MyBatis Generator. This method corresponds to the database table PTE
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Pte record); int insertSelective(Pte record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Pte selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Pte record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTE
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Pte record);
} }
\ No newline at end of file
...@@ -6,13 +6,37 @@ public interface PtmMapper { ...@@ -6,13 +6,37 @@ public interface PtmMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTM * This method was generated by MyBatis Generator. This method corresponds to the database table PTM
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Ptm record); int insert(Ptm record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTM * This method was generated by MyBatis Generator. This method corresponds to the database table PTM
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Ptm record); int insertSelective(Ptm record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Ptm selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Ptm record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTM
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Ptm record);
} }
\ No newline at end of file
...@@ -6,13 +6,37 @@ public interface PtsMapper { ...@@ -6,13 +6,37 @@ public interface PtsMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTS * This method was generated by MyBatis Generator. This method corresponds to the database table PTS
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Pts record); int insert(Pts record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTS * This method was generated by MyBatis Generator. This method corresponds to the database table PTS
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Pts record); int insertSelective(Pts record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Pts selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Pts record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTS
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Pts record);
} }
\ No newline at end of file
...@@ -6,13 +6,37 @@ public interface PtyMapper { ...@@ -6,13 +6,37 @@ public interface PtyMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTY * This method was generated by MyBatis Generator. This method corresponds to the database table PTY
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Pty record); int insert(Pty record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTY * This method was generated by MyBatis Generator. This method corresponds to the database table PTY
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Pty record); int insertSelective(Pty record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Pty selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Pty record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTY
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Pty record);
} }
\ No newline at end of file
...@@ -6,13 +6,37 @@ public interface PtyratMapper { ...@@ -6,13 +6,37 @@ public interface PtyratMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT * This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Ptyrat record); int insert(Ptyrat record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT * This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Ptyrat record); int insertSelective(Ptyrat record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Ptyrat selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Ptyrat record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table PTYRAT
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Ptyrat record);
} }
\ No newline at end of file
...@@ -6,13 +6,37 @@ public interface TrnMapper { ...@@ -6,13 +6,37 @@ public interface TrnMapper {
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table TRN * This method was generated by MyBatis Generator. This method corresponds to the database table TRN
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table TRN
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insert(Trn record); int insert(Trn record);
/** /**
* This method was generated by MyBatis Generator. This method corresponds to the database table TRN * This method was generated by MyBatis Generator. This method corresponds to the database table TRN
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
int insertSelective(Trn record); int insertSelective(Trn record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table TRN
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Trn selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table TRN
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Trn record);
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table TRN
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Trn record);
} }
\ No newline at end of file
package com.brilliance.remit.db.dao;
import com.brilliance.remit.db.model.Usr;
public interface UsrMapper {
/**
* This method was generated by MyBatis Generator. This method corresponds
* to the database table USR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int deleteByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds
* to the database table USR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int insert(Usr record);
/**
* This method was generated by MyBatis Generator. This method corresponds
* to the database table USR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int insertSelective(Usr record);
/**
* This method was generated by MyBatis Generator. This method corresponds
* to the database table USR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
Usr selectByPrimaryKey(String INR);
/**
* This method was generated by MyBatis Generator. This method corresponds
* to the database table USR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKeySelective(Usr record);
/**
* This method was generated by MyBatis Generator. This method corresponds
* to the database table USR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
int updateByPrimaryKey(Usr record);
Usr selectByUserId(String userId);
}
\ No newline at end of file
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
<result column="INR" jdbcType="CHAR" property="INR" /> <id column="INR" jdbcType="CHAR" property="INR" />
<result column="ETYEXTKEY" jdbcType="CHAR" property="ETYEXTKEY" /> <result column="ETYEXTKEY" jdbcType="CHAR" property="ETYEXTKEY" />
<result column="BRANCH" jdbcType="CHAR" property="BRANCH" /> <result column="BRANCH" jdbcType="CHAR" property="BRANCH" />
<result column="LEV" jdbcType="CHAR" property="LEV" /> <result column="LEV" jdbcType="CHAR" property="LEV" />
...@@ -29,11 +29,40 @@ ...@@ -29,11 +29,40 @@
<result column="FXQDIR" jdbcType="CHAR" property="FXQDIR" /> <result column="FXQDIR" jdbcType="CHAR" property="FXQDIR" />
<result column="HVPSNAM" jdbcType="CHAR" property="HVPSNAM" /> <result column="HVPSNAM" jdbcType="CHAR" property="HVPSNAM" />
</resultMap> </resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
INR, ETYEXTKEY, BRANCH, LEV, UPBRANCH, VER, ACCBCH, BCHUSR, BCHLST, STA, PTYINR,
CORFLG, NAMCN, ADRCN, ADRCN2, UPBCHKEY, DECNUM, RMBRPT, OWNBCHCOD, FXQDIR, HVPSNAM
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
select
<include refid="Base_Column_List" />
from BCH
where INR = #{INR,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
delete from BCH
where INR = #{INR,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Bch"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Bch">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into BCH (INR, ETYEXTKEY, BRANCH, insert into BCH (INR, ETYEXTKEY, BRANCH,
LEV, UPBRANCH, VER, ACCBCH, LEV, UPBRANCH, VER, ACCBCH,
...@@ -52,7 +81,7 @@ ...@@ -52,7 +81,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into BCH insert into BCH
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -186,4 +215,104 @@ ...@@ -186,4 +215,104 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.remit.db.model.Bch">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update BCH
<set>
<if test="ETYEXTKEY != null">
ETYEXTKEY = #{ETYEXTKEY,jdbcType=CHAR},
</if>
<if test="BRANCH != null">
BRANCH = #{BRANCH,jdbcType=CHAR},
</if>
<if test="LEV != null">
LEV = #{LEV,jdbcType=CHAR},
</if>
<if test="UPBRANCH != null">
UPBRANCH = #{UPBRANCH,jdbcType=CHAR},
</if>
<if test="VER != null">
VER = #{VER,jdbcType=CHAR},
</if>
<if test="ACCBCH != null">
ACCBCH = #{ACCBCH,jdbcType=CHAR},
</if>
<if test="BCHUSR != null">
BCHUSR = #{BCHUSR,jdbcType=CHAR},
</if>
<if test="BCHLST != null">
BCHLST = #{BCHLST,jdbcType=VARCHAR},
</if>
<if test="STA != null">
STA = #{STA,jdbcType=CHAR},
</if>
<if test="PTYINR != null">
PTYINR = #{PTYINR,jdbcType=CHAR},
</if>
<if test="CORFLG != null">
CORFLG = #{CORFLG,jdbcType=CHAR},
</if>
<if test="NAMCN != null">
NAMCN = #{NAMCN,jdbcType=VARCHAR},
</if>
<if test="ADRCN != null">
ADRCN = #{ADRCN,jdbcType=CHAR},
</if>
<if test="ADRCN2 != null">
ADRCN2 = #{ADRCN2,jdbcType=CHAR},
</if>
<if test="UPBCHKEY != null">
UPBCHKEY = #{UPBCHKEY,jdbcType=CHAR},
</if>
<if test="DECNUM != null">
DECNUM = #{DECNUM,jdbcType=CHAR},
</if>
<if test="RMBRPT != null">
RMBRPT = #{RMBRPT,jdbcType=CHAR},
</if>
<if test="OWNBCHCOD != null">
OWNBCHCOD = #{OWNBCHCOD,jdbcType=CHAR},
</if>
<if test="FXQDIR != null">
FXQDIR = #{FXQDIR,jdbcType=CHAR},
</if>
<if test="HVPSNAM != null">
HVPSNAM = #{HVPSNAM,jdbcType=CHAR},
</if>
</set>
where INR = #{INR,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Bch">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update BCH
set ETYEXTKEY = #{ETYEXTKEY,jdbcType=CHAR},
BRANCH = #{BRANCH,jdbcType=CHAR},
LEV = #{LEV,jdbcType=CHAR},
UPBRANCH = #{UPBRANCH,jdbcType=CHAR},
VER = #{VER,jdbcType=CHAR},
ACCBCH = #{ACCBCH,jdbcType=CHAR},
BCHUSR = #{BCHUSR,jdbcType=CHAR},
BCHLST = #{BCHLST,jdbcType=VARCHAR},
STA = #{STA,jdbcType=CHAR},
PTYINR = #{PTYINR,jdbcType=CHAR},
CORFLG = #{CORFLG,jdbcType=CHAR},
NAMCN = #{NAMCN,jdbcType=VARCHAR},
ADRCN = #{ADRCN,jdbcType=CHAR},
ADRCN2 = #{ADRCN2,jdbcType=CHAR},
UPBCHKEY = #{UPBCHKEY,jdbcType=CHAR},
DECNUM = #{DECNUM,jdbcType=CHAR},
RMBRPT = #{RMBRPT,jdbcType=CHAR},
OWNBCHCOD = #{OWNBCHCOD,jdbcType=CHAR},
FXQDIR = #{FXQDIR,jdbcType=CHAR},
HVPSNAM = #{HVPSNAM,jdbcType=CHAR}
where INR = #{INR,jdbcType=CHAR}
</update>
</mapper> </mapper>
\ No newline at end of file
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
<result column="INR" jdbcType="CHAR" property="INR" /> <id column="INR" jdbcType="CHAR" property="INR" />
<result column="OBJTYP" jdbcType="CHAR" property="OBJTYP" /> <result column="OBJTYP" jdbcType="CHAR" property="OBJTYP" />
<result column="OBJINR" jdbcType="CHAR" property="OBJINR" /> <result column="OBJINR" jdbcType="CHAR" property="OBJINR" />
<result column="CBC" jdbcType="CHAR" property="CBC" /> <result column="CBC" jdbcType="CHAR" property="CBC" />
...@@ -24,11 +24,40 @@ ...@@ -24,11 +24,40 @@
<result column="XCOCUR" jdbcType="CHAR" property="XCOCUR" /> <result column="XCOCUR" jdbcType="CHAR" property="XCOCUR" />
<result column="XCOAMT" jdbcType="DECIMAL" property="XCOAMT" /> <result column="XCOAMT" jdbcType="DECIMAL" property="XCOAMT" />
</resultMap> </resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
INR, OBJTYP, OBJINR, CBC, EXTID, BEGDAT, ENDDAT, CUR, AMT, CBEINR, XRFCUR, XRFAMT,
COMCUR, COMAMT, XCOCUR, XCOAMT
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
select
<include refid="Base_Column_List" />
from CBB
where INR = #{INR,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
delete from CBB
where INR = #{INR,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Cbb"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Cbb">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into CBB (INR, OBJTYP, OBJINR, CBC, insert into CBB (INR, OBJTYP, OBJINR, CBC,
EXTID, BEGDAT, ENDDAT, EXTID, BEGDAT, ENDDAT,
...@@ -45,7 +74,7 @@ ...@@ -45,7 +74,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into CBB insert into CBB
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -149,4 +178,84 @@ ...@@ -149,4 +178,84 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.remit.db.model.Cbb">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update CBB
<set>
<if test="OBJTYP != null">
OBJTYP = #{OBJTYP,jdbcType=CHAR},
</if>
<if test="OBJINR != null">
OBJINR = #{OBJINR,jdbcType=CHAR},
</if>
<if test="CBC != null">
CBC = #{CBC,jdbcType=CHAR},
</if>
<if test="EXTID != null">
EXTID = #{EXTID,jdbcType=CHAR},
</if>
<if test="BEGDAT != null">
BEGDAT = #{BEGDAT,jdbcType=TIMESTAMP},
</if>
<if test="ENDDAT != null">
ENDDAT = #{ENDDAT,jdbcType=TIMESTAMP},
</if>
<if test="CUR != null">
CUR = #{CUR,jdbcType=CHAR},
</if>
<if test="AMT != null">
AMT = #{AMT,jdbcType=DECIMAL},
</if>
<if test="CBEINR != null">
CBEINR = #{CBEINR,jdbcType=CHAR},
</if>
<if test="XRFCUR != null">
XRFCUR = #{XRFCUR,jdbcType=CHAR},
</if>
<if test="XRFAMT != null">
XRFAMT = #{XRFAMT,jdbcType=DECIMAL},
</if>
<if test="COMCUR != null">
COMCUR = #{COMCUR,jdbcType=CHAR},
</if>
<if test="COMAMT != null">
COMAMT = #{COMAMT,jdbcType=DECIMAL},
</if>
<if test="XCOCUR != null">
XCOCUR = #{XCOCUR,jdbcType=CHAR},
</if>
<if test="XCOAMT != null">
XCOAMT = #{XCOAMT,jdbcType=DECIMAL},
</if>
</set>
where INR = #{INR,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Cbb">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update CBB
set OBJTYP = #{OBJTYP,jdbcType=CHAR},
OBJINR = #{OBJINR,jdbcType=CHAR},
CBC = #{CBC,jdbcType=CHAR},
EXTID = #{EXTID,jdbcType=CHAR},
BEGDAT = #{BEGDAT,jdbcType=TIMESTAMP},
ENDDAT = #{ENDDAT,jdbcType=TIMESTAMP},
CUR = #{CUR,jdbcType=CHAR},
AMT = #{AMT,jdbcType=DECIMAL},
CBEINR = #{CBEINR,jdbcType=CHAR},
XRFCUR = #{XRFCUR,jdbcType=CHAR},
XRFAMT = #{XRFAMT,jdbcType=DECIMAL},
COMCUR = #{COMCUR,jdbcType=CHAR},
COMAMT = #{COMAMT,jdbcType=DECIMAL},
XCOCUR = #{XCOCUR,jdbcType=CHAR},
XCOAMT = #{XCOAMT,jdbcType=DECIMAL}
where INR = #{INR,jdbcType=CHAR}
</update>
</mapper> </mapper>
\ No newline at end of file
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
<result column="INR" jdbcType="CHAR" property="INR" /> <id column="INR" jdbcType="CHAR" property="INR" />
<result column="OBJTYP" jdbcType="CHAR" property="OBJTYP" /> <result column="OBJTYP" jdbcType="CHAR" property="OBJTYP" />
<result column="OBJINR" jdbcType="CHAR" property="OBJINR" /> <result column="OBJINR" jdbcType="CHAR" property="OBJINR" />
<result column="EXTID" jdbcType="CHAR" property="EXTID" /> <result column="EXTID" jdbcType="CHAR" property="EXTID" />
...@@ -29,11 +29,40 @@ ...@@ -29,11 +29,40 @@
<result column="NOMPCT" jdbcType="DECIMAL" property="NOMPCT" /> <result column="NOMPCT" jdbcType="DECIMAL" property="NOMPCT" />
<result column="GLEDAT" jdbcType="TIMESTAMP" property="GLEDAT" /> <result column="GLEDAT" jdbcType="TIMESTAMP" property="GLEDAT" />
</resultMap> </resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
INR, OBJTYP, OBJINR, EXTID, CBT, TRNTYP, TRNINR, DAT, CUR, AMT, RELFLG, CREDAT, XRFCUR,
XRFAMT, NAM, ACC, ACC2, OPTDAT, RELCSHPCT, NOMPCT, GLEDAT
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
select
<include refid="Base_Column_List" />
from CBE
where INR = #{INR,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
delete from CBE
where INR = #{INR,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Cbe"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Cbe">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into CBE (INR, OBJTYP, OBJINR, EXTID, insert into CBE (INR, OBJTYP, OBJINR, EXTID,
CBT, TRNTYP, TRNINR, DAT, CBT, TRNTYP, TRNINR, DAT,
...@@ -52,7 +81,7 @@ ...@@ -52,7 +81,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into CBE insert into CBE
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -186,4 +215,104 @@ ...@@ -186,4 +215,104 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.remit.db.model.Cbe">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update CBE
<set>
<if test="OBJTYP != null">
OBJTYP = #{OBJTYP,jdbcType=CHAR},
</if>
<if test="OBJINR != null">
OBJINR = #{OBJINR,jdbcType=CHAR},
</if>
<if test="EXTID != null">
EXTID = #{EXTID,jdbcType=CHAR},
</if>
<if test="CBT != null">
CBT = #{CBT,jdbcType=CHAR},
</if>
<if test="TRNTYP != null">
TRNTYP = #{TRNTYP,jdbcType=CHAR},
</if>
<if test="TRNINR != null">
TRNINR = #{TRNINR,jdbcType=CHAR},
</if>
<if test="DAT != null">
DAT = #{DAT,jdbcType=TIMESTAMP},
</if>
<if test="CUR != null">
CUR = #{CUR,jdbcType=CHAR},
</if>
<if test="AMT != null">
AMT = #{AMT,jdbcType=DECIMAL},
</if>
<if test="RELFLG != null">
RELFLG = #{RELFLG,jdbcType=CHAR},
</if>
<if test="CREDAT != null">
CREDAT = #{CREDAT,jdbcType=TIMESTAMP},
</if>
<if test="XRFCUR != null">
XRFCUR = #{XRFCUR,jdbcType=CHAR},
</if>
<if test="XRFAMT != null">
XRFAMT = #{XRFAMT,jdbcType=DECIMAL},
</if>
<if test="NAM != null">
NAM = #{NAM,jdbcType=CHAR},
</if>
<if test="ACC != null">
ACC = #{ACC,jdbcType=CHAR},
</if>
<if test="ACC2 != null">
ACC2 = #{ACC2,jdbcType=CHAR},
</if>
<if test="OPTDAT != null">
OPTDAT = #{OPTDAT,jdbcType=TIMESTAMP},
</if>
<if test="RELCSHPCT != null">
RELCSHPCT = #{RELCSHPCT,jdbcType=DECIMAL},
</if>
<if test="NOMPCT != null">
NOMPCT = #{NOMPCT,jdbcType=DECIMAL},
</if>
<if test="GLEDAT != null">
GLEDAT = #{GLEDAT,jdbcType=TIMESTAMP},
</if>
</set>
where INR = #{INR,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Cbe">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update CBE
set OBJTYP = #{OBJTYP,jdbcType=CHAR},
OBJINR = #{OBJINR,jdbcType=CHAR},
EXTID = #{EXTID,jdbcType=CHAR},
CBT = #{CBT,jdbcType=CHAR},
TRNTYP = #{TRNTYP,jdbcType=CHAR},
TRNINR = #{TRNINR,jdbcType=CHAR},
DAT = #{DAT,jdbcType=TIMESTAMP},
CUR = #{CUR,jdbcType=CHAR},
AMT = #{AMT,jdbcType=DECIMAL},
RELFLG = #{RELFLG,jdbcType=CHAR},
CREDAT = #{CREDAT,jdbcType=TIMESTAMP},
XRFCUR = #{XRFCUR,jdbcType=CHAR},
XRFAMT = #{XRFAMT,jdbcType=DECIMAL},
NAM = #{NAM,jdbcType=CHAR},
ACC = #{ACC,jdbcType=CHAR},
ACC2 = #{ACC2,jdbcType=CHAR},
OPTDAT = #{OPTDAT,jdbcType=TIMESTAMP},
RELCSHPCT = #{RELCSHPCT,jdbcType=DECIMAL},
NOMPCT = #{NOMPCT,jdbcType=DECIMAL},
GLEDAT = #{GLEDAT,jdbcType=TIMESTAMP}
where INR = #{INR,jdbcType=CHAR}
</update>
</mapper> </mapper>
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Dec 17 14:04:39 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
<id column="COUNAM" jdbcType="VARCHAR" property="COUNAM" /> <id column="COUNAM" jdbcType="VARCHAR" property="COUNAM" />
<result column="COUSTP" jdbcType="DECIMAL" property="COUSTP" /> <result column="COUSTP" jdbcType="DECIMAL" property="COUSTP" />
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Dec 17 14:04:39 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
COUNAM, COUSTP, COUVAL COUNAM, COUSTP, COUVAL
</sql> </sql>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Dec 17 14:04:39 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Dec 17 14:04:39 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
delete from COU delete from COU
where COUNAM = #{COUNAM,jdbcType=VARCHAR} where COUNAM = #{COUNAM,jdbcType=VARCHAR}
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Dec 17 14:04:39 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into COU (COUNAM, COUSTP, COUVAL insert into COU (COUNAM, COUSTP, COUVAL
) )
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Dec 17 14:04:39 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into COU insert into COU
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Dec 17 14:04:39 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
update COU update COU
<set> <set>
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Dec 17 14:04:39 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
update COU update COU
set COUSTP = #{COUSTP,jdbcType=DECIMAL}, set COUSTP = #{COUSTP,jdbcType=DECIMAL},
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
<result column="INR" jdbcType="CHAR" property="INR" /> <id column="INR" jdbcType="CHAR" property="INR" />
<result column="FLDMODBLK" jdbcType="VARCHAR" property="FLDMODBLK" /> <result column="FLDMODBLK" jdbcType="VARCHAR" property="FLDMODBLK" />
<result column="NARHIS" jdbcType="VARCHAR" property="NARHIS" /> <result column="NARHIS" jdbcType="VARCHAR" property="NARHIS" />
<result column="CONTAG72" jdbcType="VARCHAR" property="CONTAG72" /> <result column="CONTAG72" jdbcType="VARCHAR" property="CONTAG72" />
...@@ -15,11 +15,39 @@ ...@@ -15,11 +15,39 @@
<result column="CONTAG70" jdbcType="VARCHAR" property="CONTAG70" /> <result column="CONTAG70" jdbcType="VARCHAR" property="CONTAG70" />
<result column="REMARK" jdbcType="VARCHAR" property="REMARK" /> <result column="REMARK" jdbcType="VARCHAR" property="REMARK" />
</resultMap> </resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
INR, FLDMODBLK, NARHIS, CONTAG72, CONTAG79, CONTAG70, REMARK
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
select
<include refid="Base_Column_List" />
from CPT
where INR = #{INR,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
delete from CPT
where INR = #{INR,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Cpt"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Cpt">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into CPT (INR, FLDMODBLK, NARHIS, insert into CPT (INR, FLDMODBLK, NARHIS,
CONTAG72, CONTAG79, CONTAG70, CONTAG72, CONTAG79, CONTAG70,
...@@ -32,7 +60,7 @@ ...@@ -32,7 +60,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into CPT insert into CPT
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -82,4 +110,48 @@ ...@@ -82,4 +110,48 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.remit.db.model.Cpt">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update CPT
<set>
<if test="FLDMODBLK != null">
FLDMODBLK = #{FLDMODBLK,jdbcType=VARCHAR},
</if>
<if test="NARHIS != null">
NARHIS = #{NARHIS,jdbcType=VARCHAR},
</if>
<if test="CONTAG72 != null">
CONTAG72 = #{CONTAG72,jdbcType=VARCHAR},
</if>
<if test="CONTAG79 != null">
CONTAG79 = #{CONTAG79,jdbcType=VARCHAR},
</if>
<if test="CONTAG70 != null">
CONTAG70 = #{CONTAG70,jdbcType=VARCHAR},
</if>
<if test="REMARK != null">
REMARK = #{REMARK,jdbcType=VARCHAR},
</if>
</set>
where INR = #{INR,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Cpt">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update CPT
set FLDMODBLK = #{FLDMODBLK,jdbcType=VARCHAR},
NARHIS = #{NARHIS,jdbcType=VARCHAR},
CONTAG72 = #{CONTAG72,jdbcType=VARCHAR},
CONTAG79 = #{CONTAG79,jdbcType=VARCHAR},
CONTAG70 = #{CONTAG70,jdbcType=VARCHAR},
REMARK = #{REMARK,jdbcType=VARCHAR}
where INR = #{INR,jdbcType=CHAR}
</update>
</mapper> </mapper>
\ No newline at end of file
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
<result column="INR" jdbcType="CHAR" property="INR" /> <id column="INR" jdbcType="CHAR" property="INR" />
<result column="PTYINR" jdbcType="CHAR" property="PTYINR" /> <result column="PTYINR" jdbcType="CHAR" property="PTYINR" />
<result column="NAM" jdbcType="CHAR" property="NAM" /> <result column="NAM" jdbcType="CHAR" property="NAM" />
<result column="PRI" jdbcType="CHAR" property="PRI" /> <result column="PRI" jdbcType="CHAR" property="PRI" />
...@@ -38,11 +38,41 @@ ...@@ -38,11 +38,41 @@
<result column="BEIZHU1" jdbcType="CHAR" property="BEIZHU1" /> <result column="BEIZHU1" jdbcType="CHAR" property="BEIZHU1" />
<result column="BEIZHU2" jdbcType="CHAR" property="BEIZHU2" /> <result column="BEIZHU2" jdbcType="CHAR" property="BEIZHU2" />
</resultMap> </resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
INR, PTYINR, NAM, PRI, ENO, OBJTYP, OBJINR, OBJKEY, USG, VER, BIC, ADRSTA, PTYTYP,
PTYEXTKEY, TID, LOCCTY, CLC, ETGEXTKEY, BRANCHINR, BCHKEYINR, CUSPRO, CUSSEG, ATTDAT,
ATTRSN, CUSMAN, CPMAN, PTYCORE, GJDELFLG, BEIZHU1, BEIZHU2
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
select
<include refid="Base_Column_List" />
from PTA
where INR = #{INR,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
delete from PTA
where INR = #{INR,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Pta"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Pta">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into PTA (INR, PTYINR, NAM, PRI, insert into PTA (INR, PTYINR, NAM, PRI,
ENO, OBJTYP, OBJINR, OBJKEY, ENO, OBJTYP, OBJINR, OBJKEY,
...@@ -65,7 +95,7 @@ ...@@ -65,7 +95,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into PTA insert into PTA
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -253,4 +283,140 @@ ...@@ -253,4 +283,140 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.remit.db.model.Pta">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update PTA
<set>
<if test="PTYINR != null">
PTYINR = #{PTYINR,jdbcType=CHAR},
</if>
<if test="NAM != null">
NAM = #{NAM,jdbcType=CHAR},
</if>
<if test="PRI != null">
PRI = #{PRI,jdbcType=CHAR},
</if>
<if test="ENO != null">
ENO = #{ENO,jdbcType=CHAR},
</if>
<if test="OBJTYP != null">
OBJTYP = #{OBJTYP,jdbcType=CHAR},
</if>
<if test="OBJINR != null">
OBJINR = #{OBJINR,jdbcType=CHAR},
</if>
<if test="OBJKEY != null">
OBJKEY = #{OBJKEY,jdbcType=CHAR},
</if>
<if test="USG != null">
USG = #{USG,jdbcType=CHAR},
</if>
<if test="VER != null">
VER = #{VER,jdbcType=CHAR},
</if>
<if test="BIC != null">
BIC = #{BIC,jdbcType=CHAR},
</if>
<if test="ADRSTA != null">
ADRSTA = #{ADRSTA,jdbcType=CHAR},
</if>
<if test="PTYTYP != null">
PTYTYP = #{PTYTYP,jdbcType=CHAR},
</if>
<if test="PTYEXTKEY != null">
PTYEXTKEY = #{PTYEXTKEY,jdbcType=CHAR},
</if>
<if test="TID != null">
TID = #{TID,jdbcType=CHAR},
</if>
<if test="LOCCTY != null">
LOCCTY = #{LOCCTY,jdbcType=CHAR},
</if>
<if test="CLC != null">
CLC = #{CLC,jdbcType=CHAR},
</if>
<if test="ETGEXTKEY != null">
ETGEXTKEY = #{ETGEXTKEY,jdbcType=CHAR},
</if>
<if test="BRANCHINR != null">
BRANCHINR = #{BRANCHINR,jdbcType=CHAR},
</if>
<if test="BCHKEYINR != null">
BCHKEYINR = #{BCHKEYINR,jdbcType=CHAR},
</if>
<if test="CUSPRO != null">
CUSPRO = #{CUSPRO,jdbcType=CHAR},
</if>
<if test="CUSSEG != null">
CUSSEG = #{CUSSEG,jdbcType=CHAR},
</if>
<if test="ATTDAT != null">
ATTDAT = #{ATTDAT,jdbcType=TIMESTAMP},
</if>
<if test="ATTRSN != null">
ATTRSN = #{ATTRSN,jdbcType=CHAR},
</if>
<if test="CUSMAN != null">
CUSMAN = #{CUSMAN,jdbcType=CHAR},
</if>
<if test="CPMAN != null">
CPMAN = #{CPMAN,jdbcType=CHAR},
</if>
<if test="PTYCORE != null">
PTYCORE = #{PTYCORE,jdbcType=CHAR},
</if>
<if test="GJDELFLG != null">
GJDELFLG = #{GJDELFLG,jdbcType=CHAR},
</if>
<if test="BEIZHU1 != null">
BEIZHU1 = #{BEIZHU1,jdbcType=CHAR},
</if>
<if test="BEIZHU2 != null">
BEIZHU2 = #{BEIZHU2,jdbcType=CHAR},
</if>
</set>
where INR = #{INR,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Pta">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update PTA
set PTYINR = #{PTYINR,jdbcType=CHAR},
NAM = #{NAM,jdbcType=CHAR},
PRI = #{PRI,jdbcType=CHAR},
ENO = #{ENO,jdbcType=CHAR},
OBJTYP = #{OBJTYP,jdbcType=CHAR},
OBJINR = #{OBJINR,jdbcType=CHAR},
OBJKEY = #{OBJKEY,jdbcType=CHAR},
USG = #{USG,jdbcType=CHAR},
VER = #{VER,jdbcType=CHAR},
BIC = #{BIC,jdbcType=CHAR},
ADRSTA = #{ADRSTA,jdbcType=CHAR},
PTYTYP = #{PTYTYP,jdbcType=CHAR},
PTYEXTKEY = #{PTYEXTKEY,jdbcType=CHAR},
TID = #{TID,jdbcType=CHAR},
LOCCTY = #{LOCCTY,jdbcType=CHAR},
CLC = #{CLC,jdbcType=CHAR},
ETGEXTKEY = #{ETGEXTKEY,jdbcType=CHAR},
BRANCHINR = #{BRANCHINR,jdbcType=CHAR},
BCHKEYINR = #{BCHKEYINR,jdbcType=CHAR},
CUSPRO = #{CUSPRO,jdbcType=CHAR},
CUSSEG = #{CUSSEG,jdbcType=CHAR},
ATTDAT = #{ATTDAT,jdbcType=TIMESTAMP},
ATTRSN = #{ATTRSN,jdbcType=CHAR},
CUSMAN = #{CUSMAN,jdbcType=CHAR},
CPMAN = #{CPMAN,jdbcType=CHAR},
PTYCORE = #{PTYCORE,jdbcType=CHAR},
GJDELFLG = #{GJDELFLG,jdbcType=CHAR},
BEIZHU1 = #{BEIZHU1,jdbcType=CHAR},
BEIZHU2 = #{BEIZHU2,jdbcType=CHAR}
where INR = #{INR,jdbcType=CHAR}
</update>
</mapper> </mapper>
\ No newline at end of file
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
<result column="INR" jdbcType="CHAR" property="INR" /> <id column="INR" jdbcType="CHAR" property="INR" />
<result column="OBJTYP" jdbcType="CHAR" property="OBJTYP" /> <result column="OBJTYP" jdbcType="CHAR" property="OBJTYP" />
<result column="OBJINR" jdbcType="CHAR" property="OBJINR" /> <result column="OBJINR" jdbcType="CHAR" property="OBJINR" />
<result column="SUBID" jdbcType="CHAR" property="SUBID" /> <result column="SUBID" jdbcType="CHAR" property="SUBID" />
...@@ -40,11 +40,41 @@ ...@@ -40,11 +40,41 @@
<result column="SYSRAT" jdbcType="DECIMAL" property="SYSRAT" /> <result column="SYSRAT" jdbcType="DECIMAL" property="SYSRAT" />
<result column="INVMATDAT" jdbcType="TIMESTAMP" property="INVMATDAT" /> <result column="INVMATDAT" jdbcType="TIMESTAMP" property="INVMATDAT" />
</resultMap> </resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
INR, OBJTYP, OBJINR, SUBID, CBTPFX, GRPKEY, EXTID, LIAPTYINR, LIAPTAINR, CDTPTSINR,
OWNREF, NAM, FEEINR, BEGDAT, CLSDAT, SETDAT, NXTCOMDAT, ROLPAY, MATDAT, COVTYP, PRC,
AMTFLG, VER, LSBTYP, CCVROL, PTPTYP, ASGTXT, ASBTXT, INVISSDAT, SYSAMT, SYSRAT, INVMATDAT
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
select
<include refid="Base_Column_List" />
from PTE
where INR = #{INR,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
delete from PTE
where INR = #{INR,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Pte"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Pte">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into PTE (INR, OBJTYP, OBJINR, SUBID, insert into PTE (INR, OBJTYP, OBJINR, SUBID,
CBTPFX, GRPKEY, EXTID, LIAPTYINR, CBTPFX, GRPKEY, EXTID, LIAPTYINR,
...@@ -71,7 +101,7 @@ ...@@ -71,7 +101,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into PTE insert into PTE
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -271,4 +301,148 @@ ...@@ -271,4 +301,148 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.remit.db.model.Pte">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update PTE
<set>
<if test="OBJTYP != null">
OBJTYP = #{OBJTYP,jdbcType=CHAR},
</if>
<if test="OBJINR != null">
OBJINR = #{OBJINR,jdbcType=CHAR},
</if>
<if test="SUBID != null">
SUBID = #{SUBID,jdbcType=CHAR},
</if>
<if test="CBTPFX != null">
CBTPFX = #{CBTPFX,jdbcType=CHAR},
</if>
<if test="GRPKEY != null">
GRPKEY = #{GRPKEY,jdbcType=CHAR},
</if>
<if test="EXTID != null">
EXTID = #{EXTID,jdbcType=CHAR},
</if>
<if test="LIAPTYINR != null">
LIAPTYINR = #{LIAPTYINR,jdbcType=CHAR},
</if>
<if test="LIAPTAINR != null">
LIAPTAINR = #{LIAPTAINR,jdbcType=CHAR},
</if>
<if test="CDTPTSINR != null">
CDTPTSINR = #{CDTPTSINR,jdbcType=CHAR},
</if>
<if test="OWNREF != null">
OWNREF = #{OWNREF,jdbcType=CHAR},
</if>
<if test="NAM != null">
NAM = #{NAM,jdbcType=CHAR},
</if>
<if test="FEEINR != null">
FEEINR = #{FEEINR,jdbcType=CHAR},
</if>
<if test="BEGDAT != null">
BEGDAT = #{BEGDAT,jdbcType=TIMESTAMP},
</if>
<if test="CLSDAT != null">
CLSDAT = #{CLSDAT,jdbcType=TIMESTAMP},
</if>
<if test="SETDAT != null">
SETDAT = #{SETDAT,jdbcType=TIMESTAMP},
</if>
<if test="NXTCOMDAT != null">
NXTCOMDAT = #{NXTCOMDAT,jdbcType=TIMESTAMP},
</if>
<if test="ROLPAY != null">
ROLPAY = #{ROLPAY,jdbcType=CHAR},
</if>
<if test="MATDAT != null">
MATDAT = #{MATDAT,jdbcType=TIMESTAMP},
</if>
<if test="COVTYP != null">
COVTYP = #{COVTYP,jdbcType=CHAR},
</if>
<if test="PRC != null">
PRC = #{PRC,jdbcType=DECIMAL},
</if>
<if test="AMTFLG != null">
AMTFLG = #{AMTFLG,jdbcType=CHAR},
</if>
<if test="VER != null">
VER = #{VER,jdbcType=CHAR},
</if>
<if test="LSBTYP != null">
LSBTYP = #{LSBTYP,jdbcType=CHAR},
</if>
<if test="CCVROL != null">
CCVROL = #{CCVROL,jdbcType=CHAR},
</if>
<if test="PTPTYP != null">
PTPTYP = #{PTPTYP,jdbcType=CHAR},
</if>
<if test="ASGTXT != null">
ASGTXT = #{ASGTXT,jdbcType=VARCHAR},
</if>
<if test="ASBTXT != null">
ASBTXT = #{ASBTXT,jdbcType=VARCHAR},
</if>
<if test="INVISSDAT != null">
INVISSDAT = #{INVISSDAT,jdbcType=TIMESTAMP},
</if>
<if test="SYSAMT != null">
SYSAMT = #{SYSAMT,jdbcType=DECIMAL},
</if>
<if test="SYSRAT != null">
SYSRAT = #{SYSRAT,jdbcType=DECIMAL},
</if>
<if test="INVMATDAT != null">
INVMATDAT = #{INVMATDAT,jdbcType=TIMESTAMP},
</if>
</set>
where INR = #{INR,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Pte">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update PTE
set OBJTYP = #{OBJTYP,jdbcType=CHAR},
OBJINR = #{OBJINR,jdbcType=CHAR},
SUBID = #{SUBID,jdbcType=CHAR},
CBTPFX = #{CBTPFX,jdbcType=CHAR},
GRPKEY = #{GRPKEY,jdbcType=CHAR},
EXTID = #{EXTID,jdbcType=CHAR},
LIAPTYINR = #{LIAPTYINR,jdbcType=CHAR},
LIAPTAINR = #{LIAPTAINR,jdbcType=CHAR},
CDTPTSINR = #{CDTPTSINR,jdbcType=CHAR},
OWNREF = #{OWNREF,jdbcType=CHAR},
NAM = #{NAM,jdbcType=CHAR},
FEEINR = #{FEEINR,jdbcType=CHAR},
BEGDAT = #{BEGDAT,jdbcType=TIMESTAMP},
CLSDAT = #{CLSDAT,jdbcType=TIMESTAMP},
SETDAT = #{SETDAT,jdbcType=TIMESTAMP},
NXTCOMDAT = #{NXTCOMDAT,jdbcType=TIMESTAMP},
ROLPAY = #{ROLPAY,jdbcType=CHAR},
MATDAT = #{MATDAT,jdbcType=TIMESTAMP},
COVTYP = #{COVTYP,jdbcType=CHAR},
PRC = #{PRC,jdbcType=DECIMAL},
AMTFLG = #{AMTFLG,jdbcType=CHAR},
VER = #{VER,jdbcType=CHAR},
LSBTYP = #{LSBTYP,jdbcType=CHAR},
CCVROL = #{CCVROL,jdbcType=CHAR},
PTPTYP = #{PTPTYP,jdbcType=CHAR},
ASGTXT = #{ASGTXT,jdbcType=VARCHAR},
ASBTXT = #{ASBTXT,jdbcType=VARCHAR},
INVISSDAT = #{INVISSDAT,jdbcType=TIMESTAMP},
SYSAMT = #{SYSAMT,jdbcType=DECIMAL},
SYSRAT = #{SYSRAT,jdbcType=DECIMAL},
INVMATDAT = #{INVMATDAT,jdbcType=TIMESTAMP}
where INR = #{INR,jdbcType=CHAR}
</update>
</mapper> </mapper>
\ No newline at end of file
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
<result column="INR" jdbcType="CHAR" property="INR" /> <id column="INR" jdbcType="CHAR" property="INR" />
<result column="PTAINR" jdbcType="CHAR" property="PTAINR" /> <result column="PTAINR" jdbcType="CHAR" property="PTAINR" />
<result column="CORTYP" jdbcType="CHAR" property="CORTYP" /> <result column="CORTYP" jdbcType="CHAR" property="CORTYP" />
<result column="CORADR" jdbcType="CHAR" property="CORADR" /> <result column="CORADR" jdbcType="CHAR" property="CORADR" />
...@@ -16,11 +16,39 @@ ...@@ -16,11 +16,39 @@
<result column="VER" jdbcType="CHAR" property="VER" /> <result column="VER" jdbcType="CHAR" property="VER" />
<result column="ETGEXTKEY" jdbcType="CHAR" property="ETGEXTKEY" /> <result column="ETGEXTKEY" jdbcType="CHAR" property="ETGEXTKEY" />
</resultMap> </resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
INR, PTAINR, CORTYP, CORADR, AUTFLG, AUTDET, VER, ETGEXTKEY
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
select
<include refid="Base_Column_List" />
from PTM
where INR = #{INR,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
delete from PTM
where INR = #{INR,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Ptm"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Ptm">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into PTM (INR, PTAINR, CORTYP, CORADR, insert into PTM (INR, PTAINR, CORTYP, CORADR,
AUTFLG, AUTDET, VER, ETGEXTKEY AUTFLG, AUTDET, VER, ETGEXTKEY
...@@ -33,7 +61,7 @@ ...@@ -33,7 +61,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into PTM insert into PTM
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -89,4 +117,52 @@ ...@@ -89,4 +117,52 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.remit.db.model.Ptm">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update PTM
<set>
<if test="PTAINR != null">
PTAINR = #{PTAINR,jdbcType=CHAR},
</if>
<if test="CORTYP != null">
CORTYP = #{CORTYP,jdbcType=CHAR},
</if>
<if test="CORADR != null">
CORADR = #{CORADR,jdbcType=CHAR},
</if>
<if test="AUTFLG != null">
AUTFLG = #{AUTFLG,jdbcType=CHAR},
</if>
<if test="AUTDET != null">
AUTDET = #{AUTDET,jdbcType=CHAR},
</if>
<if test="VER != null">
VER = #{VER,jdbcType=CHAR},
</if>
<if test="ETGEXTKEY != null">
ETGEXTKEY = #{ETGEXTKEY,jdbcType=CHAR},
</if>
</set>
where INR = #{INR,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Ptm">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update PTM
set PTAINR = #{PTAINR,jdbcType=CHAR},
CORTYP = #{CORTYP,jdbcType=CHAR},
CORADR = #{CORADR,jdbcType=CHAR},
AUTFLG = #{AUTFLG,jdbcType=CHAR},
AUTDET = #{AUTDET,jdbcType=CHAR},
VER = #{VER,jdbcType=CHAR},
ETGEXTKEY = #{ETGEXTKEY,jdbcType=CHAR}
where INR = #{INR,jdbcType=CHAR}
</update>
</mapper> </mapper>
\ No newline at end of file
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
<result column="INR" jdbcType="CHAR" property="INR" /> <id column="INR" jdbcType="CHAR" property="INR" />
<result column="OBJTYP" jdbcType="CHAR" property="OBJTYP" /> <result column="OBJTYP" jdbcType="CHAR" property="OBJTYP" />
<result column="OBJINR" jdbcType="CHAR" property="OBJINR" /> <result column="OBJINR" jdbcType="CHAR" property="OBJINR" />
<result column="ROL" jdbcType="CHAR" property="ROL" /> <result column="ROL" jdbcType="CHAR" property="ROL" />
...@@ -44,11 +44,42 @@ ...@@ -44,11 +44,42 @@
<result column="TELNUM" jdbcType="CHAR" property="TELNUM" /> <result column="TELNUM" jdbcType="CHAR" property="TELNUM" />
<result column="RMBRPT" jdbcType="CHAR" property="RMBRPT" /> <result column="RMBRPT" jdbcType="CHAR" property="RMBRPT" />
</resultMap> </resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
INR, OBJTYP, OBJINR, ROL, PTAINR, PTYINR, EXTKEY, ADRBLK, REF, NAM, OWNREF, DFTCUR,
DFTDSP, DFTACT, DFTFEECUR, DFTACTPTAINR, GLGGRPFLG, EXTACT, VER, DFTSETROL, SETXRTINF,
CLIBANTYP, PTCNAM, PTCOE, ADRBLKCN, BNKNAMCN, BNKCOD, PTYNAM, CUSPRO, CUSSEG, ATTDAT,
ATTRSN, CUSTYP, LOCZIP, TELNUM, RMBRPT
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
select
<include refid="Base_Column_List" />
from PTS
where INR = #{INR,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
delete from PTS
where INR = #{INR,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Pts"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Pts">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into PTS (INR, OBJTYP, OBJINR, ROL, insert into PTS (INR, OBJTYP, OBJINR, ROL,
PTAINR, PTYINR, EXTKEY, ADRBLK, PTAINR, PTYINR, EXTKEY, ADRBLK,
...@@ -75,7 +106,7 @@ ...@@ -75,7 +106,7 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into PTS insert into PTS
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -299,4 +330,164 @@ ...@@ -299,4 +330,164 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.remit.db.model.Pts">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update PTS
<set>
<if test="OBJTYP != null">
OBJTYP = #{OBJTYP,jdbcType=CHAR},
</if>
<if test="OBJINR != null">
OBJINR = #{OBJINR,jdbcType=CHAR},
</if>
<if test="ROL != null">
ROL = #{ROL,jdbcType=CHAR},
</if>
<if test="PTAINR != null">
PTAINR = #{PTAINR,jdbcType=CHAR},
</if>
<if test="PTYINR != null">
PTYINR = #{PTYINR,jdbcType=CHAR},
</if>
<if test="EXTKEY != null">
EXTKEY = #{EXTKEY,jdbcType=CHAR},
</if>
<if test="ADRBLK != null">
ADRBLK = #{ADRBLK,jdbcType=VARCHAR},
</if>
<if test="REF != null">
REF = #{REF,jdbcType=CHAR},
</if>
<if test="NAM != null">
NAM = #{NAM,jdbcType=CHAR},
</if>
<if test="OWNREF != null">
OWNREF = #{OWNREF,jdbcType=CHAR},
</if>
<if test="DFTCUR != null">
DFTCUR = #{DFTCUR,jdbcType=CHAR},
</if>
<if test="DFTDSP != null">
DFTDSP = #{DFTDSP,jdbcType=CHAR},
</if>
<if test="DFTACT != null">
DFTACT = #{DFTACT,jdbcType=CHAR},
</if>
<if test="DFTFEECUR != null">
DFTFEECUR = #{DFTFEECUR,jdbcType=CHAR},
</if>
<if test="DFTACTPTAINR != null">
DFTACTPTAINR = #{DFTACTPTAINR,jdbcType=CHAR},
</if>
<if test="GLGGRPFLG != null">
GLGGRPFLG = #{GLGGRPFLG,jdbcType=CHAR},
</if>
<if test="EXTACT != null">
EXTACT = #{EXTACT,jdbcType=CHAR},
</if>
<if test="VER != null">
VER = #{VER,jdbcType=CHAR},
</if>
<if test="DFTSETROL != null">
DFTSETROL = #{DFTSETROL,jdbcType=CHAR},
</if>
<if test="SETXRTINF != null">
SETXRTINF = #{SETXRTINF,jdbcType=VARCHAR},
</if>
<if test="CLIBANTYP != null">
CLIBANTYP = #{CLIBANTYP,jdbcType=CHAR},
</if>
<if test="PTCNAM != null">
PTCNAM = #{PTCNAM,jdbcType=CHAR},
</if>
<if test="PTCOE != null">
PTCOE = #{PTCOE,jdbcType=CHAR},
</if>
<if test="ADRBLKCN != null">
ADRBLKCN = #{ADRBLKCN,jdbcType=VARCHAR},
</if>
<if test="BNKNAMCN != null">
BNKNAMCN = #{BNKNAMCN,jdbcType=CHAR},
</if>
<if test="BNKCOD != null">
BNKCOD = #{BNKCOD,jdbcType=CHAR},
</if>
<if test="PTYNAM != null">
PTYNAM = #{PTYNAM,jdbcType=CHAR},
</if>
<if test="CUSPRO != null">
CUSPRO = #{CUSPRO,jdbcType=CHAR},
</if>
<if test="CUSSEG != null">
CUSSEG = #{CUSSEG,jdbcType=CHAR},
</if>
<if test="ATTDAT != null">
ATTDAT = #{ATTDAT,jdbcType=TIMESTAMP},
</if>
<if test="ATTRSN != null">
ATTRSN = #{ATTRSN,jdbcType=CHAR},
</if>
<if test="CUSTYP != null">
CUSTYP = #{CUSTYP,jdbcType=CHAR},
</if>
<if test="LOCZIP != null">
LOCZIP = #{LOCZIP,jdbcType=CHAR},
</if>
<if test="TELNUM != null">
TELNUM = #{TELNUM,jdbcType=CHAR},
</if>
<if test="RMBRPT != null">
RMBRPT = #{RMBRPT,jdbcType=CHAR},
</if>
</set>
where INR = #{INR,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Pts">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update PTS
set OBJTYP = #{OBJTYP,jdbcType=CHAR},
OBJINR = #{OBJINR,jdbcType=CHAR},
ROL = #{ROL,jdbcType=CHAR},
PTAINR = #{PTAINR,jdbcType=CHAR},
PTYINR = #{PTYINR,jdbcType=CHAR},
EXTKEY = #{EXTKEY,jdbcType=CHAR},
ADRBLK = #{ADRBLK,jdbcType=VARCHAR},
REF = #{REF,jdbcType=CHAR},
NAM = #{NAM,jdbcType=CHAR},
OWNREF = #{OWNREF,jdbcType=CHAR},
DFTCUR = #{DFTCUR,jdbcType=CHAR},
DFTDSP = #{DFTDSP,jdbcType=CHAR},
DFTACT = #{DFTACT,jdbcType=CHAR},
DFTFEECUR = #{DFTFEECUR,jdbcType=CHAR},
DFTACTPTAINR = #{DFTACTPTAINR,jdbcType=CHAR},
GLGGRPFLG = #{GLGGRPFLG,jdbcType=CHAR},
EXTACT = #{EXTACT,jdbcType=CHAR},
VER = #{VER,jdbcType=CHAR},
DFTSETROL = #{DFTSETROL,jdbcType=CHAR},
SETXRTINF = #{SETXRTINF,jdbcType=VARCHAR},
CLIBANTYP = #{CLIBANTYP,jdbcType=CHAR},
PTCNAM = #{PTCNAM,jdbcType=CHAR},
PTCOE = #{PTCOE,jdbcType=CHAR},
ADRBLKCN = #{ADRBLKCN,jdbcType=VARCHAR},
BNKNAMCN = #{BNKNAMCN,jdbcType=CHAR},
BNKCOD = #{BNKCOD,jdbcType=CHAR},
PTYNAM = #{PTYNAM,jdbcType=CHAR},
CUSPRO = #{CUSPRO,jdbcType=CHAR},
CUSSEG = #{CUSSEG,jdbcType=CHAR},
ATTDAT = #{ATTDAT,jdbcType=TIMESTAMP},
ATTRSN = #{ATTRSN,jdbcType=CHAR},
CUSTYP = #{CUSTYP,jdbcType=CHAR},
LOCZIP = #{LOCZIP,jdbcType=CHAR},
TELNUM = #{TELNUM,jdbcType=CHAR},
RMBRPT = #{RMBRPT,jdbcType=CHAR}
where INR = #{INR,jdbcType=CHAR}
</update>
</mapper> </mapper>
\ No newline at end of file
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
<id column="INR" jdbcType="CHAR" property="INR" />
<result column="ETYEXTKEY" jdbcType="CHAR" property="ETYEXTKEY" /> <result column="ETYEXTKEY" jdbcType="CHAR" property="ETYEXTKEY" />
<result column="INR" jdbcType="CHAR" property="INR" />
<result column="VER" jdbcType="CHAR" property="VER" /> <result column="VER" jdbcType="CHAR" property="VER" />
<result column="PTYINR" jdbcType="CHAR" property="PTYINR" /> <result column="PTYINR" jdbcType="CHAR" property="PTYINR" />
<result column="PTYKEY" jdbcType="CHAR" property="PTYKEY" /> <result column="PTYKEY" jdbcType="CHAR" property="PTYKEY" />
...@@ -26,18 +26,47 @@ ...@@ -26,18 +26,47 @@
<result column="BRANCHINR" jdbcType="CHAR" property="BRANCHINR" /> <result column="BRANCHINR" jdbcType="CHAR" property="BRANCHINR" />
<result column="BCHKEYINR" jdbcType="CHAR" property="BCHKEYINR" /> <result column="BCHKEYINR" jdbcType="CHAR" property="BCHKEYINR" />
</resultMap> </resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
INR, ETYEXTKEY, VER, PTYINR, PTYKEY, ACC, BEGDAT, ENDDAT, CUR, BUYTYP, BUYRAT, SELRAT,
CBYRAT, MIDRAT, NAMCHN, STA, BRANCHINR, BCHKEYINR
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
select
<include refid="Base_Column_List" />
from PTYRAT
where INR = #{INR,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
delete from PTYRAT
where INR = #{INR,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Ptyrat"> <insert id="insert" parameterType="com.brilliance.remit.db.model.Ptyrat">
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into PTYRAT (ETYEXTKEY, INR, VER, PTYINR, insert into PTYRAT (INR, ETYEXTKEY, VER, PTYINR,
PTYKEY, ACC, BEGDAT, ENDDAT, PTYKEY, ACC, BEGDAT, ENDDAT,
CUR, BUYTYP, BUYRAT, SELRAT, CUR, BUYTYP, BUYRAT, SELRAT,
CBYRAT, MIDRAT, NAMCHN, CBYRAT, MIDRAT, NAMCHN,
STA, BRANCHINR, BCHKEYINR) STA, BRANCHINR, BCHKEYINR)
values (#{ETYEXTKEY,jdbcType=CHAR}, #{INR,jdbcType=CHAR}, #{VER,jdbcType=CHAR}, #{PTYINR,jdbcType=CHAR}, values (#{INR,jdbcType=CHAR}, #{ETYEXTKEY,jdbcType=CHAR}, #{VER,jdbcType=CHAR}, #{PTYINR,jdbcType=CHAR},
#{PTYKEY,jdbcType=CHAR}, #{ACC,jdbcType=CHAR}, #{BEGDAT,jdbcType=TIMESTAMP}, #{ENDDAT,jdbcType=TIMESTAMP}, #{PTYKEY,jdbcType=CHAR}, #{ACC,jdbcType=CHAR}, #{BEGDAT,jdbcType=TIMESTAMP}, #{ENDDAT,jdbcType=TIMESTAMP},
#{CUR,jdbcType=CHAR}, #{BUYTYP,jdbcType=CHAR}, #{BUYRAT,jdbcType=DECIMAL}, #{SELRAT,jdbcType=DECIMAL}, #{CUR,jdbcType=CHAR}, #{BUYTYP,jdbcType=CHAR}, #{BUYRAT,jdbcType=DECIMAL}, #{SELRAT,jdbcType=DECIMAL},
#{CBYRAT,jdbcType=DECIMAL}, #{MIDRAT,jdbcType=DECIMAL}, #{NAMCHN,jdbcType=VARCHAR}, #{CBYRAT,jdbcType=DECIMAL}, #{MIDRAT,jdbcType=DECIMAL}, #{NAMCHN,jdbcType=VARCHAR},
...@@ -47,16 +76,16 @@ ...@@ -47,16 +76,16 @@
<!-- <!--
WARNING - @mbggenerated WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Dec 14 16:04:45 CST 2018. This element was generated on Tue Dec 18 10:11:00 CST 2018.
--> -->
insert into PTYRAT insert into PTYRAT
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ETYEXTKEY != null">
ETYEXTKEY,
</if>
<if test="INR != null"> <if test="INR != null">
INR, INR,
</if> </if>
<if test="ETYEXTKEY != null">
ETYEXTKEY,
</if>
<if test="VER != null"> <if test="VER != null">
VER, VER,
</if> </if>
...@@ -107,12 +136,12 @@ ...@@ -107,12 +136,12 @@
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="ETYEXTKEY != null">
#{ETYEXTKEY,jdbcType=CHAR},
</if>
<if test="INR != null"> <if test="INR != null">
#{INR,jdbcType=CHAR}, #{INR,jdbcType=CHAR},
</if> </if>
<if test="ETYEXTKEY != null">
#{ETYEXTKEY,jdbcType=CHAR},
</if>
<if test="VER != null"> <if test="VER != null">
#{VER,jdbcType=CHAR}, #{VER,jdbcType=CHAR},
</if> </if>
...@@ -163,4 +192,92 @@ ...@@ -163,4 +192,92 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.remit.db.model.Ptyrat">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update PTYRAT
<set>
<if test="ETYEXTKEY != null">
ETYEXTKEY = #{ETYEXTKEY,jdbcType=CHAR},
</if>
<if test="VER != null">
VER = #{VER,jdbcType=CHAR},
</if>
<if test="PTYINR != null">
PTYINR = #{PTYINR,jdbcType=CHAR},
</if>
<if test="PTYKEY != null">
PTYKEY = #{PTYKEY,jdbcType=CHAR},
</if>
<if test="ACC != null">
ACC = #{ACC,jdbcType=CHAR},
</if>
<if test="BEGDAT != null">
BEGDAT = #{BEGDAT,jdbcType=TIMESTAMP},
</if>
<if test="ENDDAT != null">
ENDDAT = #{ENDDAT,jdbcType=TIMESTAMP},
</if>
<if test="CUR != null">
CUR = #{CUR,jdbcType=CHAR},
</if>
<if test="BUYTYP != null">
BUYTYP = #{BUYTYP,jdbcType=CHAR},
</if>
<if test="BUYRAT != null">
BUYRAT = #{BUYRAT,jdbcType=DECIMAL},
</if>
<if test="SELRAT != null">
SELRAT = #{SELRAT,jdbcType=DECIMAL},
</if>
<if test="CBYRAT != null">
CBYRAT = #{CBYRAT,jdbcType=DECIMAL},
</if>
<if test="MIDRAT != null">
MIDRAT = #{MIDRAT,jdbcType=DECIMAL},
</if>
<if test="NAMCHN != null">
NAMCHN = #{NAMCHN,jdbcType=VARCHAR},
</if>
<if test="STA != null">
STA = #{STA,jdbcType=CHAR},
</if>
<if test="BRANCHINR != null">
BRANCHINR = #{BRANCHINR,jdbcType=CHAR},
</if>
<if test="BCHKEYINR != null">
BCHKEYINR = #{BCHKEYINR,jdbcType=CHAR},
</if>
</set>
where INR = #{INR,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Ptyrat">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update PTYRAT
set ETYEXTKEY = #{ETYEXTKEY,jdbcType=CHAR},
VER = #{VER,jdbcType=CHAR},
PTYINR = #{PTYINR,jdbcType=CHAR},
PTYKEY = #{PTYKEY,jdbcType=CHAR},
ACC = #{ACC,jdbcType=CHAR},
BEGDAT = #{BEGDAT,jdbcType=TIMESTAMP},
ENDDAT = #{ENDDAT,jdbcType=TIMESTAMP},
CUR = #{CUR,jdbcType=CHAR},
BUYTYP = #{BUYTYP,jdbcType=CHAR},
BUYRAT = #{BUYRAT,jdbcType=DECIMAL},
SELRAT = #{SELRAT,jdbcType=DECIMAL},
CBYRAT = #{CBYRAT,jdbcType=DECIMAL},
MIDRAT = #{MIDRAT,jdbcType=DECIMAL},
NAMCHN = #{NAMCHN,jdbcType=VARCHAR},
STA = #{STA,jdbcType=CHAR},
BRANCHINR = #{BRANCHINR,jdbcType=CHAR},
BCHKEYINR = #{BCHKEYINR,jdbcType=CHAR}
where INR = #{INR,jdbcType=CHAR}
</update>
</mapper> </mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.brilliance.remit.db.dao.UsrMapper">
<resultMap id="BaseResultMap" type="com.brilliance.remit.db.model.Usr">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
<id column="INR" jdbcType="CHAR" property="INR" />
<result column="NAM" jdbcType="VARCHAR" property="NAM" />
<result column="PWD" jdbcType="VARCHAR" property="PWD" />
<result column="CHNNAM" jdbcType="VARCHAR" property="CHNNAM" />
<result column="USRLEV" jdbcType="CHAR" property="USRLEV" />
<result column="BCHINR" jdbcType="CHAR" property="BCHINR" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
INR, NAM, PWD, CHNNAM, USRLEV, BCHINR
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
select
<include refid="Base_Column_List" />
from USR
where INR = #{INR,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
delete from USR
where INR = #{INR,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.brilliance.remit.db.model.Usr">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
insert into USR (INR, NAM, PWD, CHNNAM,
USRLEV, BCHINR)
values (#{INR,jdbcType=CHAR}, #{NAM,jdbcType=VARCHAR}, #{PWD,jdbcType=VARCHAR}, #{CHNNAM,jdbcType=VARCHAR},
#{USRLEV,jdbcType=CHAR}, #{BCHINR,jdbcType=CHAR})
</insert>
<insert id="insertSelective" parameterType="com.brilliance.remit.db.model.Usr">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
insert into USR
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="INR != null">
INR,
</if>
<if test="NAM != null">
NAM,
</if>
<if test="PWD != null">
PWD,
</if>
<if test="CHNNAM != null">
CHNNAM,
</if>
<if test="USRLEV != null">
USRLEV,
</if>
<if test="BCHINR != null">
BCHINR,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="INR != null">
#{INR,jdbcType=CHAR},
</if>
<if test="NAM != null">
#{NAM,jdbcType=VARCHAR},
</if>
<if test="PWD != null">
#{PWD,jdbcType=VARCHAR},
</if>
<if test="CHNNAM != null">
#{CHNNAM,jdbcType=VARCHAR},
</if>
<if test="USRLEV != null">
#{USRLEV,jdbcType=CHAR},
</if>
<if test="BCHINR != null">
#{BCHINR,jdbcType=CHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.brilliance.remit.db.model.Usr">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update USR
<set>
<if test="NAM != null">
NAM = #{NAM,jdbcType=VARCHAR},
</if>
<if test="PWD != null">
PWD = #{PWD,jdbcType=VARCHAR},
</if>
<if test="CHNNAM != null">
CHNNAM = #{CHNNAM,jdbcType=VARCHAR},
</if>
<if test="USRLEV != null">
USRLEV = #{USRLEV,jdbcType=CHAR},
</if>
<if test="BCHINR != null">
BCHINR = #{BCHINR,jdbcType=CHAR},
</if>
</set>
where INR = #{INR,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.brilliance.remit.db.model.Usr">
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Dec 18 10:11:00 CST 2018.
-->
update USR
set NAM = #{NAM,jdbcType=VARCHAR},
PWD = #{PWD,jdbcType=VARCHAR},
CHNNAM = #{CHNNAM,jdbcType=VARCHAR},
USRLEV = #{USRLEV,jdbcType=CHAR},
BCHINR = #{BCHINR,jdbcType=CHAR}
where INR = #{INR,jdbcType=CHAR}
</update>
<select id="selectByUserId" resultMap="BaseResultMap">
select * from usr WHERE nam=#{userId,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
...@@ -6,24 +6,24 @@ public class Cou { ...@@ -6,24 +6,24 @@ public class Cou {
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column COU.COUNAM * This field was generated by MyBatis Generator. This field corresponds to the database column COU.COUNAM
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String COUNAM; private String COUNAM;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column COU.COUSTP * This field was generated by MyBatis Generator. This field corresponds to the database column COU.COUSTP
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private BigDecimal COUSTP; private BigDecimal COUSTP;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column COU.COUVAL * This field was generated by MyBatis Generator. This field corresponds to the database column COU.COUVAL
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private BigDecimal COUVAL; private BigDecimal COUVAL;
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column COU.COUNAM * This method was generated by MyBatis Generator. This method returns the value of the database column COU.COUNAM
* @return the value of COU.COUNAM * @return the value of COU.COUNAM
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getCOUNAM() { public String getCOUNAM() {
return COUNAM; return COUNAM;
...@@ -32,7 +32,7 @@ public class Cou { ...@@ -32,7 +32,7 @@ public class Cou {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column COU.COUNAM * This method was generated by MyBatis Generator. This method sets the value of the database column COU.COUNAM
* @param COUNAM the value for COU.COUNAM * @param COUNAM the value for COU.COUNAM
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setCOUNAM(String COUNAM) { public void setCOUNAM(String COUNAM) {
this.COUNAM = COUNAM; this.COUNAM = COUNAM;
...@@ -41,7 +41,7 @@ public class Cou { ...@@ -41,7 +41,7 @@ public class Cou {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column COU.COUSTP * This method was generated by MyBatis Generator. This method returns the value of the database column COU.COUSTP
* @return the value of COU.COUSTP * @return the value of COU.COUSTP
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public BigDecimal getCOUSTP() { public BigDecimal getCOUSTP() {
return COUSTP; return COUSTP;
...@@ -50,7 +50,7 @@ public class Cou { ...@@ -50,7 +50,7 @@ public class Cou {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column COU.COUSTP * This method was generated by MyBatis Generator. This method sets the value of the database column COU.COUSTP
* @param COUSTP the value for COU.COUSTP * @param COUSTP the value for COU.COUSTP
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setCOUSTP(BigDecimal COUSTP) { public void setCOUSTP(BigDecimal COUSTP) {
this.COUSTP = COUSTP; this.COUSTP = COUSTP;
...@@ -59,7 +59,7 @@ public class Cou { ...@@ -59,7 +59,7 @@ public class Cou {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column COU.COUVAL * This method was generated by MyBatis Generator. This method returns the value of the database column COU.COUVAL
* @return the value of COU.COUVAL * @return the value of COU.COUVAL
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public BigDecimal getCOUVAL() { public BigDecimal getCOUVAL() {
return COUVAL; return COUVAL;
...@@ -68,7 +68,7 @@ public class Cou { ...@@ -68,7 +68,7 @@ public class Cou {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column COU.COUVAL * This method was generated by MyBatis Generator. This method sets the value of the database column COU.COUVAL
* @param COUVAL the value for COU.COUVAL * @param COUVAL the value for COU.COUVAL
* @mbggenerated Mon Dec 17 14:04:39 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setCOUVAL(BigDecimal COUVAL) { public void setCOUVAL(BigDecimal COUVAL) {
this.COUVAL = COUVAL; this.COUVAL = COUVAL;
......
...@@ -7,44 +7,44 @@ public class Cpt { ...@@ -7,44 +7,44 @@ public class Cpt {
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.INR * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.INR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String INR; private String INR;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.FLDMODBLK * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.FLDMODBLK
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String FLDMODBLK; private String FLDMODBLK;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.NARHIS * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.NARHIS
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String NARHIS; private String NARHIS;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.CONTAG72 * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.CONTAG72
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String CONTAG72; private String CONTAG72;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.CONTAG79 * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.CONTAG79
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String CONTAG79; private String CONTAG79;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.CONTAG70 * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.CONTAG70
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String CONTAG70; private String CONTAG70;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column CPT.REMARK * This field was generated by MyBatis Generator. This field corresponds to the database column CPT.REMARK
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String REMARK; private String REMARK;
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.INR * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.INR
* @return the value of CPT.INR * @return the value of CPT.INR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getINR() { public String getINR() {
return INR; return INR;
...@@ -53,7 +53,7 @@ public class Cpt { ...@@ -53,7 +53,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.INR * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.INR
* @param INR the value for CPT.INR * @param INR the value for CPT.INR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setINR(String INR) { public void setINR(String INR) {
this.INR = INR; this.INR = INR;
...@@ -62,7 +62,7 @@ public class Cpt { ...@@ -62,7 +62,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.FLDMODBLK * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.FLDMODBLK
* @return the value of CPT.FLDMODBLK * @return the value of CPT.FLDMODBLK
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getFLDMODBLK() { public String getFLDMODBLK() {
return FLDMODBLK; return FLDMODBLK;
...@@ -71,7 +71,7 @@ public class Cpt { ...@@ -71,7 +71,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.FLDMODBLK * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.FLDMODBLK
* @param FLDMODBLK the value for CPT.FLDMODBLK * @param FLDMODBLK the value for CPT.FLDMODBLK
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setFLDMODBLK(String FLDMODBLK) { public void setFLDMODBLK(String FLDMODBLK) {
this.FLDMODBLK = FLDMODBLK; this.FLDMODBLK = FLDMODBLK;
...@@ -80,7 +80,7 @@ public class Cpt { ...@@ -80,7 +80,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.NARHIS * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.NARHIS
* @return the value of CPT.NARHIS * @return the value of CPT.NARHIS
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getNARHIS() { public String getNARHIS() {
return NARHIS; return NARHIS;
...@@ -89,7 +89,7 @@ public class Cpt { ...@@ -89,7 +89,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.NARHIS * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.NARHIS
* @param NARHIS the value for CPT.NARHIS * @param NARHIS the value for CPT.NARHIS
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setNARHIS(String NARHIS) { public void setNARHIS(String NARHIS) {
this.NARHIS = NARHIS; this.NARHIS = NARHIS;
...@@ -98,7 +98,7 @@ public class Cpt { ...@@ -98,7 +98,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.CONTAG72 * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.CONTAG72
* @return the value of CPT.CONTAG72 * @return the value of CPT.CONTAG72
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getCONTAG72() { public String getCONTAG72() {
return CONTAG72; return CONTAG72;
...@@ -107,7 +107,7 @@ public class Cpt { ...@@ -107,7 +107,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.CONTAG72 * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.CONTAG72
* @param CONTAG72 the value for CPT.CONTAG72 * @param CONTAG72 the value for CPT.CONTAG72
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setCONTAG72(String CONTAG72) { public void setCONTAG72(String CONTAG72) {
this.CONTAG72 = CONTAG72; this.CONTAG72 = CONTAG72;
...@@ -116,7 +116,7 @@ public class Cpt { ...@@ -116,7 +116,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.CONTAG79 * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.CONTAG79
* @return the value of CPT.CONTAG79 * @return the value of CPT.CONTAG79
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getCONTAG79() { public String getCONTAG79() {
return CONTAG79; return CONTAG79;
...@@ -125,7 +125,7 @@ public class Cpt { ...@@ -125,7 +125,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.CONTAG79 * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.CONTAG79
* @param CONTAG79 the value for CPT.CONTAG79 * @param CONTAG79 the value for CPT.CONTAG79
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setCONTAG79(String CONTAG79) { public void setCONTAG79(String CONTAG79) {
this.CONTAG79 = CONTAG79; this.CONTAG79 = CONTAG79;
...@@ -134,7 +134,7 @@ public class Cpt { ...@@ -134,7 +134,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.CONTAG70 * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.CONTAG70
* @return the value of CPT.CONTAG70 * @return the value of CPT.CONTAG70
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getCONTAG70() { public String getCONTAG70() {
return CONTAG70; return CONTAG70;
...@@ -143,7 +143,7 @@ public class Cpt { ...@@ -143,7 +143,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.CONTAG70 * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.CONTAG70
* @param CONTAG70 the value for CPT.CONTAG70 * @param CONTAG70 the value for CPT.CONTAG70
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setCONTAG70(String CONTAG70) { public void setCONTAG70(String CONTAG70) {
this.CONTAG70 = CONTAG70; this.CONTAG70 = CONTAG70;
...@@ -152,7 +152,7 @@ public class Cpt { ...@@ -152,7 +152,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column CPT.REMARK * This method was generated by MyBatis Generator. This method returns the value of the database column CPT.REMARK
* @return the value of CPT.REMARK * @return the value of CPT.REMARK
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getREMARK() { public String getREMARK() {
return REMARK; return REMARK;
...@@ -161,7 +161,7 @@ public class Cpt { ...@@ -161,7 +161,7 @@ public class Cpt {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column CPT.REMARK * This method was generated by MyBatis Generator. This method sets the value of the database column CPT.REMARK
* @param REMARK the value for CPT.REMARK * @param REMARK the value for CPT.REMARK
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setREMARK(String REMARK) { public void setREMARK(String REMARK) {
this.REMARK = REMARK; this.REMARK = REMARK;
......
...@@ -6,49 +6,49 @@ public class Ptm { ...@@ -6,49 +6,49 @@ public class Ptm {
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.INR * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.INR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String INR; private String INR;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.PTAINR * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.PTAINR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String PTAINR; private String PTAINR;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.CORTYP * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.CORTYP
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String CORTYP; private String CORTYP;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.CORADR * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.CORADR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String CORADR; private String CORADR;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.AUTFLG * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.AUTFLG
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String AUTFLG; private String AUTFLG;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.AUTDET * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.AUTDET
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String AUTDET; private String AUTDET;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.VER * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.VER
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String VER; private String VER;
/** /**
* This field was generated by MyBatis Generator. This field corresponds to the database column PTM.ETGEXTKEY * This field was generated by MyBatis Generator. This field corresponds to the database column PTM.ETGEXTKEY
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
private String ETGEXTKEY; private String ETGEXTKEY;
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.INR * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.INR
* @return the value of PTM.INR * @return the value of PTM.INR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getINR() { public String getINR() {
return INR; return INR;
...@@ -57,7 +57,7 @@ public class Ptm { ...@@ -57,7 +57,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.INR * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.INR
* @param INR the value for PTM.INR * @param INR the value for PTM.INR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setINR(String INR) { public void setINR(String INR) {
this.INR = INR; this.INR = INR;
...@@ -66,7 +66,7 @@ public class Ptm { ...@@ -66,7 +66,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.PTAINR * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.PTAINR
* @return the value of PTM.PTAINR * @return the value of PTM.PTAINR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getPTAINR() { public String getPTAINR() {
return PTAINR; return PTAINR;
...@@ -75,7 +75,7 @@ public class Ptm { ...@@ -75,7 +75,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.PTAINR * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.PTAINR
* @param PTAINR the value for PTM.PTAINR * @param PTAINR the value for PTM.PTAINR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setPTAINR(String PTAINR) { public void setPTAINR(String PTAINR) {
this.PTAINR = PTAINR; this.PTAINR = PTAINR;
...@@ -84,7 +84,7 @@ public class Ptm { ...@@ -84,7 +84,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.CORTYP * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.CORTYP
* @return the value of PTM.CORTYP * @return the value of PTM.CORTYP
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getCORTYP() { public String getCORTYP() {
return CORTYP; return CORTYP;
...@@ -93,7 +93,7 @@ public class Ptm { ...@@ -93,7 +93,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.CORTYP * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.CORTYP
* @param CORTYP the value for PTM.CORTYP * @param CORTYP the value for PTM.CORTYP
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setCORTYP(String CORTYP) { public void setCORTYP(String CORTYP) {
this.CORTYP = CORTYP; this.CORTYP = CORTYP;
...@@ -102,7 +102,7 @@ public class Ptm { ...@@ -102,7 +102,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.CORADR * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.CORADR
* @return the value of PTM.CORADR * @return the value of PTM.CORADR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getCORADR() { public String getCORADR() {
return CORADR; return CORADR;
...@@ -111,7 +111,7 @@ public class Ptm { ...@@ -111,7 +111,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.CORADR * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.CORADR
* @param CORADR the value for PTM.CORADR * @param CORADR the value for PTM.CORADR
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setCORADR(String CORADR) { public void setCORADR(String CORADR) {
this.CORADR = CORADR; this.CORADR = CORADR;
...@@ -120,7 +120,7 @@ public class Ptm { ...@@ -120,7 +120,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.AUTFLG * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.AUTFLG
* @return the value of PTM.AUTFLG * @return the value of PTM.AUTFLG
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getAUTFLG() { public String getAUTFLG() {
return AUTFLG; return AUTFLG;
...@@ -129,7 +129,7 @@ public class Ptm { ...@@ -129,7 +129,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.AUTFLG * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.AUTFLG
* @param AUTFLG the value for PTM.AUTFLG * @param AUTFLG the value for PTM.AUTFLG
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setAUTFLG(String AUTFLG) { public void setAUTFLG(String AUTFLG) {
this.AUTFLG = AUTFLG; this.AUTFLG = AUTFLG;
...@@ -138,7 +138,7 @@ public class Ptm { ...@@ -138,7 +138,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.AUTDET * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.AUTDET
* @return the value of PTM.AUTDET * @return the value of PTM.AUTDET
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getAUTDET() { public String getAUTDET() {
return AUTDET; return AUTDET;
...@@ -147,7 +147,7 @@ public class Ptm { ...@@ -147,7 +147,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.AUTDET * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.AUTDET
* @param AUTDET the value for PTM.AUTDET * @param AUTDET the value for PTM.AUTDET
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setAUTDET(String AUTDET) { public void setAUTDET(String AUTDET) {
this.AUTDET = AUTDET; this.AUTDET = AUTDET;
...@@ -156,7 +156,7 @@ public class Ptm { ...@@ -156,7 +156,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.VER * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.VER
* @return the value of PTM.VER * @return the value of PTM.VER
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getVER() { public String getVER() {
return VER; return VER;
...@@ -165,7 +165,7 @@ public class Ptm { ...@@ -165,7 +165,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.VER * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.VER
* @param VER the value for PTM.VER * @param VER the value for PTM.VER
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setVER(String VER) { public void setVER(String VER) {
this.VER = VER; this.VER = VER;
...@@ -174,7 +174,7 @@ public class Ptm { ...@@ -174,7 +174,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method returns the value of the database column PTM.ETGEXTKEY * This method was generated by MyBatis Generator. This method returns the value of the database column PTM.ETGEXTKEY
* @return the value of PTM.ETGEXTKEY * @return the value of PTM.ETGEXTKEY
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public String getETGEXTKEY() { public String getETGEXTKEY() {
return ETGEXTKEY; return ETGEXTKEY;
...@@ -183,7 +183,7 @@ public class Ptm { ...@@ -183,7 +183,7 @@ public class Ptm {
/** /**
* This method was generated by MyBatis Generator. This method sets the value of the database column PTM.ETGEXTKEY * This method was generated by MyBatis Generator. This method sets the value of the database column PTM.ETGEXTKEY
* @param ETGEXTKEY the value for PTM.ETGEXTKEY * @param ETGEXTKEY the value for PTM.ETGEXTKEY
* @mbggenerated Fri Dec 14 16:04:45 CST 2018 * @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/ */
public void setETGEXTKEY(String ETGEXTKEY) { public void setETGEXTKEY(String ETGEXTKEY) {
this.ETGEXTKEY = ETGEXTKEY; this.ETGEXTKEY = ETGEXTKEY;
......
package com.brilliance.remit.db.model;
public class Usr {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column USR.INR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
private String INR;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column USR.NAM
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
private String NAM;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column USR.PWD
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
private String PWD;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column USR.CHNNAM
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
private String CHNNAM;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column USR.USRLEV
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
private String USRLEV;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column USR.BCHINR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
private String BCHINR;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column USR.INR
*
* @return the value of USR.INR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public String getINR() {
return INR;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column USR.INR
*
* @param INR the value for USR.INR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public void setINR(String INR) {
this.INR = INR;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column USR.NAM
*
* @return the value of USR.NAM
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public String getNAM() {
return NAM;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column USR.NAM
*
* @param NAM the value for USR.NAM
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public void setNAM(String NAM) {
this.NAM = NAM;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column USR.PWD
*
* @return the value of USR.PWD
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public String getPWD() {
return PWD;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column USR.PWD
*
* @param PWD the value for USR.PWD
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public void setPWD(String PWD) {
this.PWD = PWD;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column USR.CHNNAM
*
* @return the value of USR.CHNNAM
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public String getCHNNAM() {
return CHNNAM;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column USR.CHNNAM
*
* @param CHNNAM the value for USR.CHNNAM
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public void setCHNNAM(String CHNNAM) {
this.CHNNAM = CHNNAM;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column USR.USRLEV
*
* @return the value of USR.USRLEV
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public String getUSRLEV() {
return USRLEV;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column USR.USRLEV
*
* @param USRLEV the value for USR.USRLEV
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public void setUSRLEV(String USRLEV) {
this.USRLEV = USRLEV;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column USR.BCHINR
*
* @return the value of USR.BCHINR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public String getBCHINR() {
return BCHINR;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column USR.BCHINR
*
* @param BCHINR the value for USR.BCHINR
*
* @mbggenerated Tue Dec 18 10:11:00 CST 2018
*/
public void setBCHINR(String BCHINR) {
this.BCHINR = BCHINR;
}
}
\ No newline at end of file
package com.brilliance.remit.service;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 10:15:14
**/
public interface BchService {
public void sample();
}
package com.brilliance.remit.service;
import com.brilliance.remit.db.model.Usr;
/**
* This java was generated by Auto Generator. created at time 2018-12-18
* 10:15:14
**/
public interface UsrService {
public Usr getUserByUserId(String userId);
}
package com.brilliance.remit.service.imp;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus;
import com.brilliance.remit.common.util.DbUtil;
import com.brilliance.remit.common.util.SpringContextUtil;
import com.brilliance.remit.service.CntService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.brilliance.remit.service.BchService;
import com.brilliance.remit.db.dao.BchMapper;
import com.brilliance.remit.service.CntService;
/**
This java was generated by Auto Generator.
created at time 2018-12-18 10:15:14
**/
@Service("bchService")
public class BchServiceImp implements BchService {
@Autowired
private BchMapper bchMapper;
@Resource(name = "txManager")
private DataSourceTransactionManager transactionManager;
private static Log log = LogFactory.getLog(BchServiceImp.class);
@Override
public void sample() {
CntService cntService = (CntService) SpringContextUtil.getApplicationContext().getBean(CntService.class);
// 事务操作
TransactionStatus status = transactionManager.getTransaction(DbUtil.getDbDefinition());
try {
// you can do business hanle herer
transactionManager.commit(status);
// get inr method
cntService.counter("XXX");
} catch (Exception e) {
log.error("error", e);
transactionManager.rollback(status);
}
}
}
package com.brilliance.remit.service.imp;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service;
import com.brilliance.remit.db.dao.UsrMapper;
import com.brilliance.remit.db.model.Usr;
import com.brilliance.remit.service.UsrService;
/**
* This java was generated by Auto Generator. created at time 2018-12-18
* 10:15:14
**/
@Service("usrService")
public class UsrServiceImp implements UsrService {
@Autowired
private UsrMapper usrMapper;
@Resource(name = "txManager")
private DataSourceTransactionManager transactionManager;
@Override
public Usr getUserByUserId(String userId) {
return usrMapper.selectByUserId(userId);
}
}
...@@ -24,4 +24,13 @@ CREATE TABLE OIT (INR CHARACTER(8), OBJTYP CHARACTER(6), OBJINR CHARACTER(8), SU ...@@ -24,4 +24,13 @@ CREATE TABLE OIT (INR CHARACTER(8), OBJTYP CHARACTER(6), OBJINR CHARACTER(8), SU
,primary key(INR)); ,primary key(INR));
CREATE TABLE USR (
INR CHAR(8) NOT NULL,
NAM VARCHAR2(40),
PWD VARCHAR2(40),
CHNNAM VARCHAR2(40),
USRLEV CHAR(2),
BCHINR CHAR(8),
PRIMARY KEY (INR)
);
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<priority value="ERROR" /> <priority value="ERROR" />
</category> </category>
<root> <root>
<level value="WARN" /> <level value="DEBUG" />
<appender-ref ref="CONSOLE" /> <appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" /> <appender-ref ref="FILE" />
</root> </root>
......
...@@ -18,12 +18,12 @@ ...@@ -18,12 +18,12 @@
<bean class="com.brilliance.remit.common.filter.Cors" /> <bean class="com.brilliance.remit.common.filter.Cors" />
</mvc:interceptor> </mvc:interceptor>
<!-- <mvc:interceptor> <mvc:interceptor>
<mvc:mapping path="/**" /> <mvc:mapping path="/**" />
<mvc:exclude-mapping path="/login" /> <mvc:exclude-mapping path="/login" />
<bean class="org.sss.presentation.noui.jwt.TokenInterceptor"></bean> <bean class="com.brilliance.remit.common.jwt.TokenInterceptor"></bean>
</mvc:interceptor> --> </mvc:interceptor>
</mvc:interceptors> </mvc:interceptors>
<!-- 配置自动扫描的包 --> <!-- 配置自动扫描的包 -->
......
...@@ -6,7 +6,9 @@ import java.io.FileOutputStream; ...@@ -6,7 +6,9 @@ import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.StringWriter; import java.io.StringWriter;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List;
import java.util.Properties; import java.util.Properties;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
...@@ -17,15 +19,20 @@ public class Genarate { ...@@ -17,15 +19,20 @@ public class Genarate {
public static void main(String[] args) throws FileNotFoundException, IOException { public static void main(String[] args) throws FileNotFoundException, IOException {
String rootPath = "G:/work/cbpp/remit"; String rootPath = "G:/work/cbpp/remit";
String name = "cpd"; List<String> list = new ArrayList<String>();
name = name.substring(0, 1).toUpperCase() + name.substring(1); list.add("usr");
String servicePath = rootPath + "/src/main/java/com/brilliance/remit/service/" + name + "Service.java"; list.add("bch");
String serivceImpPath = rootPath + "/src/main/java/com/brilliance/remit/service/imp/" + name + "ServiceImp.java"; for (int i = 0; i < list.size(); i++) {
String controllerPath = rootPath + "/src/main/java/com/brilliance/remit/controller/" + name + "Controller.java"; String name = list.get(i);
name = name.substring(0, 1).toUpperCase() + name.substring(1);
IOUtils.write(generateService("cpd", "service.vm").getBytes("utf-8"), new FileOutputStream(new File(servicePath))); String servicePath = rootPath + "/src/main/java/com/brilliance/remit/service/" + name + "Service.java";
IOUtils.write(generateService("cpd", "serviceImp.vm").getBytes("utf-8"), new FileOutputStream(new File(serivceImpPath))); String serivceImpPath = rootPath + "/src/main/java/com/brilliance/remit/service/imp/" + name + "ServiceImp.java";
IOUtils.write(generateService("cpd", "controller.vm").getBytes("utf-8"), new FileOutputStream(new File(controllerPath))); String controllerPath = rootPath + "/src/main/java/com/brilliance/remit/controller/" + name + "Controller.java";
IOUtils.write(generateService(list.get(i), "service.vm").getBytes("utf-8"), new FileOutputStream(new File(servicePath)));
IOUtils.write(generateService(list.get(i), "serviceImp.vm").getBytes("utf-8"), new FileOutputStream(new File(serivceImpPath)));
IOUtils.write(generateService(list.get(i), "controller.vm").getBytes("utf-8"), new FileOutputStream(new File(controllerPath)));
}
} }
public static String generateService(String tableName, String vmPath) { public static String generateService(String tableName, String vmPath) {
......
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