Skip to content

Commit

Permalink
派奖
Browse files Browse the repository at this point in the history
  • Loading branch information
BREWTAN committed Apr 15, 2016
1 parent 577a937 commit 591dff8
Show file tree
Hide file tree
Showing 701 changed files with 12,693 additions and 11,640 deletions.
9 changes: 8 additions & 1 deletion RGenerator/src/main/java/Mybatis3StaticTableDao.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,14 @@ public class ${domainClazz}Dao extends ExtendDaoSupper<${domainClazz}, ${domainC

if(record.${columns[2]}()==null){
<#if columns[1]?exists >
sb.append("'"+"${columns[1]}"+"'");
// sb.append("'"+"${columns[1]}"+"'");
<#if columns[4] == "Date" >
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
sb.append("'"+sdf.format(new java.util.Date())+"'");
<#else>
sb.append("'"+"${columns[1]}"+"'");
</#if>

<#else>
sb.append("null");
</#if>
Expand Down
9 changes: 8 additions & 1 deletion RGenerator/target/classes/Mybatis3StaticTableDao.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,14 @@ public class ${domainClazz}Dao extends ExtendDaoSupper<${domainClazz}, ${domainC

if(record.${columns[2]}()==null){
<#if columns[1]?exists >
sb.append("'"+"${columns[1]}"+"'");
// sb.append("'"+"${columns[1]}"+"'");
<#if columns[4] == "Date" >
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
sb.append("'"+sdf.format(new java.util.Date())+"'");
<#else>
sb.append("'"+"${columns[1]}"+"'");
</#if>

<#else>
sb.append("null");
</#if>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ public int batchInsert(List<TSysOpLogs> records) throws Exception {
sb.append(",");

if(record.getLevel()==null){
sb.append("'"+"INFO"+"'");
// sb.append("'"+"INFO"+"'");
sb.append("'"+"INFO"+"'");

}else{
// java type==String
sb.append("'"+record.getLevel()+"'");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,39 @@ public class TSysAction extends TSysActionKey {
* This field was generated by MyBatis Generator.
* This field corresponds to the database column T_SYS_ACTION.ACTION_FLAG
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
private String actionFlag;

/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column T_SYS_ACTION.ACTION_NAME
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
private String actionName;

/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column T_SYS_ACTION.ACTION_DESC
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
private String actionDesc;

/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column T_SYS_ACTION.ACTION_MENU
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
private Long actionMenu;

/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column T_SYS_ACTION.FIELD1
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
private String field1;

Expand All @@ -55,7 +55,7 @@ public class TSysAction extends TSysActionKey {
*
* @return the value of T_SYS_ACTION.ACTION_FLAG
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public String getActionFlag() {
return actionFlag;
Expand All @@ -67,7 +67,7 @@ public String getActionFlag() {
*
* @param actionFlag the value for T_SYS_ACTION.ACTION_FLAG
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public void setActionFlag(String actionFlag) {
this.actionFlag = actionFlag;
Expand All @@ -79,7 +79,7 @@ public void setActionFlag(String actionFlag) {
*
* @return the value of T_SYS_ACTION.ACTION_NAME
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public String getActionName() {
return actionName;
Expand All @@ -91,7 +91,7 @@ public String getActionName() {
*
* @param actionName the value for T_SYS_ACTION.ACTION_NAME
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public void setActionName(String actionName) {
this.actionName = actionName;
Expand All @@ -103,7 +103,7 @@ public void setActionName(String actionName) {
*
* @return the value of T_SYS_ACTION.ACTION_DESC
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public String getActionDesc() {
return actionDesc;
Expand All @@ -115,7 +115,7 @@ public String getActionDesc() {
*
* @param actionDesc the value for T_SYS_ACTION.ACTION_DESC
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public void setActionDesc(String actionDesc) {
this.actionDesc = actionDesc;
Expand All @@ -127,7 +127,7 @@ public void setActionDesc(String actionDesc) {
*
* @return the value of T_SYS_ACTION.ACTION_MENU
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public Long getActionMenu() {
return actionMenu;
Expand All @@ -139,7 +139,7 @@ public Long getActionMenu() {
*
* @param actionMenu the value for T_SYS_ACTION.ACTION_MENU
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public void setActionMenu(Long actionMenu) {
this.actionMenu = actionMenu;
Expand All @@ -151,7 +151,7 @@ public void setActionMenu(Long actionMenu) {
*
* @return the value of T_SYS_ACTION.FIELD1
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public String getField1() {
return field1;
Expand All @@ -163,7 +163,7 @@ public String getField1() {
*
* @param field1 the value for T_SYS_ACTION.FIELD1
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public void setField1(String field1) {
this.field1 = field1;
Expand All @@ -173,7 +173,7 @@ public void setField1(String field1) {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
@Override
public boolean equals(Object that) {
Expand All @@ -199,7 +199,7 @@ public boolean equals(Object that) {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
@Override
public int hashCode() {
Expand All @@ -218,7 +218,7 @@ public int hashCode() {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
@Override
public String toString() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ public class TSysActionExample {
* This field was generated by MyBatis Generator.
* This field corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
protected String orderByClause;

/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
protected boolean distinct;

/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
protected List<Criteria> oredCriteria;

Expand All @@ -49,7 +49,7 @@ public class TSysActionExample {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public TSysActionExample() {
oredCriteria = new ArrayList<Criteria>();
Expand All @@ -61,7 +61,7 @@ public TSysActionExample() {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
Expand All @@ -71,7 +71,7 @@ public void setOrderByClause(String orderByClause) {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public String getOrderByClause() {
return orderByClause;
Expand All @@ -81,7 +81,7 @@ public String getOrderByClause() {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
Expand All @@ -91,7 +91,7 @@ public void setDistinct(boolean distinct) {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public boolean isDistinct() {
return distinct;
Expand All @@ -101,7 +101,7 @@ public boolean isDistinct() {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
Expand All @@ -111,7 +111,7 @@ public List<Criteria> getOredCriteria() {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
Expand All @@ -121,7 +121,7 @@ public void or(Criteria criteria) {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
Expand All @@ -133,7 +133,7 @@ public Criteria or() {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
Expand All @@ -147,7 +147,7 @@ public Criteria createCriteria() {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
Expand All @@ -158,7 +158,7 @@ protected Criteria createCriteriaInternal() {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
public void clear() {
oredCriteria.clear();
Expand Down Expand Up @@ -224,7 +224,7 @@ public String getGroupByClause() {
* This class was generated by MyBatis Generator.
* This class corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
@Data
public abstract static class GeneratedCriteria {
Expand Down Expand Up @@ -693,7 +693,7 @@ public Criteria andField1LikeInsensitive(String value) {
* This class was generated by MyBatis Generator.
* This class corresponds to the database table T_SYS_ACTION
*
* @mbggenerated do_not_delete_during_merge Fri Apr 15 21:03:13 CST 2016
* @mbggenerated do_not_delete_during_merge Sat Apr 16 00:18:59 CST 2016
*/
public static class Criteria extends GeneratedCriteria {

Expand All @@ -706,7 +706,7 @@ public Criteria() {
* This class was generated by MyBatis Generator.
* This class corresponds to the database table T_SYS_ACTION
*
* @mbggenerated Fri Apr 15 21:03:13 CST 2016
* @mbggenerated Sat Apr 16 00:18:59 CST 2016
*/
@Data
@NoArgsConstructor
Expand Down
Loading

0 comments on commit 591dff8

Please sign in to comment.