Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
708d8bd0
Commit
708d8bd0
authored
Jul 02, 2018
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
7174042e
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1035 additions
and
19 deletions
+1035
-19
WebMvcConfig.java
atms-api/src/main/java/pwc/taxtech/atms/WebMvcConfig.java
+16
-0
InputDeviceMapper.java
...src/main/java/pwc/taxtech/atms/dao/InputDeviceMapper.java
+111
-0
InputDevice.java
...i/src/main/java/pwc/taxtech/atms/entitiy/InputDevice.java
+133
-0
InputDeviceExample.java
...ain/java/pwc/taxtech/atms/entitiy/InputDeviceExample.java
+493
-0
InputDeviceMapper.xml
...main/resources/pwc/taxtech/atms/dao/InputDeviceMapper.xml
+260
-0
generatorConfig.xml
atms-api/src/test/resources/generatorConfig.xml
+22
-19
No files found.
atms-api/src/main/java/pwc/taxtech/atms/WebMvcConfig.java
View file @
708d8bd0
...
...
@@ -8,8 +8,11 @@ import org.springframework.beans.factory.InitializingBean;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.support.ResourceBundleMessageSource
;
import
org.springframework.http.client.ClientHttpRequestFactory
;
import
org.springframework.http.client.SimpleClientHttpRequestFactory
;
import
org.springframework.http.converter.json.Jackson2ObjectMapperBuilder
;
import
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.multipart.commons.CommonsMultipartResolver
;
import
com.fasterxml.jackson.databind.MapperFeature
;
...
...
@@ -80,4 +83,17 @@ public class WebMvcConfig implements InitializingBean {
return
new
CommonsMultipartResolver
();
}
@Bean
public
RestTemplate
restTemplate
(
ClientHttpRequestFactory
factory
)
{
return
new
RestTemplate
(
factory
);
}
@Bean
public
ClientHttpRequestFactory
simpleClientHttpRequestFactory
()
{
SimpleClientHttpRequestFactory
factory
=
new
SimpleClientHttpRequestFactory
();
factory
.
setReadTimeout
(
5000
);
//单位为ms
factory
.
setConnectTimeout
(
5000
);
//单位为ms
return
factory
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/dao/InputDeviceMapper.java
0 → 100644
View file @
708d8bd0
package
pwc
.
taxtech
.
atms
.
dao
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.session.RowBounds
;
import
org.springframework.stereotype.Repository
;
import
pwc.taxtech.atms.MyMapper
;
import
pwc.taxtech.atms.entitiy.InputDevice
;
import
pwc.taxtech.atms.entitiy.InputDeviceExample
;
@Mapper
@Repository
public
interface
InputDeviceMapper
extends
MyMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
long
countByExample
(
InputDeviceExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
int
deleteByExample
(
InputDeviceExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
int
insert
(
InputDevice
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
int
insertSelective
(
InputDevice
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
List
<
InputDevice
>
selectByExampleWithRowbounds
(
InputDeviceExample
example
,
RowBounds
rowBounds
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
List
<
InputDevice
>
selectByExample
(
InputDeviceExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
InputDevice
selectByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
InputDevice
record
,
@Param
(
"example"
)
InputDeviceExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
InputDevice
record
,
@Param
(
"example"
)
InputDeviceExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
InputDevice
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
InputDevice
record
);
}
\ No newline at end of file
atms-api/src/main/java/pwc/taxtech/atms/entitiy/InputDevice.java
0 → 100644
View file @
708d8bd0
package
pwc
.
taxtech
.
atms
.
entitiy
;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table input_device
*
* @mbg.generated do_not_delete_during_merge
*/
public
class
InputDevice
extends
BaseEntity
{
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_device.id
*
* @mbg.generated
*/
private
Integer
id
;
/**
* Database Column Remarks:
* 设备类型 0:未知 1:扫描仪
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_device.type
*
* @mbg.generated
*/
private
Short
type
;
/**
* Database Column Remarks:
* 请求地址
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column input_device.url
*
* @mbg.generated
*/
private
String
url
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_device.id
*
* @return the value of input_device.id
*
* @mbg.generated
*/
public
Integer
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_device.id
*
* @param id the value for input_device.id
*
* @mbg.generated
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_device.type
*
* @return the value of input_device.type
*
* @mbg.generated
*/
public
Short
getType
()
{
return
type
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_device.type
*
* @param type the value for input_device.type
*
* @mbg.generated
*/
public
void
setType
(
Short
type
)
{
this
.
type
=
type
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column input_device.url
*
* @return the value of input_device.url
*
* @mbg.generated
*/
public
String
getUrl
()
{
return
url
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column input_device.url
*
* @param url the value for input_device.url
*
* @mbg.generated
*/
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
==
null
?
null
:
url
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", type="
).
append
(
type
);
sb
.
append
(
", url="
).
append
(
url
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
atms-api/src/main/java/pwc/taxtech/atms/entitiy/InputDeviceExample.java
0 → 100644
View file @
708d8bd0
package
pwc
.
taxtech
.
atms
.
entitiy
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
InputDeviceExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table input_device
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table input_device
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table input_device
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
public
InputDeviceExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
();
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table input_device
*
* @mbg.generated
*/
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table input_device
*
* @mbg.generated
*/
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Integer
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Integer
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIsNull
()
{
addCriterion
(
"`type` is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIsNotNull
()
{
addCriterion
(
"`type` is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeEqualTo
(
Short
value
)
{
addCriterion
(
"`type` ="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotEqualTo
(
Short
value
)
{
addCriterion
(
"`type` <>"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThan
(
Short
value
)
{
addCriterion
(
"`type` >"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThanOrEqualTo
(
Short
value
)
{
addCriterion
(
"`type` >="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThan
(
Short
value
)
{
addCriterion
(
"`type` <"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThanOrEqualTo
(
Short
value
)
{
addCriterion
(
"`type` <="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIn
(
List
<
Short
>
values
)
{
addCriterion
(
"`type` in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotIn
(
List
<
Short
>
values
)
{
addCriterion
(
"`type` not in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeBetween
(
Short
value1
,
Short
value2
)
{
addCriterion
(
"`type` between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotBetween
(
Short
value1
,
Short
value2
)
{
addCriterion
(
"`type` not between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlIsNull
()
{
addCriterion
(
"url is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlIsNotNull
()
{
addCriterion
(
"url is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlEqualTo
(
String
value
)
{
addCriterion
(
"url ="
,
value
,
"url"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlNotEqualTo
(
String
value
)
{
addCriterion
(
"url <>"
,
value
,
"url"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlGreaterThan
(
String
value
)
{
addCriterion
(
"url >"
,
value
,
"url"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"url >="
,
value
,
"url"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlLessThan
(
String
value
)
{
addCriterion
(
"url <"
,
value
,
"url"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"url <="
,
value
,
"url"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlLike
(
String
value
)
{
addCriterion
(
"url like"
,
value
,
"url"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlNotLike
(
String
value
)
{
addCriterion
(
"url not like"
,
value
,
"url"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlIn
(
List
<
String
>
values
)
{
addCriterion
(
"url in"
,
values
,
"url"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"url not in"
,
values
,
"url"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"url between"
,
value1
,
value2
,
"url"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUrlNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"url not between"
,
value1
,
value2
,
"url"
);
return
(
Criteria
)
this
;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table input_device
*
* @mbg.generated do_not_delete_during_merge
*/
public
static
class
Criteria
extends
GeneratedCriteria
{
protected
Criteria
()
{
super
();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table input_device
*
* @mbg.generated
*/
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
atms-api/src/main/resources/pwc/taxtech/atms/dao/InputDeviceMapper.xml
0 → 100644
View file @
708d8bd0
<?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=
"pwc.taxtech.atms.dao.InputDeviceMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.entitiy.InputDevice"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"type"
jdbcType=
"SMALLINT"
property=
"type"
/>
<result
column=
"url"
jdbcType=
"VARCHAR"
property=
"url"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, `type`, url
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.entitiy.InputDeviceExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from input_device
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from input_device
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from input_device
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.entitiy.InputDeviceExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from input_device
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.entitiy.InputDevice"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into input_device (id, `type`, url
)
values (#{id,jdbcType=INTEGER}, #{type,jdbcType=SMALLINT}, #{url,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.entitiy.InputDevice"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into input_device
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"type != null"
>
`type`,
</if>
<if
test=
"url != null"
>
url,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
<if
test=
"type != null"
>
#{type,jdbcType=SMALLINT},
</if>
<if
test=
"url != null"
>
#{url,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.entitiy.InputDeviceExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from input_device
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update input_device
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.type != null"
>
`type` = #{record.type,jdbcType=SMALLINT},
</if>
<if
test=
"record.url != null"
>
url = #{record.url,jdbcType=VARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update input_device
set id = #{record.id,jdbcType=INTEGER},
`type` = #{record.type,jdbcType=SMALLINT},
url = #{record.url,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.entitiy.InputDevice"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update input_device
<set>
<if
test=
"type != null"
>
`type` = #{type,jdbcType=SMALLINT},
</if>
<if
test=
"url != null"
>
url = #{url,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.entitiy.InputDevice"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update input_device
set `type` = #{type,jdbcType=SMALLINT},
url = #{url,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.entitiy.InputDeviceExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from input_device
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
atms-api/src/test/resources/generatorConfig.xml
View file @
708d8bd0
...
...
@@ -104,28 +104,31 @@
<!--<columnOverride column="source_type" javaType="java.lang.Integer"/>-->
<!--</table>-->
<
table
tableName=
"input_material_item"
domainObjectName=
"InputMaterialItem"
>
<
property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/
>
<
/table
>
<
!--<table tableName="input_material_item" domainObjectName="InputMaterialItem">--
>
<
!--<property name="ignoreQualifiersAtRuntime" value="true"/>--
>
<
!--</table>--
>
<
table
tableName=
"input_material_item_category"
domainObjectName=
"InputMaterialItemCategory"
>
<
property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/
>
<
/table
>
<
!--<table tableName="input_material_item_category" domainObjectName="InputMaterialItemCategory">--
>
<
!--<property name="ignoreQualifiersAtRuntime" value="true"/>--
>
<
!--</table>--
>
<
table
tableName=
"input_vendor"
domainObjectName=
"InputVendor"
>
<
property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/
>
<
/table
>
<
!--<table tableName="input_vendor" domainObjectName="InputVendor">--
>
<
!--<property name="ignoreQualifiersAtRuntime" value="true"/>--
>
<
!--</table>--
>
<table
tableName=
"input_vendor_address"
domainObjectName=
"InputVendorAddress"
>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
</table>
<table
tableName=
"input_vendor_bank_account"
domainObjectName=
"InputVendorBankAccount"
>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
</table>
<table
tableName=
"input_vendor_contactor"
domainObjectName=
"InputVendorContactor"
>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
</table>
<table
tableName=
"input_vendor_site"
domainObjectName=
"InputVendorSite"
>
<!--<table tableName="input_vendor_address" domainObjectName="InputVendorAddress">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="input_vendor_bank_account" domainObjectName="InputVendorBankAccount">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="input_vendor_contactor" domainObjectName="InputVendorContactor">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="input_vendor_site" domainObjectName="InputVendorSite">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<table
tableName=
"input_device"
domainObjectName=
"InputDevice"
>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
</table>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment