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
f9d7fce0
Commit
f9d7fce0
authored
Apr 30, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_mysql' of
http://code.tech.tax.asia.pwcinternal.com/root/atms
into dev_wzk
parents
18602f5c
b8a9447a
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
175 additions
and
4470 deletions
+175
-4470
SystemConfig.java
...ain/java/pwc/taxtech/atms/common/config/SystemConfig.java
+13
-0
ShareJob.java
.../main/java/pwc/taxtech/atms/common/schedule/ShareJob.java
+0
-24
CommonUtil.java
...rc/main/java/pwc/taxtech/atms/common/util/CommonUtil.java
+46
-0
EncryptUtil.java
...c/main/java/pwc/taxtech/atms/common/util/EncryptUtil.java
+0
-303
JavaEmailUtil.java
...main/java/pwc/taxtech/atms/common/util/JavaEmailUtil.java
+0
-312
SpringContextUtil.java
.../java/pwc/taxtech/atms/common/util/SpringContextUtil.java
+1
-3
ProjectStatusManageController.java
...axtech/atms/controller/ProjectStatusManageController.java
+1
-2
JwtAuthenticationFilter.java
...va/pwc/taxtech/atms/security/JwtAuthenticationFilter.java
+4
-0
DistributedIdService.java
...a/pwc/taxtech/atms/service/impl/DistributedIdService.java
+25
-2
TaxEamilServiceImpl.java
...va/pwc/taxtech/atms/service/impl/TaxEamilServiceImpl.java
+0
-70
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+37
-1
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+2
-2
applicationContext-job.xml
atms-api/src/main/resources/applicationContext-job.xml
+0
-19
conf.properties
atms-api/src/main/resources/conf/conf.properties
+1
-7
conf_profile_dev.properties
atms-api/src/main/resources/conf/conf_profile_dev.properties
+1
-8
conf_profile_pub.properties
atms-api/src/main/resources/conf/conf_profile_pub.properties
+1
-7
conf_profile_staging.properties
...i/src/main/resources/conf/conf_profile_staging.properties
+1
-6
conf_profile_uat.properties
atms-api/src/main/resources/conf/conf_profile_uat.properties
+3
-10
ShareTest.java
...rc/test/java/pwc/taxtech/atms/service/impl/ShareTest.java
+0
-33
generatorConfig.xml
atms-dao/etc/generator-mysql/generatorConfig.xml
+16
-3
PwcTaxLogMapper.java
...o/src/main/java/pwc/taxtech/atms/dao/PwcTaxLogMapper.java
+0
-141
TaxEmailMapper.java
...ao/src/main/java/pwc/taxtech/atms/dao/TaxEmailMapper.java
+0
-141
AnalysisSalesValueDto.java
...main/java/pwc/taxtech/atms/dpo/AnalysisSalesValueDto.java
+20
-0
PwcTaxLog.java
...-dao/src/main/java/pwc/taxtech/atms/entity/PwcTaxLog.java
+0
-250
PwcTaxLogExample.java
...c/main/java/pwc/taxtech/atms/entity/PwcTaxLogExample.java
+0
-624
TaxEmail.java
atms-dao/src/main/java/pwc/taxtech/atms/entity/TaxEmail.java
+0
-498
TaxEmailExample.java
...rc/main/java/pwc/taxtech/atms/entity/TaxEmailExample.java
+0
-1094
PwcTaxLogMapper.xml
...c/main/resources/pwc/taxtech/atms/dao/PwcTaxLogMapper.xml
+0
-389
TaxEmailMapper.xml
...rc/main/resources/pwc/taxtech/atms/dao/TaxEmailMapper.xml
+0
-513
PeriodCellDataExtendsMapper.xml
...tech/atms/vat/dao/extends/PeriodCellDataExtendsMapper.xml
+3
-8
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/config/SystemConfig.java
View file @
f9d7fce0
...
@@ -3,6 +3,8 @@ package pwc.taxtech.atms.common.config;
...
@@ -3,6 +3,8 @@ package pwc.taxtech.atms.common.config;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
java.util.Map
;
@Configuration
@Configuration
public
class
SystemConfig
{
public
class
SystemConfig
{
@Value
(
"${longi_api_basic_user}"
)
@Value
(
"${longi_api_basic_user}"
)
...
@@ -40,6 +42,9 @@ public class SystemConfig {
...
@@ -40,6 +42,9 @@ public class SystemConfig {
@Value
(
"${tableau_dashboard}"
)
@Value
(
"${tableau_dashboard}"
)
private
String
tableauDashboard
;
private
String
tableauDashboard
;
@Value
(
"#{${id.generator.mapping}}"
)
private
Map
<
String
,
String
>
idGeneratorMap
;
public
String
getLongiApiBasicUser
()
{
public
String
getLongiApiBasicUser
()
{
return
this
.
longiApiBasicUser
;
return
this
.
longiApiBasicUser
;
}
}
...
@@ -167,4 +172,12 @@ public class SystemConfig {
...
@@ -167,4 +172,12 @@ public class SystemConfig {
public
void
setTableauDashboard
(
String
tableauDashboard
)
{
public
void
setTableauDashboard
(
String
tableauDashboard
)
{
this
.
tableauDashboard
=
tableauDashboard
;
this
.
tableauDashboard
=
tableauDashboard
;
}
}
public
Map
<
String
,
String
>
getIdGeneratorMap
()
{
return
this
.
idGeneratorMap
;
}
public
void
setIdGeneratorMap
(
Map
<
String
,
String
>
idGeneratorMap
)
{
this
.
idGeneratorMap
=
idGeneratorMap
;
}
}
}
atms-api/src/main/java/pwc/taxtech/atms/common/schedule/ShareJob.java
deleted
100644 → 0
View file @
18602f5c
package
pwc
.
taxtech
.
atms
.
common
.
schedule
;
import
org.quartz.JobExecutionContext
;
import
org.quartz.JobExecutionException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.quartz.QuartzJobBean
;
import
pwc.taxtech.atms.service.impl.TaxEamilServiceImpl
;
/**
* @version 1.0
* @program: atms
* @description: 分享模块定时任务
* @author: Kevin
* @create: 2019-04-26 12:16
**/
public
class
ShareJob
extends
QuartzJobBean
{
@Autowired
private
TaxEamilServiceImpl
taxEamilService
;
@Override
protected
void
executeInternal
(
JobExecutionContext
context
)
throws
JobExecutionException
{
taxEamilService
.
jobEmail
();
}
}
atms-api/src/main/java/pwc/taxtech/atms/common/util/CommonUtil.java
View file @
f9d7fce0
package
pwc
.
taxtech
.
atms
.
common
.
util
;
package
pwc
.
taxtech
.
atms
.
common
.
util
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.net.InetAddress
;
import
java.net.NetworkInterface
;
import
java.net.UnknownHostException
;
import
java.util.Enumeration
;
import
java.util.regex.Matcher
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
...
@@ -39,4 +43,46 @@ public class CommonUtil {
...
@@ -39,4 +43,46 @@ public class CommonUtil {
public
static
BigDecimal
BigDecimal2Fix
(
BigDecimal
bigDecimal
){
public
static
BigDecimal
BigDecimal2Fix
(
BigDecimal
bigDecimal
){
return
bigDecimal
.
setScale
(
2
,
BigDecimal
.
ROUND_DOWN
);
return
bigDecimal
.
setScale
(
2
,
BigDecimal
.
ROUND_DOWN
);
}
}
/**
* 获取本机IP
* @return IP
* @throws UnknownHostException ex
*/
public
static
InetAddress
getLocalHostLANAddress
()
throws
UnknownHostException
{
try
{
InetAddress
candidateAddress
=
null
;
// 遍历所有的网络接口
for
(
Enumeration
ifaces
=
NetworkInterface
.
getNetworkInterfaces
();
ifaces
.
hasMoreElements
();
)
{
NetworkInterface
iface
=
(
NetworkInterface
)
ifaces
.
nextElement
();
// 在所有的接口下再遍历IP
for
(
Enumeration
inetAddrs
=
iface
.
getInetAddresses
();
inetAddrs
.
hasMoreElements
();
)
{
InetAddress
inetAddr
=
(
InetAddress
)
inetAddrs
.
nextElement
();
if
(!
inetAddr
.
isLoopbackAddress
())
{
// 排除loopback类型地址
if
(
inetAddr
.
isSiteLocalAddress
())
{
// 如果是site-local地址
return
inetAddr
;
}
else
if
(
candidateAddress
==
null
)
{
// site-local类型的地址未被发现,先记录候选地址
candidateAddress
=
inetAddr
;
}
}
}
}
if
(
candidateAddress
!=
null
)
{
return
candidateAddress
;
}
// 如果没有发现 non-loopback地址.只能用最次选的方案
InetAddress
jdkSuppliedAddress
=
InetAddress
.
getLocalHost
();
if
(
jdkSuppliedAddress
==
null
)
{
throw
new
UnknownHostException
(
"The JDK InetAddress.getLocalHost() method unexpectedly returned null."
);
}
return
jdkSuppliedAddress
;
}
catch
(
Exception
e
)
{
UnknownHostException
unknownHostException
=
new
UnknownHostException
(
"Failed to determine LAN address: "
+
e
);
unknownHostException
.
initCause
(
e
);
throw
unknownHostException
;
}
}
}
}
atms-api/src/main/java/pwc/taxtech/atms/common/util/EncryptUtil.java
deleted
100644 → 0
View file @
18602f5c
package
pwc
.
taxtech
.
atms
.
common
.
util
;
import
com.sun.org.apache.xerces.internal.impl.dv.util.Base64
;
import
javax.crypto.Cipher
;
import
javax.crypto.KeyGenerator
;
import
javax.crypto.Mac
;
import
javax.crypto.SecretKey
;
import
javax.crypto.spec.SecretKeySpec
;
import
java.security.MessageDigest
;
import
java.security.SecureRandom
;
public
class
EncryptUtil
{
public
static
final
String
MD5
=
"MD5"
;
public
static
final
String
SHA1
=
"SHA1"
;
public
static
final
String
HmacMD5
=
"HmacMD5"
;
public
static
final
String
HmacSHA1
=
"HmacSHA1"
;
public
static
final
String
DES
=
"DES"
;
public
static
final
String
AES
=
"AES"
;
/**编码格式;默认使用uft-8*/
public
static
String
charset
=
"utf-8"
;
/**DES*/
public
static
int
keysizeDES
=
0
;
/**AES*/
public
static
int
keysizeAES
=
128
;
public
static
EncryptUtil
me
;
private
EncryptUtil
(){
//单例
}
//双重锁
public
static
EncryptUtil
getInstance
(){
if
(
me
==
null
)
{
synchronized
(
EncryptUtil
.
class
)
{
if
(
me
==
null
){
me
=
new
EncryptUtil
();
}
}
}
return
me
;
}
/**
* 使用MessageDigest进行单向加密(无密码)
* @param res 被加密的文本
* @param algorithm 加密算法名称
* @return
*/
private
static
String
messageDigest
(
String
res
,
String
algorithm
){
try
{
MessageDigest
md
=
MessageDigest
.
getInstance
(
algorithm
);
byte
[]
resBytes
=
charset
==
null
?
res
.
getBytes
():
res
.
getBytes
(
charset
);
return
base64
(
md
.
digest
(
resBytes
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
/**
* 使用KeyGenerator进行单向/双向加密(可设密码)
* @param res 被加密的原文
* @param algorithm 加密使用的算法名称
* @param key 加密使用的秘钥
* @return
*/
private
static
String
keyGeneratorMac
(
String
res
,
String
algorithm
,
String
key
){
try
{
SecretKey
sk
=
null
;
if
(
key
==
null
)
{
KeyGenerator
kg
=
KeyGenerator
.
getInstance
(
algorithm
);
sk
=
kg
.
generateKey
();
}
else
{
byte
[]
keyBytes
=
charset
==
null
?
key
.
getBytes
():
key
.
getBytes
(
charset
);
sk
=
new
SecretKeySpec
(
keyBytes
,
algorithm
);
}
Mac
mac
=
Mac
.
getInstance
(
algorithm
);
mac
.
init
(
sk
);
byte
[]
result
=
mac
.
doFinal
(
res
.
getBytes
());
return
base64
(
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
/**
* 使用KeyGenerator双向加密,DES/AES,注意这里转化为字符串的时候是将2进制转为16进制格式的字符串,不是直接转,因为会出错
* @param res 加密的原文
* @param algorithm 加密使用的算法名称
* @param key 加密的秘钥
* @param keysize
* @param isEncode
* @return
*/
private
static
String
keyGeneratorES
(
String
res
,
String
algorithm
,
String
key
,
int
keysize
,
boolean
isEncode
){
try
{
KeyGenerator
kg
=
KeyGenerator
.
getInstance
(
algorithm
);
if
(
keysize
==
0
)
{
byte
[]
keyBytes
=
charset
==
null
?
key
.
getBytes
():
key
.
getBytes
(
charset
);
kg
.
init
(
new
SecureRandom
(
keyBytes
));
}
else
if
(
key
==
null
)
{
kg
.
init
(
keysize
);
}
else
{
byte
[]
keyBytes
=
charset
==
null
?
key
.
getBytes
():
key
.
getBytes
(
charset
);
kg
.
init
(
keysize
,
new
SecureRandom
(
keyBytes
));
}
SecretKey
sk
=
kg
.
generateKey
();
SecretKeySpec
sks
=
new
SecretKeySpec
(
sk
.
getEncoded
(),
algorithm
);
Cipher
cipher
=
Cipher
.
getInstance
(
algorithm
);
if
(
isEncode
)
{
cipher
.
init
(
Cipher
.
ENCRYPT_MODE
,
sks
);
byte
[]
resBytes
=
charset
==
null
?
res
.
getBytes
():
res
.
getBytes
(
charset
);
return
parseByte2HexStr
(
cipher
.
doFinal
(
resBytes
));
}
else
{
cipher
.
init
(
Cipher
.
DECRYPT_MODE
,
sks
);
return
new
String
(
cipher
.
doFinal
(
parseHexStr2Byte
(
res
)));
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
private
static
String
base64
(
byte
[]
res
){
return
Base64
.
encode
(
res
);
}
/**将二进制转换成16进制 */
public
static
String
parseByte2HexStr
(
byte
buf
[])
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
buf
.
length
;
i
++)
{
String
hex
=
Integer
.
toHexString
(
buf
[
i
]
&
0xFF
);
if
(
hex
.
length
()
==
1
)
{
hex
=
'0'
+
hex
;
}
sb
.
append
(
hex
.
toUpperCase
());
}
return
sb
.
toString
();
}
/**将16进制转换为二进制*/
public
static
byte
[]
parseHexStr2Byte
(
String
hexStr
)
{
if
(
hexStr
.
length
()
<
1
)
return
null
;
byte
[]
result
=
new
byte
[
hexStr
.
length
()/
2
];
for
(
int
i
=
0
;
i
<
hexStr
.
length
()/
2
;
i
++)
{
int
high
=
Integer
.
parseInt
(
hexStr
.
substring
(
i
*
2
,
i
*
2
+
1
),
16
);
int
low
=
Integer
.
parseInt
(
hexStr
.
substring
(
i
*
2
+
1
,
i
*
2
+
2
),
16
);
result
[
i
]
=
(
byte
)
(
high
*
16
+
low
);
}
return
result
;
}
/**
* md5加密算法进行加密(不可逆)
* @param res 需要加密的原文
* @return
*/
public
static
String
MD5
(
String
res
)
{
return
messageDigest
(
res
,
MD5
);
}
/**
* md5加密算法进行加密(不可逆)
* @param res 需要加密的原文
* @param key 秘钥
* @return
*/
public
static
String
MD5
(
String
res
,
String
key
)
{
return
keyGeneratorMac
(
res
,
HmacMD5
,
key
);
}
/**
* 使用SHA1加密算法进行加密(不可逆)
* @param res 需要加密的原文
* @return
*/
public
static
String
SHA1
(
String
res
)
{
return
messageDigest
(
res
,
SHA1
);
}
/**
* 使用SHA1加密算法进行加密(不可逆)
* @param res 需要加密的原文
* @param key 秘钥
* @return
*/
public
static
String
SHA1
(
String
res
,
String
key
)
{
return
keyGeneratorMac
(
res
,
HmacSHA1
,
key
);
}
/**
* 使用DES加密算法进行加密(可逆)
* @param res 需要加密的原文
* @param key 秘钥
* @return
*/
public
String
DESencode
(
String
res
,
String
key
)
{
return
keyGeneratorES
(
res
,
DES
,
key
,
keysizeDES
,
true
);
}
/**
* 对使用DES加密算法的密文进行解密(可逆)
* @param res 需要解密的密文
* @param key 秘钥
* @return
*/
public
static
String
DESdecode
(
String
res
,
String
key
)
{
return
keyGeneratorES
(
res
,
DES
,
key
,
keysizeDES
,
false
);
}
/**
* 生成密钥
* 自动生成base64 编码后的AES128位密钥
*
* @throws //NoSuchAlgorithmException
* @throws //UnsupportedEncodingException
*/
public
static
String
getAESKey
()
throws
Exception
{
KeyGenerator
kg
=
KeyGenerator
.
getInstance
(
"AES"
);
kg
.
init
(
128
);
//要生成多少位,只需要修改这里即可128, 192或256
SecretKey
sk
=
kg
.
generateKey
();
byte
[]
b
=
sk
.
getEncoded
();
return
parseByte2HexStr
(
b
);
}
/**
* 使用AES加密算法经行加密(可逆)
* @param res 需要加密的密文
* @param key 秘钥
* @return
*/
public
static
String
AESencode
(
String
res
,
String
key
)
{
return
keyGeneratorES
(
res
,
AES
,
key
,
keysizeAES
,
true
);
}
/**
* 对使用AES加密算法的密文进行解密
* @param res 需要解密的密文
* @param key 秘钥
* @return
*/
public
static
String
AESdecode
(
String
res
,
String
key
)
{
return
keyGeneratorES
(
res
,
AES
,
key
,
keysizeAES
,
false
);
}
/**
* 使用异或进行加密
* @param res 需要加密的密文
* @param key 秘钥
* @return
*/
public
static
String
XORencode
(
String
res
,
String
key
)
{
byte
[]
bs
=
res
.
getBytes
();
for
(
int
i
=
0
;
i
<
bs
.
length
;
i
++)
{
bs
[
i
]
=
(
byte
)
((
bs
[
i
])
^
key
.
hashCode
());
}
return
parseByte2HexStr
(
bs
);
}
/**
* 使用异或进行解密
* @param res 需要解密的密文
* @param key 秘钥
* @return
*/
public
static
String
XORdecode
(
String
res
,
String
key
)
{
byte
[]
bs
=
parseHexStr2Byte
(
res
);
for
(
int
i
=
0
;
i
<
bs
.
length
;
i
++)
{
bs
[
i
]
=
(
byte
)
((
bs
[
i
])
^
key
.
hashCode
());
}
return
new
String
(
bs
);
}
/**
* 直接使用异或(第一调用加密,第二次调用解密)
* @param res 密文
* @param key 秘钥
* @return
*/
public
static
int
XOR
(
int
res
,
String
key
)
{
return
res
^
key
.
hashCode
();
}
/**
* 使用Base64进行加密
* @param res 密文
* @return
*/
public
static
String
Base64Encode
(
String
res
)
{
return
Base64
.
encode
(
res
.
getBytes
());
}
/**
* 使用Base64进行解密
* @param res
* @return
*/
public
static
String
Base64Decode
(
String
res
)
{
return
new
String
(
Base64
.
decode
(
res
));
}
}
\ No newline at end of file
atms-api/src/main/java/pwc/taxtech/atms/common/util/JavaEmailUtil.java
deleted
100644 → 0
View file @
18602f5c
package
pwc
.
taxtech
.
atms
.
common
.
util
;
/**
* @version 1.0
* @program: atms
* @description:
* @author: Kevin
* @create: 2019-04-26 12:31
**/
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
pwc.taxtech.atms.vat.entity.FileUpload
;
import
java.io.ByteArrayOutputStream
;
import
java.io.FileOutputStream
;
import
java.io.InputStream
;
import
java.util.*
;
import
javax.mail.BodyPart
;
import
javax.mail.Folder
;
import
javax.mail.Message
;
import
javax.mail.Multipart
;
import
javax.mail.Part
;
import
javax.mail.Session
;
import
javax.mail.Store
;
@Component
public
class
JavaEmailUtil
{
private
Logger
logger
=
LoggerFactory
.
getLogger
(
JavaEmailUtil
.
class
);
/**
* 获取邮件内容
*
* @param args
* @throws Exception
*/
@Value
(
"${email.host}"
)
private
String
host
;
@Value
(
"${email.store.protocol}"
)
private
String
protocol
;
@Value
(
"${email.address}"
)
private
String
email
;
@Value
(
"${email.password}"
)
private
String
email_password
;
@Value
(
"${email.aesKey}"
)
private
String
aesKey
;
public
static
void
main
(
String
[]
args
)
{
EncryptUtil
instance
=
EncryptUtil
.
getInstance
();
String
aesKey
=
null
;
String
password
=
null
;
try
{
aesKey
=
instance
.
getAESKey
();
System
.
out
.
println
(
aesKey
);
password
=
instance
.
AESencode
(
"szg8571451"
,
aesKey
);
System
.
out
.
println
(
password
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
String
_password
=
instance
.
AESdecode
(
password
,
aesKey
);
System
.
out
.
println
(
_password
);
}
/**
* @param init 是否数据初始化
*/
public
List
<
Map
<
String
,
Object
>>
getEmails
(
boolean
init
)
throws
Exception
{
EncryptUtil
instance
=
EncryptUtil
.
getInstance
();
List
<
Map
<
String
,
Object
>>
emailList
=
new
ArrayList
<>();
Properties
props
=
new
Properties
();
//设置邮件接收协议为pop3
props
.
setProperty
(
"mail.store.protocol"
,
protocol
);
props
.
setProperty
(
"mail.pop3.host"
,
host
);
Session
session
=
Session
.
getInstance
(
props
);
Store
store
=
session
.
getStore
(
protocol
);
//连接要获取数据的邮箱 主机+用户名+密码
store
.
connect
(
host
,
email
,
instance
.
AESdecode
(
email_password
,
aesKey
));
Folder
folder
=
store
.
getFolder
(
"inbox"
);
//设置邮件可读可写
folder
.
open
(
Folder
.
READ_WRITE
);
if
(!
init
)
{
Message
[]
messages
=
folder
.
getMessages
();
for
(
int
i
=
0
;
i
<
messages
.
length
;
i
++)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
//如果不是初始化,只读取从零点到当前时间的邮件
if
(
getZeroTime
()
<
messages
[
i
].
getSentDate
().
getTime
()
&&
messages
[
i
].
getSentDate
().
getTime
()
<
System
.
currentTimeMillis
())
{
//解析发件人地址
String
address
=
messages
[
i
].
getFrom
()[
0
].
toString
();
//logger.warn(address);
map
.
put
(
"address"
,
address
);
//解析邮件主题
String
subject
=
messages
[
i
].
getSubject
();
//logger.warn(subject);
map
.
put
(
"subject"
,
subject
);
//如果只是纯文本文件情况
//String content = (String) messages[i].getContent();
//MIME中包含文本情况
//getTextMultipart(messages[i]);
//MIME中包含图片情况
//getPicMultipart(messages[i]);
//MIME中包含附件情况
//getAttachmentMultipart(messages[i]);
//解析综合数据情况
map
.
put
(
"sendDate"
,
messages
[
i
].
getSentDate
());
FileUpload
allMultipart
=
getAllMultipart
(
messages
[
i
],
map
);
if
(
allMultipart
!=
null
)
map
.
put
(
"attachInfo"
,
allMultipart
);
int
i1
=
messages
[
i
].
getFrom
()[
0
].
toString
().
indexOf
(
" <"
);
int
i2
=
messages
[
i
].
getFrom
()[
0
].
toString
().
indexOf
(
">"
);
try
{
map
.
put
(
"from_person"
,
messages
[
i
].
getFrom
()[
0
].
toString
().
substring
(
i1
,
i2
+
1
));
}
catch
(
Exception
e
)
{
map
.
put
(
"from_person"
,
"未知发件人"
);
// e.printStackTrace();
}
if
(
map
.
get
(
"content"
).
toString
().
indexOf
(
"https://mp.weixin.qq.com"
)
!=
-
1
)
{
map
.
put
(
"url"
,
map
.
get
(
"content"
));
map
.
put
(
"type"
,
"0"
);
}
else
{
map
.
put
(
"type"
,
"1"
);
}
}
}
folder
.
close
(
true
);
store
.
close
();
}
else
{
Message
[]
messages
=
folder
.
getMessages
();
for
(
int
i
=
0
;
i
<
messages
.
length
;
i
++)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
String
address
=
messages
[
i
].
getFrom
()[
0
].
toString
();
logger
.
warn
(
address
);
map
.
put
(
"address"
,
address
);
String
subject
=
messages
[
i
].
getSubject
();
logger
.
warn
(
subject
);
map
.
put
(
"subject"
,
subject
);
map
.
put
(
"sendDate"
,
messages
[
i
].
getSentDate
());
FileUpload
allMultipart
=
getAllMultipart
(
messages
[
i
],
map
);
if
(
allMultipart
!=
null
)
map
.
put
(
"attachInfo"
,
allMultipart
);
int
i1
=
messages
[
i
].
getFrom
()[
0
].
toString
().
indexOf
(
" <"
);
int
i2
=
messages
[
i
].
getFrom
()[
0
].
toString
().
indexOf
(
">"
);
try
{
map
.
put
(
"from_person"
,
messages
[
i
].
getFrom
()[
0
].
toString
().
substring
(
i1
,
i2
+
1
));
}
catch
(
Exception
e
)
{
map
.
put
(
"from_person"
,
"未知发件人"
);
// e.printStackTrace();
}
if
(
map
.
get
(
"content"
).
toString
().
indexOf
(
"https://mp.weixin.qq.com"
)
!=
-
1
)
{
map
.
put
(
"url"
,
map
.
get
(
"content"
));
map
.
put
(
"type"
,
"0"
);
}
else
{
map
.
put
(
"type"
,
"1"
);
}
emailList
.
add
(
map
);
}
folder
.
close
(
true
);
store
.
close
();
}
return
emailList
;
}
public
Long
getZeroTime
()
{
long
current
=
System
.
currentTimeMillis
();
//当前时间毫秒数
return
current
/
(
1000
*
3600
*
24
)
*
(
1000
*
3600
*
24
)
-
TimeZone
.
getDefault
().
getRawOffset
();
//今天零点零分零秒的毫秒数
}
/**
* 解析综合数据
*
* @param part
* @throws Exception
*/
private
FileUpload
getAllMultipart
(
Part
part
,
Map
map
)
throws
Exception
{
String
contentType
=
part
.
getContentType
();
InputStream
is
;
String
fileName
;
int
index
=
contentType
.
indexOf
(
"name"
);
boolean
conName
=
false
;
if
(
index
!=
-
1
)
{
conName
=
true
;
}
//判断part类型
if
(
part
.
isMimeType
(
"text/plain"
)
&&
!
conName
)
{
map
.
put
(
"content"
,
(
String
)
part
.
getContent
());
}
else
if
(
part
.
isMimeType
(
"text/html"
)
&&
!
conName
)
{
map
.
put
(
"content"
,
(
String
)
part
.
getContent
());
}
else
if
(
part
.
isMimeType
(
"multipart/*"
))
{
Multipart
multipart
=
(
Multipart
)
part
.
getContent
();
int
counts
=
multipart
.
getCount
();
for
(
int
i
=
0
;
i
<
counts
;
i
++)
{
//递归获取数据
getAllMultipart
(
multipart
.
getBodyPart
(
i
),
map
);
//附件可能是截图或上传的(图片或其他数据)
if
(
multipart
.
getBodyPart
(
i
).
getDisposition
()
!=
null
)
{
//附件为截图
if
(
multipart
.
getBodyPart
(
i
).
isMimeType
(
"image/*"
))
{
is
=
multipart
.
getBodyPart
(
i
)
.
getInputStream
();
String
name
=
multipart
.
getBodyPart
(
i
).
getFileName
();
//截图图片
if
(
name
.
startsWith
(
"=?"
))
{
try
{
fileName
=
name
.
substring
(
name
.
lastIndexOf
(
"."
)
-
1
,
name
.
lastIndexOf
(
"?="
));
}
catch
(
Exception
ex
)
{
fileName
=
name
;
}
}
else
{
//上传图片
fileName
=
name
;
}
}
else
{
//其他附件
is
=
multipart
.
getBodyPart
(
i
)
.
getInputStream
();
fileName
=
multipart
.
getBodyPart
(
i
).
getFileName
();
}
// 将附件上传至文件服务器
ByteArrayOutputStream
byteArrayOutputStream
=
new
ByteArrayOutputStream
();
byte
[]
buff
=
new
byte
[
100
];
//buff用于存放循环读取的临时数据
int
rc
=
0
;
while
((
rc
=
is
.
read
(
buff
,
0
,
100
))
>
0
)
{
byteArrayOutputStream
.
write
(
buff
,
0
,
rc
);
}
byte
[]
in_b
=
byteArrayOutputStream
.
toByteArray
();
//in_b为转换之后的结果
if
(
in_b
!=
null
)
return
SpringContextUtil
.
didiFileUploadService
.
uploadFile
(
in_b
,
fileName
,
"邮箱附件"
);
return
null
;
}
}
}
else
if
(
part
.
isMimeType
(
"message/rfc822"
))
{
getAllMultipart
((
Part
)
part
.
getContent
(),
map
);
}
return
null
;
}
/**
* 解析附件内容
*
* @param part
* @throws Exception
*/
private
static
void
getAttachmentMultipart
(
Part
part
)
throws
Exception
{
if
(
part
.
isMimeType
(
"multipart/*"
))
{
Multipart
multipart
=
(
Multipart
)
part
.
getContent
();
int
count
=
multipart
.
getCount
();
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
BodyPart
bodyPart
=
multipart
.
getBodyPart
(
i
);
if
(
bodyPart
.
getDisposition
()
!=
null
)
{
InputStream
is
=
bodyPart
.
getInputStream
();
FileOutputStream
fos
=
new
FileOutputStream
(
"路径+文件名"
);
int
len
=
0
;
byte
[]
bys
=
new
byte
[
1024
];
while
((
len
=
is
.
read
(
bys
))
!=
-
1
)
{
fos
.
write
(
bys
,
0
,
len
);
}
fos
.
close
();
}
}
}
}
/**
* 解析图片内容
*
* @param part
* @throws Exception
*/
private
static
void
getPicMultipart
(
Part
part
)
throws
Exception
{
if
(
part
.
isMimeType
(
"multipart/*"
))
{
Multipart
multipart
=
(
Multipart
)
part
.
getContent
();
int
count
=
multipart
.
getCount
();
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
BodyPart
bodyPart
=
multipart
.
getBodyPart
(
i
);
if
(
bodyPart
.
isMimeType
(
"image/*"
))
{
InputStream
is
=
bodyPart
.
getInputStream
();
FileOutputStream
fos
=
new
FileOutputStream
(
"路径+文件名"
);
int
len
=
0
;
byte
[]
bys
=
new
byte
[
1024
];
while
((
len
=
is
.
read
(
bys
))
!=
-
1
)
{
fos
.
write
(
bys
,
0
,
len
);
}
fos
.
close
();
}
}
}
}
/**
* 解析文本内容
*
* @param part
* @throws Exception
*/
private
static
void
getTextMultipart
(
Part
part
)
throws
Exception
{
if
(
part
.
isMimeType
(
"text/html"
))
{
String
content
=
(
String
)
part
.
getContent
();
System
.
out
.
println
(
content
);
}
else
if
(
part
.
isMimeType
(
"text/plain"
))
{
String
content
=
(
String
)
part
.
getContent
();
System
.
out
.
println
(
content
);
}
}
}
\ No newline at end of file
atms-api/src/main/java/pwc/taxtech/atms/common/util/SpringContextUtil.java
View file @
f9d7fce0
...
@@ -8,7 +8,6 @@ import pwc.taxtech.atms.dao.*;
...
@@ -8,7 +8,6 @@ import pwc.taxtech.atms.dao.*;
import
pwc.taxtech.atms.invoice.InputInvoiceMapper
;
import
pwc.taxtech.atms.invoice.InputInvoiceMapper
;
import
pwc.taxtech.atms.invoice.OutputInvoiceDetailMapper
;
import
pwc.taxtech.atms.invoice.OutputInvoiceDetailMapper
;
import
pwc.taxtech.atms.invoice.OutputInvoiceMapper
;
import
pwc.taxtech.atms.invoice.OutputInvoiceMapper
;
import
pwc.taxtech.atms.service.impl.DidiFileUploadService
;
import
pwc.taxtech.atms.service.impl.DistributedIdService
;
import
pwc.taxtech.atms.service.impl.DistributedIdService
;
import
pwc.taxtech.atms.vat.dao.*
;
import
pwc.taxtech.atms.vat.dao.*
;
...
@@ -76,7 +75,7 @@ public class SpringContextUtil implements ApplicationContextAware {
...
@@ -76,7 +75,7 @@ public class SpringContextUtil implements ApplicationContextAware {
public
static
CitBalanceSheetPrcAdjustMapper
citBalanceSheetPrcAdjustMapper
;
public
static
CitBalanceSheetPrcAdjustMapper
citBalanceSheetPrcAdjustMapper
;
public
static
CitProfitPrcAdjustMapper
citProfitPrcAdjustMapper
;
public
static
CitProfitPrcAdjustMapper
citProfitPrcAdjustMapper
;
public
static
BalanceSheetMapper
balanceSheetMapper
;
public
static
BalanceSheetMapper
balanceSheetMapper
;
public
static
DidiFileUploadService
didiFileUploadService
;
public
static
Map
map
=
new
HashMap
<
String
,
Object
>();
public
static
Map
map
=
new
HashMap
<
String
,
Object
>();
/**
/**
...
@@ -151,7 +150,6 @@ public class SpringContextUtil implements ApplicationContextAware {
...
@@ -151,7 +150,6 @@ public class SpringContextUtil implements ApplicationContextAware {
certifiedInvoicesListMapper
=
webApplicationContext
.
getBean
(
CertifiedInvoicesListMapper
.
class
);
certifiedInvoicesListMapper
=
webApplicationContext
.
getBean
(
CertifiedInvoicesListMapper
.
class
);
trialBalanceMappingMapper
=
webApplicationContext
.
getBean
(
TrialBalanceMappingMapper
.
class
);
trialBalanceMappingMapper
=
webApplicationContext
.
getBean
(
TrialBalanceMappingMapper
.
class
);
revenueConfigMapper
=
webApplicationContext
.
getBean
(
RevenueConfigMapper
.
class
);
revenueConfigMapper
=
webApplicationContext
.
getBean
(
RevenueConfigMapper
.
class
);
didiFileUploadService
=
webApplicationContext
.
getBean
(
DidiFileUploadService
.
class
);
/* map.put("balance_sheet", balanceMapper);
/* map.put("balance_sheet", balanceMapper);
map.put("profit_loss_statement",profitLossStatementMapper);
map.put("profit_loss_statement",profitLossStatementMapper);
map.put("cash_flow", cashFlowMapper);
map.put("cash_flow", cashFlowMapper);
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/ProjectStatusManageController.java
View file @
f9d7fce0
...
@@ -26,8 +26,7 @@ public class ProjectStatusManageController {
...
@@ -26,8 +26,7 @@ public class ProjectStatusManageController {
public
OperationResultDto
<
ProjectStatusManageDto
>
setProjectStatus
(
@PathVariable
(
"projectId"
)
String
projectId
,
public
OperationResultDto
<
ProjectStatusManageDto
>
setProjectStatus
(
@PathVariable
(
"projectId"
)
String
projectId
,
@PathVariable
(
"periodId"
)
Integer
periodId
,
@PathVariable
(
"periodId"
)
Integer
periodId
,
@PathVariable
(
"status"
)
Integer
status
)
{
@PathVariable
(
"status"
)
Integer
status
)
{
return
projectStatusManageService
.
setProjectStatus
(
projectId
,
periodId
,
status
,
return
projectStatusManageService
.
setProjectStatus
(
projectId
,
periodId
,
status
,
identityService
.
getIdentityUser
().
getId
());
identityService
.
getIdentityUser
().
getId
());
}
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/security/JwtAuthenticationFilter.java
View file @
f9d7fce0
package
pwc
.
taxtech
.
atms
.
security
;
package
pwc
.
taxtech
.
atms
.
security
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
io.jsonwebtoken.impl.DefaultClaims
;
import
io.jsonwebtoken.impl.DefaultClaims
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
...
@@ -9,6 +11,8 @@ import org.springframework.security.core.Authentication;
...
@@ -9,6 +11,8 @@ import org.springframework.security.core.Authentication;
import
org.springframework.security.core.AuthenticationException
;
import
org.springframework.security.core.AuthenticationException
;
import
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
;
import
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
pwc.taxtech.atms.common.util.HttpUtil
;
import
pwc.taxtech.atms.dto.AtmsTokenDto
;
import
javax.servlet.FilterChain
;
import
javax.servlet.FilterChain
;
import
javax.servlet.ServletException
;
import
javax.servlet.ServletException
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DistributedIdService.java
View file @
f9d7fce0
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
pwc.taxtech.atms.common.config.SystemConfig
;
import
pwc.taxtech.atms.common.util.CommonUtil
;
import
pwc.taxtech.atms.common.util.SnowFlake
;
import
pwc.taxtech.atms.common.util.SnowFlake
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.Resource
;
import
java.util.Map
;
@Component
@Component
public
class
DistributedIdService
{
public
class
DistributedIdService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
DistributedIdService
.
class
);
@Value
(
"${distributed_id_datacenter}"
)
@Value
(
"${distributed_id_datacenter}"
)
private
Integer
dataCenterId
;
private
Integer
dataCenterId
;
@Value
(
"${distributed_id_machine}"
)
@Value
(
"${distributed_id_machine}"
)
private
Integer
machineId
;
private
Integer
machineId
;
private
static
final
int
DEFAULT_MACHINE_ID
=
1
;
@Resource
private
SystemConfig
systemConfig
;
private
SnowFlake
snowFlake
;
private
SnowFlake
snowFlake
;
@PostConstruct
@PostConstruct
public
void
init
()
{
public
void
init
()
throws
Exception
{
snowFlake
=
new
SnowFlake
(
dataCenterId
,
machineId
);
String
ip
=
CommonUtil
.
getLocalHostLANAddress
().
getHostAddress
();
for
(
Map
.
Entry
<
String
,
String
>
entry
:
systemConfig
.
getIdGeneratorMap
().
entrySet
())
{
if
(
StringUtils
.
trim
(
entry
.
getValue
()).
equals
(
ip
))
{
snowFlake
=
new
SnowFlake
(
dataCenterId
,
Integer
.
valueOf
(
entry
.
getKey
()));
logger
.
info
(
"初始化 dataCenterId: {} machineId: {}"
,
dataCenterId
,
Integer
.
valueOf
(
entry
.
getKey
()));
break
;
}
}
if
(
null
==
snowFlake
)
{
snowFlake
=
new
SnowFlake
(
dataCenterId
,
DEFAULT_MACHINE_ID
);
logger
.
info
(
"初始化 dataCenterId: {} machineId: {}"
,
dataCenterId
,
DEFAULT_MACHINE_ID
);
}
}
}
/**
/**
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TaxEamilServiceImpl.java
deleted
100644 → 0
View file @
18602f5c
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
pwc.taxtech.atms.common.util.JavaEmailUtil
;
import
pwc.taxtech.atms.dao.TaxEmailMapper
;
import
pwc.taxtech.atms.entity.TaxEmail
;
import
pwc.taxtech.atms.entity.TaxEmailExample
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
/**
* @version 1.0
* @program: atms
* @description:
* @author: Kevin
* @create: 2019-04-26 12:28
**/
@Service
public
class
TaxEamilServiceImpl
{
private
Logger
logger
=
LoggerFactory
.
getLogger
(
TaxEamilServiceImpl
.
class
);
@Autowired
private
TaxEmailMapper
taxEmailMapper
;
@Autowired
private
JavaEmailUtil
javaEmailUtil
;
@Autowired
protected
DistributedIdService
idService
;
public
void
jobEmail
()
{
try
{
List
<
Map
<
String
,
Object
>>
emails
=
javaEmailUtil
.
getEmails
(
true
);
emails
.
forEach
(
e
->
{
TaxEmail
taxEmail
=
new
TaxEmail
();
taxEmail
.
setCreateBy
((
String
)
e
.
get
(
"from_person"
));
taxEmail
.
setCreatetime
((
Date
)
e
.
get
(
"sendDate"
));
taxEmail
.
setId
(
String
.
valueOf
(
idService
.
nextId
()));
if
(
e
.
get
(
"type"
)
!=
null
&&
e
.
get
(
"type"
).
equals
(
"1"
)){
taxEmail
.
setContent
((
String
)
e
.
get
(
"content"
));
taxEmail
.
setType
(
1
);
}
else
{
taxEmail
.
setType
(
0
);
taxEmail
.
setUrl
((
String
)
e
.
get
(
"url"
));
}
taxEmail
.
setAttachUrl
((
String
)
e
.
get
(
"attachUrl"
));
taxEmail
.
setTitle
((
String
)
e
.
get
(
"subject"
));
taxEmail
.
setHashkey
(
String
.
valueOf
((((
String
)
e
.
get
(
"attachUrl"
)
+
(
String
)
e
.
get
(
"subject"
)).
hashCode
())));
if
(
judgeHashKey
(
taxEmail
.
getHashkey
()))
taxEmailMapper
.
insertSelective
(
taxEmail
);
});
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
warn
(
"获取邮件失败"
);
}
}
public
boolean
judgeHashKey
(
String
hashKey
){
TaxEmailExample
example
=
new
TaxEmailExample
();
example
.
createCriteria
().
andHashkeyEqualTo
(
hashKey
);
List
<
TaxEmail
>
taxEmails
=
taxEmailMapper
.
selectByExample
(
example
);
if
(
taxEmails
.
size
()
!=
0
)
return
false
;
return
true
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
f9d7fce0
...
@@ -44,7 +44,6 @@ import java.util.regex.Matcher;
...
@@ -44,7 +44,6 @@ import java.util.regex.Matcher;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
static
org
.
apache
.
poi
.
ss
.
usermodel
.
Cell
.
CELL_TYPE_FORMULA
;
import
static
pwc
.
taxtech
.
atms
.
common
.
util
.
SpringContextUtil
.
reportMapper
;
import
static
pwc
.
taxtech
.
atms
.
common
.
util
.
SpringContextUtil
.
reportMapper
;
import
static
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
WrapPeriodJobDto
.*;
import
static
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
WrapPeriodJobDto
.*;
...
@@ -574,8 +573,27 @@ public class ReportGeneratorImpl {
...
@@ -574,8 +573,27 @@ public class ReportGeneratorImpl {
List
<
AnalysisSalesValueDto
>
dataList
=
periodCellDataMapper
.
selectReportData
(
a
.
getTemplateId
(),
a
.
getProjectId
(),
a
.
getPeriod
());
List
<
AnalysisSalesValueDto
>
dataList
=
periodCellDataMapper
.
selectReportData
(
a
.
getTemplateId
(),
a
.
getProjectId
(),
a
.
getPeriod
());
for
(
AnalysisSalesValueDto
cellData:
dataList
){
for
(
AnalysisSalesValueDto
cellData:
dataList
){
Sheet
sheet
=
tWorkbook
.
getSheetAt
(
0
);
Sheet
sheet
=
tWorkbook
.
getSheetAt
(
0
);
try
{
BigDecimal
amount
=
new
BigDecimal
(
cellData
.
getData
());
BigDecimal
manualAmount
=
new
BigDecimal
(
"0"
);
if
(
StringUtils
.
isNotBlank
(
cellData
.
getKeyinData
())){
manualAmount
=
new
BigDecimal
(
cellData
.
getKeyinData
());
}
else
if
(
StringUtils
.
isNotBlank
(
cellData
.
getManualAmount
())){
manualAmount
=
new
BigDecimal
(
cellData
.
getManualAmount
());
}
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
amount
.
add
(
manualAmount
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
toString
());
}
catch
(
NumberFormatException
e
){
//判断是否有手工数据源有得话以手工数据源为主
if
(
StringUtils
.
isNotBlank
(
cellData
.
getKeyinData
())){
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
cellData
.
getKeyinData
());
}
else
if
(
StringUtils
.
isNotBlank
(
cellData
.
getManualAmount
())){
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
cellData
.
getManualAmount
());
}
else
{
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
cellData
.
getData
());
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
cellData
.
getData
());
}
}
}
}
POIUtil
.
cloneSheetAndStyle
(
tWorkbook
.
getSheetAt
(
0
),
workbook
.
createSheet
(
a
.
getCode
()),
workbook
);
POIUtil
.
cloneSheetAndStyle
(
tWorkbook
.
getSheetAt
(
0
),
workbook
.
createSheet
(
a
.
getCode
()),
workbook
);
});
});
...
@@ -642,8 +660,26 @@ public class ReportGeneratorImpl {
...
@@ -642,8 +660,26 @@ public class ReportGeneratorImpl {
Cell
cell
=
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
());
Cell
cell
=
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
());
sheet
.
getRow
(
cellData
.
getRowIndex
()).
removeCell
(
cell
);
sheet
.
getRow
(
cellData
.
getRowIndex
()).
removeCell
(
cell
);
sheet
.
getRow
(
cellData
.
getRowIndex
()).
createCell
(
cellData
.
getColumnIndex
());
sheet
.
getRow
(
cellData
.
getRowIndex
()).
createCell
(
cellData
.
getColumnIndex
());
try
{
BigDecimal
amount
=
new
BigDecimal
(
cellData
.
getData
());
BigDecimal
manualAmount
=
new
BigDecimal
(
"0"
);
if
(
StringUtils
.
isNotBlank
(
cellData
.
getKeyinData
())){
manualAmount
=
new
BigDecimal
(
cellData
.
getKeyinData
());
}
else
if
(
StringUtils
.
isNotBlank
(
cellData
.
getManualAmount
())){
manualAmount
=
new
BigDecimal
(
cellData
.
getManualAmount
());
}
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
amount
.
add
(
manualAmount
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
toString
());
}
catch
(
NumberFormatException
e
){
//判断是否有手工数据源有得话以手工数据源为主
if
(
StringUtils
.
isNotBlank
(
cellData
.
getKeyinData
())){
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
cellData
.
getKeyinData
());
}
else
if
(
StringUtils
.
isNotBlank
(
cellData
.
getManualAmount
())){
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
cellData
.
getManualAmount
());
}
else
{
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
cellData
.
getData
());
sheet
.
getRow
(
cellData
.
getRowIndex
()).
getCell
(
cellData
.
getColumnIndex
()).
setCellValue
(
cellData
.
getData
());
}
}
}
}
POIUtil
.
cloneSheetAndStyle
(
tWorkbook
.
getSheetAt
(
0
),
workbook
.
createSheet
(
a
.
getCode
()),
workbook
);
POIUtil
.
cloneSheetAndStyle
(
tWorkbook
.
getSheetAt
(
0
),
workbook
.
createSheet
(
a
.
getCode
()),
workbook
);
});
});
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
f9d7fce0
...
@@ -2047,9 +2047,9 @@ public class ReportServiceImpl extends BaseService {
...
@@ -2047,9 +2047,9 @@ public class ReportServiceImpl extends BaseService {
cellData
.
setId
(
distributedIdService
.
nextId
());
cellData
.
setId
(
distributedIdService
.
nextId
());
cellData
.
setReportId
(
data
.
getReportId
());
cellData
.
setReportId
(
data
.
getReportId
());
cellData
.
setCellTemplateId
(
Long
.
parseLong
(
data
.
getCellTemplateId
()));
cellData
.
setCellTemplateId
(
Long
.
parseLong
(
data
.
getCellTemplateId
()));
cellData
.
setData
(
data
.
getAmount
()
==
null
?
null
:
data
.
getAmount
().
toString
()
);
cellData
.
setData
(
"0.0"
);
cellData
.
setKeyinData
(
data
.
getKeyinData
());
cellData
.
setKeyinData
(
data
.
getKeyinData
());
cellData
.
setFormulaExp
(
data
.
get
Amount
()
==
null
?
"0.0"
:
data
.
getAmount
().
toString
());
cellData
.
setFormulaExp
(
data
.
get
KeyinData
()
==
null
?
"0.0"
:
data
.
getKeyinData
());
cellData
.
setCreateBy
(
"admin"
);
cellData
.
setCreateBy
(
"admin"
);
cellData
.
setCreateTime
(
new
Date
());
cellData
.
setCreateTime
(
new
Date
());
cellData
.
setUpdateBy
(
"admin"
);
cellData
.
setUpdateBy
(
"admin"
);
...
...
atms-api/src/main/resources/applicationContext-job.xml
View file @
f9d7fce0
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
<ref
bean=
"lgApiJobTrigger"
/>
<ref
bean=
"lgApiJobTrigger"
/>
<ref
bean=
"orgSyncJobTrigger"
/>
<ref
bean=
"orgSyncJobTrigger"
/>
<ref
bean=
"analysisJobTrigger"
/>
<ref
bean=
"analysisJobTrigger"
/>
<ref
bean=
"shareJobTrigger"
/>
</list>
</list>
</property>
</property>
<property
name=
"jobDetails"
>
<property
name=
"jobDetails"
>
...
@@ -47,7 +46,6 @@
...
@@ -47,7 +46,6 @@
<ref
bean=
"lgGlBalanceJob"
/>
<ref
bean=
"lgGlBalanceJob"
/>
<ref
bean=
"orgSyncJob"
/>
<ref
bean=
"orgSyncJob"
/>
<ref
bean=
"analysisJob"
/>
<ref
bean=
"analysisJob"
/>
<ref
bean=
"shareJob"
/>
</list>
</list>
</property>
</property>
<property
name=
"taskExecutor"
ref=
"executor"
/>
<property
name=
"taskExecutor"
ref=
"executor"
/>
...
@@ -93,15 +91,6 @@
...
@@ -93,15 +91,6 @@
<property
name=
"requestsRecovery"
value=
"false"
/>
<property
name=
"requestsRecovery"
value=
"false"
/>
<property
name=
"description"
value=
"分析模块"
/>
<property
name=
"description"
value=
"分析模块"
/>
</bean>
</bean>
<!--shareJob-->
<bean
name=
"shareJob"
class=
"org.springframework.scheduling.quartz.JobDetailFactoryBean"
>
<property
name=
"jobClass"
value=
"pwc.taxtech.atms.common.schedule.ShareJob"
/>
<property
name=
"durability"
value=
"true"
/>
<property
name=
"requestsRecovery"
value=
"false"
/>
<property
name=
"description"
value=
"分享模块"
/>
</bean>
<!-- 每天凌晨一点执行一次-->
<!-- 每天凌晨一点执行一次-->
<bean
id=
"analysisJobTrigger"
class=
"org.springframework.scheduling.quartz.CronTriggerFactoryBean"
>
<bean
id=
"analysisJobTrigger"
class=
"org.springframework.scheduling.quartz.CronTriggerFactoryBean"
>
<property
name=
"jobDetail"
ref=
"analysisJob"
/>
<property
name=
"jobDetail"
ref=
"analysisJob"
/>
...
@@ -109,12 +98,5 @@
...
@@ -109,12 +98,5 @@
</bean>
</bean>
<!-- shareJob 任务执行设定-->
<bean
id=
"shareJobTrigger"
class=
"org.springframework.scheduling.quartz.CronTriggerFactoryBean"
>
<property
name=
"jobDetail"
ref=
"shareJob"
/>
<property
name=
"cronExpression"
value=
"59 * * * * ? *"
/>
</bean>
<!-- 分布式事务配置 end -->
<!-- 分布式事务配置 end -->
</beans>
</beans>
\ No newline at end of file
atms-api/src/main/resources/conf/conf.properties
View file @
f9d7fce0
...
@@ -21,13 +21,6 @@ jwt.powerToken=${jwt.powerToken}
...
@@ -21,13 +21,6 @@ jwt.powerToken=${jwt.powerToken}
jwt.expireSecond
=
${jwt.expireSecond}
jwt.expireSecond
=
${jwt.expireSecond}
jwt.refreshSecond
=
${jwt.refreshSecond}
jwt.refreshSecond
=
${jwt.refreshSecond}
#email config
email.host
=
${email.host}
email.store.protocol
=
${email.store.protocol}
email.address
=
${email.address}
email.password
=
${email.password}
email.aesKey
=
${email.aesKey}
#File Server Config
#File Server Config
file.server.url
=
${file.server.url}
file.server.url
=
${file.server.url}
file.server.upload
=
${file.server.upload}
file.server.upload
=
${file.server.upload}
...
@@ -38,6 +31,7 @@ max_file_length=${max_file_length}
...
@@ -38,6 +31,7 @@ max_file_length=${max_file_length}
#Distributed ID Generate
#Distributed ID Generate
distributed_id_datacenter
=
${distributed_id_datacenter}
distributed_id_datacenter
=
${distributed_id_datacenter}
distributed_id_machine
=
${distributed_id_machine}
distributed_id_machine
=
${distributed_id_machine}
id.generator.mapping
=
${id.generator.mapping}
api.url
=
${api.url}
api.url
=
${api.url}
...
...
atms-api/src/main/resources/conf/conf_profile_dev.properties
View file @
f9d7fce0
...
@@ -21,20 +21,13 @@ jwt.refreshSecond=600
...
@@ -21,20 +21,13 @@ jwt.refreshSecond=600
file.server.url
=
http://10.158.230.144:1886
file.server.url
=
http://10.158.230.144:1886
file.server.upload
=
/api/v1/upload
file.server.upload
=
/api/v1/upload
#email config
email.host
=
pop3.163.com
email.store.protocol
=
pop3
email.address
=
17615195790@163.com
email.password
=
7C4858868DDFAAFBFCE08C57997427A3
email.aesKey
=
47CA9CA045075A721E16B111536BD3C5
#upload
#upload
max_file_length
=
104857600
max_file_length
=
104857600
#Distributed ID Generate
#Distributed ID Generate
distributed_id_datacenter
=
1
distributed_id_datacenter
=
1
distributed_id_machine
=
1
distributed_id_machine
=
1
id.generator.mapping
=
{1:"127.0.0.1", 2:"10.158.230.16", 3:"10.158.141.14"}
api.url
=
http://dts.erp.didichuxing.com:8180
api.url
=
http://dts.erp.didichuxing.com:8180
...
...
atms-api/src/main/resources/conf/conf_profile_pub.properties
View file @
f9d7fce0
...
@@ -26,19 +26,13 @@ jwt.refreshSecond=600
...
@@ -26,19 +26,13 @@ jwt.refreshSecond=600
file.server.url
=
http://dts.erp.didichuxing.com:9001
file.server.url
=
http://dts.erp.didichuxing.com:9001
file.server.upload
=
/api/v1/upload
file.server.upload
=
/api/v1/upload
#email config
email.host
=
pop3.163.com
email.store.protocol
=
pop3
email.address
=
17615195790@163.com
email.password
=
7C4858868DDFAAFBFCE08C57997427A3
email.aesKey
=
47CA9CA045075A721E16B111536BD3C5
#upload
#upload
max_file_length
=
104857600
max_file_length
=
104857600
#Distributed ID Generate
#Distributed ID Generate
distributed_id_datacenter
=
10
distributed_id_datacenter
=
10
distributed_id_machine
=
15
distributed_id_machine
=
15
id.generator.mapping
=
{1:"10.89.181.18", 2:"10.89.182.17"}
api.url
=
http://dts.erp.didichuxing.com:8180
api.url
=
http://dts.erp.didichuxing.com:8180
...
...
atms-api/src/main/resources/conf/conf_profile_staging.properties
View file @
f9d7fce0
...
@@ -21,18 +21,13 @@ jwt.refreshSecond=600
...
@@ -21,18 +21,13 @@ jwt.refreshSecond=600
file.server.url
=
http://10.158.230.144:1886
file.server.url
=
http://10.158.230.144:1886
file.server.upload
=
/api/v1/upload
file.server.upload
=
/api/v1/upload
#email config
email.host
=
pop3.163.com
email.store.protocol
=
pop3
email.address
=
17615195790@163.com
email.password
=
7C4858868DDFAAFBFCE08C57997427A3
email.aesKey
=
47CA9CA045075A721E16B111536BD3C5
#upload
#upload
max_file_length
=
104857600
max_file_length
=
104857600
#Distributed ID Generate
#Distributed ID Generate
distributed_id_datacenter
=
10
distributed_id_datacenter
=
10
distributed_id_machine
=
10
distributed_id_machine
=
10
id.generator.mapping
=
{1:"10.158.230.16", 2:"10.158.230.16"}
api.url
=
http://dts.erp.didichuxing.com
api.url
=
http://dts.erp.didichuxing.com
...
...
atms-api/src/main/resources/conf/conf_profile_uat.properties
View file @
f9d7fce0
...
@@ -22,14 +22,6 @@ jwt.powerToken=xxxx
...
@@ -22,14 +22,6 @@ jwt.powerToken=xxxx
jwt.expireSecond
=
180000
jwt.expireSecond
=
180000
jwt.refreshSecond
=
600
jwt.refreshSecond
=
600
#email config
email.host
=
pop3.163.com
email.store.protocol
=
pop3
email.address
=
17615195790@163.com
email.password
=
7C4858868DDFAAFBFCE08C57997427A3
email.aesKey
=
47CA9CA045075A721E16B111536BD3C5
#File Server Config
#File Server Config
file.server.url
=
http://dts.erp.didichuxing.com:9001
file.server.url
=
http://dts.erp.didichuxing.com:9001
file.server.upload
=
/api/v1/upload
file.server.upload
=
/api/v1/upload
...
@@ -40,6 +32,7 @@ max_file_length=104857600
...
@@ -40,6 +32,7 @@ max_file_length=104857600
#Distributed ID Generate
#Distributed ID Generate
distributed_id_datacenter
=
10
distributed_id_datacenter
=
10
distributed_id_machine
=
16
distributed_id_machine
=
16
id.generator.mapping
=
{1:"172.20.2.218", 2:"172.20.2.218"}
api.url
=
http://dts-test.erp.didichuxing.com
api.url
=
http://dts-test.erp.didichuxing.com
...
@@ -59,8 +52,8 @@ file_upload_query_url=http://10.88.128.214:8001/resource/erp_tax_system
...
@@ -59,8 +52,8 @@ file_upload_query_url=http://10.88.128.214:8001/resource/erp_tax_system
#���ϵ�ַget_user_info_url=http://mis.diditaxi.com.cn/auth/sso/api/
#���ϵ�ַget_user_info_url=http://mis.diditaxi.com.cn/auth/sso/api/
check_ticket
=
true
check_ticket
=
true
get_user_info_url
=
http://mis.diditaxi.com.cn/auth/sso/api/
get_user_info_url
=
http://mis.diditaxi.com.cn/auth/sso/api/
app_id
=
2
500
app_id
=
2
425
app_key
=
983258e7fd04d7fa0534735f7b1c33f
3
app_key
=
71799b6ab7049a5d456f6124d23fc37
3
cookie.maxAgeSeconds
=
18000
cookie.maxAgeSeconds
=
18000
org_sync_url
=
http://10.96.238.10/erp-main-data-test-v2/api/companies
org_sync_url
=
http://10.96.238.10/erp-main-data-test-v2/api/companies
org_sync_token
=
174af08f
org_sync_token
=
174af08f
...
...
atms-api/src/test/java/pwc/taxtech/atms/service/impl/ShareTest.java
deleted
100644 → 0
View file @
18602f5c
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.PropertySource
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
org.springframework.test.context.web.WebAppConfiguration
;
import
org.springframework.transaction.annotation.Transactional
;
/**
* @version 1.0
* @program: atms
* @description:
* @author: Kevin
* @create: 2019-04-26 15:15
**/
@WebAppConfiguration
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@ContextConfiguration
(
locations
=
{
"classpath:applicationContext.xml"
})
@PropertySource
(
"classpath:/conf/conf_profile_dev.properties"
)
public
class
ShareTest
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
DataInitTest
.
class
);
@Autowired
private
TaxEamilServiceImpl
taxEamilService
;
@Test
public
void
jobEmail
(){
taxEamilService
.
jobEmail
();
}
}
atms-dao/etc/generator-mysql/generatorConfig.xml
View file @
f9d7fce0
...
@@ -41,13 +41,26 @@
...
@@ -41,13 +41,26 @@
<property
name=
"rootInterface"
value=
"pwc.taxtech.atms.MyMapper"
/>
<property
name=
"rootInterface"
value=
"pwc.taxtech.atms.MyMapper"
/>
</javaClientGenerator>
</javaClientGenerator>
<table
tableName=
"
data_import_log"
domainObjectName=
"DataImportLog
"
>
<table
tableName=
"
wf_record"
domainObjectName=
"WfRecord
"
>
<property
name=
"useActualColumnNames"
value=
"false"
/>
<property
name=
"useActualColumnNames"
value=
"false"
/>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
<columnOverride
column=
"period"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<columnOverride
column=
"type"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<columnOverride
column=
"type"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<columnOverride
column=
"tms_period_month"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<columnOverride
column=
"status"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
<columnOverride
column=
"period_month"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
</table>
</table>
<table
tableName=
"wf_record_detail"
domainObjectName=
"WfRecordDetail"
>
<property
name=
"useActualColumnNames"
value=
"false"
/>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
<columnOverride
column=
"status"
javaType=
"java.lang.Integer"
jdbcType=
"TINYINT"
/>
</table>
<!-- <table tableName="data_import_log" domainObjectName="DataImportLog">-->
<!-- <property name="useActualColumnNames" value="false"/>-->
<!-- <property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!-- <columnOverride column="type" javaType="java.lang.Integer" jdbcType="TINYINT"/>-->
<!-- <columnOverride column="tms_period_month" javaType="java.lang.Integer" jdbcType="TINYINT"/>-->
<!-- <columnOverride column="period_month" javaType="java.lang.Integer" jdbcType="TINYINT"/>-->
<!-- </table>-->
<!--<table tableName="analysis_expected_tax_return" domainObjectName="AnalysisExpectedTaxReturn">-->
<!--<table tableName="analysis_expected_tax_return" domainObjectName="AnalysisExpectedTaxReturn">-->
<!--<property name="useActualColumnNames" value="false"/>-->
<!--<property name="useActualColumnNames" value="false"/>-->
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dao/PwcTaxLogMapper.java
deleted
100644 → 0
View file @
18602f5c
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
pwc.taxtech.atms.MyMapper
;
import
pwc.taxtech.atms.entity.PwcTaxLog
;
import
pwc.taxtech.atms.entity.PwcTaxLogExample
;
@Mapper
public
interface
PwcTaxLogMapper
extends
MyMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
long
countByExample
(
PwcTaxLogExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
int
deleteByExample
(
PwcTaxLogExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
String
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
int
insert
(
PwcTaxLog
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
int
insertSelective
(
PwcTaxLog
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
List
<
PwcTaxLog
>
selectByExampleWithBLOBsWithRowbounds
(
PwcTaxLogExample
example
,
RowBounds
rowBounds
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
List
<
PwcTaxLog
>
selectByExampleWithBLOBs
(
PwcTaxLogExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
List
<
PwcTaxLog
>
selectByExampleWithRowbounds
(
PwcTaxLogExample
example
,
RowBounds
rowBounds
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
List
<
PwcTaxLog
>
selectByExample
(
PwcTaxLogExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
PwcTaxLog
selectByPrimaryKey
(
String
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
PwcTaxLog
record
,
@Param
(
"example"
)
PwcTaxLogExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
PwcTaxLog
record
,
@Param
(
"example"
)
PwcTaxLogExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
PwcTaxLog
record
,
@Param
(
"example"
)
PwcTaxLogExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
PwcTaxLog
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
int
updateByPrimaryKeyWithBLOBs
(
PwcTaxLog
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
PwcTaxLog
record
);
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/dao/TaxEmailMapper.java
deleted
100644 → 0
View file @
18602f5c
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
pwc.taxtech.atms.MyMapper
;
import
pwc.taxtech.atms.entity.TaxEmail
;
import
pwc.taxtech.atms.entity.TaxEmailExample
;
@Mapper
public
interface
TaxEmailMapper
extends
MyMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
long
countByExample
(
TaxEmailExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
int
deleteByExample
(
TaxEmailExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
String
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
int
insert
(
TaxEmail
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
int
insertSelective
(
TaxEmail
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
List
<
TaxEmail
>
selectByExampleWithBLOBsWithRowbounds
(
TaxEmailExample
example
,
RowBounds
rowBounds
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
List
<
TaxEmail
>
selectByExampleWithBLOBs
(
TaxEmailExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
List
<
TaxEmail
>
selectByExampleWithRowbounds
(
TaxEmailExample
example
,
RowBounds
rowBounds
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
List
<
TaxEmail
>
selectByExample
(
TaxEmailExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
TaxEmail
selectByPrimaryKey
(
String
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
TaxEmail
record
,
@Param
(
"example"
)
TaxEmailExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
TaxEmail
record
,
@Param
(
"example"
)
TaxEmailExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
TaxEmail
record
,
@Param
(
"example"
)
TaxEmailExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
TaxEmail
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
int
updateByPrimaryKeyWithBLOBs
(
TaxEmail
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
TaxEmail
record
);
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/dpo/AnalysisSalesValueDto.java
View file @
f9d7fce0
...
@@ -9,10 +9,30 @@ public class AnalysisSalesValueDto {
...
@@ -9,10 +9,30 @@ public class AnalysisSalesValueDto {
private
String
data
;
private
String
data
;
private
String
manualAmount
;
private
String
keyinData
;
private
Integer
rowIndex
;
private
Integer
rowIndex
;
private
Integer
columnIndex
;
private
Integer
columnIndex
;
public
String
getManualAmount
()
{
return
manualAmount
;
}
public
void
setManualAmount
(
String
manualAmount
)
{
this
.
manualAmount
=
manualAmount
;
}
public
String
getKeyinData
()
{
return
keyinData
;
}
public
void
setKeyinData
(
String
keyinData
)
{
this
.
keyinData
=
keyinData
;
}
public
String
getData
()
{
public
String
getData
()
{
return
data
;
return
data
;
}
}
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/PwcTaxLog.java
deleted
100644 → 0
View file @
18602f5c
package
pwc
.
taxtech
.
atms
.
entity
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table pwc_tax_log
*
* @mbg.generated do_not_delete_during_merge
*/
public
class
PwcTaxLog
extends
BaseEntity
implements
Serializable
{
/**
* Database Column Remarks:
* token
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column pwc_tax_log.id
*
* @mbg.generated
*/
private
String
id
;
/**
* Database Column Remarks:
* 标题名称和url合并生成的hash值
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column pwc_tax_log.email_id
*
* @mbg.generated
*/
private
String
emailId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column pwc_tax_log.createTime
*
* @mbg.generated
*/
private
Date
createtime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column pwc_tax_log.del_flag
*
* @mbg.generated
*/
private
Integer
delFlag
;
/**
* Database Column Remarks:
* 日志类型
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column pwc_tax_log.type
*
* @mbg.generated
*/
private
Integer
type
;
/**
* Database Column Remarks:
* 内容
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column pwc_tax_log.user_id
*
* @mbg.generated
*/
private
String
userId
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
private
static
final
long
serialVersionUID
=
1L
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column pwc_tax_log.id
*
* @return the value of pwc_tax_log.id
*
* @mbg.generated
*/
public
String
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column pwc_tax_log.id
*
* @param id the value for pwc_tax_log.id
*
* @mbg.generated
*/
public
void
setId
(
String
id
)
{
this
.
id
=
id
==
null
?
null
:
id
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column pwc_tax_log.email_id
*
* @return the value of pwc_tax_log.email_id
*
* @mbg.generated
*/
public
String
getEmailId
()
{
return
emailId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column pwc_tax_log.email_id
*
* @param emailId the value for pwc_tax_log.email_id
*
* @mbg.generated
*/
public
void
setEmailId
(
String
emailId
)
{
this
.
emailId
=
emailId
==
null
?
null
:
emailId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column pwc_tax_log.createTime
*
* @return the value of pwc_tax_log.createTime
*
* @mbg.generated
*/
public
Date
getCreatetime
()
{
return
createtime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column pwc_tax_log.createTime
*
* @param createtime the value for pwc_tax_log.createTime
*
* @mbg.generated
*/
public
void
setCreatetime
(
Date
createtime
)
{
this
.
createtime
=
createtime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column pwc_tax_log.del_flag
*
* @return the value of pwc_tax_log.del_flag
*
* @mbg.generated
*/
public
Integer
getDelFlag
()
{
return
delFlag
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column pwc_tax_log.del_flag
*
* @param delFlag the value for pwc_tax_log.del_flag
*
* @mbg.generated
*/
public
void
setDelFlag
(
Integer
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column pwc_tax_log.type
*
* @return the value of pwc_tax_log.type
*
* @mbg.generated
*/
public
Integer
getType
()
{
return
type
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column pwc_tax_log.type
*
* @param type the value for pwc_tax_log.type
*
* @mbg.generated
*/
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column pwc_tax_log.user_id
*
* @return the value of pwc_tax_log.user_id
*
* @mbg.generated
*/
public
String
getUserId
()
{
return
userId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column pwc_tax_log.user_id
*
* @param userId the value for pwc_tax_log.user_id
*
* @mbg.generated
*/
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
==
null
?
null
:
userId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @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
(
", emailId="
).
append
(
emailId
);
sb
.
append
(
", createtime="
).
append
(
createtime
);
sb
.
append
(
", delFlag="
).
append
(
delFlag
);
sb
.
append
(
", type="
).
append
(
type
);
sb
.
append
(
", userId="
).
append
(
userId
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/entity/PwcTaxLogExample.java
deleted
100644 → 0
View file @
18602f5c
package
pwc
.
taxtech
.
atms
.
entity
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
PwcTaxLogExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
public
PwcTaxLogExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table pwc_tax_log
*
* @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 pwc_tax_log
*
* @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 pwc_tax_log
*
* @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 pwc_tax_log
*
* @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 pwc_tax_log
*
* @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
(
String
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
String
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
String
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
String
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLike
(
String
value
)
{
addCriterion
(
"id like"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotLike
(
String
value
)
{
addCriterion
(
"id not like"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdIsNull
()
{
addCriterion
(
"email_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdIsNotNull
()
{
addCriterion
(
"email_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdEqualTo
(
String
value
)
{
addCriterion
(
"email_id ="
,
value
,
"emailId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdNotEqualTo
(
String
value
)
{
addCriterion
(
"email_id <>"
,
value
,
"emailId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdGreaterThan
(
String
value
)
{
addCriterion
(
"email_id >"
,
value
,
"emailId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"email_id >="
,
value
,
"emailId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdLessThan
(
String
value
)
{
addCriterion
(
"email_id <"
,
value
,
"emailId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"email_id <="
,
value
,
"emailId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdLike
(
String
value
)
{
addCriterion
(
"email_id like"
,
value
,
"emailId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdNotLike
(
String
value
)
{
addCriterion
(
"email_id not like"
,
value
,
"emailId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"email_id in"
,
values
,
"emailId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"email_id not in"
,
values
,
"emailId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"email_id between"
,
value1
,
value2
,
"emailId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andEmailIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"email_id not between"
,
value1
,
value2
,
"emailId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeIsNull
()
{
addCriterion
(
"createTime is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeIsNotNull
()
{
addCriterion
(
"createTime is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeEqualTo
(
Date
value
)
{
addCriterion
(
"createTime ="
,
value
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"createTime <>"
,
value
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeGreaterThan
(
Date
value
)
{
addCriterion
(
"createTime >"
,
value
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"createTime >="
,
value
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeLessThan
(
Date
value
)
{
addCriterion
(
"createTime <"
,
value
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"createTime <="
,
value
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"createTime in"
,
values
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"createTime not in"
,
values
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"createTime between"
,
value1
,
value2
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"createTime not between"
,
value1
,
value2
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagIsNull
()
{
addCriterion
(
"del_flag is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagIsNotNull
()
{
addCriterion
(
"del_flag is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagEqualTo
(
Integer
value
)
{
addCriterion
(
"del_flag ="
,
value
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagNotEqualTo
(
Integer
value
)
{
addCriterion
(
"del_flag <>"
,
value
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagGreaterThan
(
Integer
value
)
{
addCriterion
(
"del_flag >"
,
value
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"del_flag >="
,
value
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagLessThan
(
Integer
value
)
{
addCriterion
(
"del_flag <"
,
value
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"del_flag <="
,
value
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"del_flag in"
,
values
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"del_flag not in"
,
values
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"del_flag between"
,
value1
,
value2
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"del_flag not between"
,
value1
,
value2
,
"delFlag"
);
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
(
Integer
value
)
{
addCriterion
(
"type ="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotEqualTo
(
Integer
value
)
{
addCriterion
(
"type <>"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThan
(
Integer
value
)
{
addCriterion
(
"type >"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"type >="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThan
(
Integer
value
)
{
addCriterion
(
"type <"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"type <="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"type in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"type not in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"type between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"type not between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table pwc_tax_log
*
* @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 pwc_tax_log
*
* @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-dao/src/main/java/pwc/taxtech/atms/entity/TaxEmail.java
deleted
100644 → 0
View file @
18602f5c
package
pwc
.
taxtech
.
atms
.
entity
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table tax_email
*
* @mbg.generated do_not_delete_during_merge
*/
public
class
TaxEmail
extends
BaseEntity
implements
Serializable
{
/**
* Database Column Remarks:
* token
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.id
*
* @mbg.generated
*/
private
String
id
;
/**
* Database Column Remarks:
* 标题名称和url合并生成的hash值
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.hashkey
*
* @mbg.generated
*/
private
String
hashkey
;
/**
* Database Column Remarks:
* 连接地址
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.url
*
* @mbg.generated
*/
private
String
url
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.createTime
*
* @mbg.generated
*/
private
Date
createtime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.updateTime
*
* @mbg.generated
*/
private
Date
updatetime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.create_by
*
* @mbg.generated
*/
private
String
createBy
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.update_by
*
* @mbg.generated
*/
private
String
updateBy
;
/**
* Database Column Remarks:
* 类型,从邮箱获取的type 0, 手动添加的为1
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.type
*
* @mbg.generated
*/
private
Integer
type
;
/**
* Database Column Remarks:
* 删除标志,1为删除
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.del_flag
*
* @mbg.generated
*/
private
Integer
delFlag
;
/**
* Database Column Remarks:
* 浏览量
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.view_num
*
* @mbg.generated
*/
private
Long
viewNum
;
/**
* Database Column Remarks:
* 附件地址
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.attach_url
*
* @mbg.generated
*/
private
String
attachUrl
;
/**
* Database Column Remarks:
* 邮箱主题
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.title
*
* @mbg.generated
*/
private
String
title
;
/**
* Database Column Remarks:
* 内容
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_email.content
*
* @mbg.generated
*/
private
String
content
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table tax_email
*
* @mbg.generated
*/
private
static
final
long
serialVersionUID
=
1L
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.id
*
* @return the value of tax_email.id
*
* @mbg.generated
*/
public
String
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.id
*
* @param id the value for tax_email.id
*
* @mbg.generated
*/
public
void
setId
(
String
id
)
{
this
.
id
=
id
==
null
?
null
:
id
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.hashkey
*
* @return the value of tax_email.hashkey
*
* @mbg.generated
*/
public
String
getHashkey
()
{
return
hashkey
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.hashkey
*
* @param hashkey the value for tax_email.hashkey
*
* @mbg.generated
*/
public
void
setHashkey
(
String
hashkey
)
{
this
.
hashkey
=
hashkey
==
null
?
null
:
hashkey
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.url
*
* @return the value of tax_email.url
*
* @mbg.generated
*/
public
String
getUrl
()
{
return
url
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.url
*
* @param url the value for tax_email.url
*
* @mbg.generated
*/
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
==
null
?
null
:
url
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.createTime
*
* @return the value of tax_email.createTime
*
* @mbg.generated
*/
public
Date
getCreatetime
()
{
return
createtime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.createTime
*
* @param createtime the value for tax_email.createTime
*
* @mbg.generated
*/
public
void
setCreatetime
(
Date
createtime
)
{
this
.
createtime
=
createtime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.updateTime
*
* @return the value of tax_email.updateTime
*
* @mbg.generated
*/
public
Date
getUpdatetime
()
{
return
updatetime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.updateTime
*
* @param updatetime the value for tax_email.updateTime
*
* @mbg.generated
*/
public
void
setUpdatetime
(
Date
updatetime
)
{
this
.
updatetime
=
updatetime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.create_by
*
* @return the value of tax_email.create_by
*
* @mbg.generated
*/
public
String
getCreateBy
()
{
return
createBy
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.create_by
*
* @param createBy the value for tax_email.create_by
*
* @mbg.generated
*/
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
==
null
?
null
:
createBy
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.update_by
*
* @return the value of tax_email.update_by
*
* @mbg.generated
*/
public
String
getUpdateBy
()
{
return
updateBy
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.update_by
*
* @param updateBy the value for tax_email.update_by
*
* @mbg.generated
*/
public
void
setUpdateBy
(
String
updateBy
)
{
this
.
updateBy
=
updateBy
==
null
?
null
:
updateBy
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.type
*
* @return the value of tax_email.type
*
* @mbg.generated
*/
public
Integer
getType
()
{
return
type
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.type
*
* @param type the value for tax_email.type
*
* @mbg.generated
*/
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.del_flag
*
* @return the value of tax_email.del_flag
*
* @mbg.generated
*/
public
Integer
getDelFlag
()
{
return
delFlag
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.del_flag
*
* @param delFlag the value for tax_email.del_flag
*
* @mbg.generated
*/
public
void
setDelFlag
(
Integer
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.view_num
*
* @return the value of tax_email.view_num
*
* @mbg.generated
*/
public
Long
getViewNum
()
{
return
viewNum
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.view_num
*
* @param viewNum the value for tax_email.view_num
*
* @mbg.generated
*/
public
void
setViewNum
(
Long
viewNum
)
{
this
.
viewNum
=
viewNum
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.attach_url
*
* @return the value of tax_email.attach_url
*
* @mbg.generated
*/
public
String
getAttachUrl
()
{
return
attachUrl
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.attach_url
*
* @param attachUrl the value for tax_email.attach_url
*
* @mbg.generated
*/
public
void
setAttachUrl
(
String
attachUrl
)
{
this
.
attachUrl
=
attachUrl
==
null
?
null
:
attachUrl
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.title
*
* @return the value of tax_email.title
*
* @mbg.generated
*/
public
String
getTitle
()
{
return
title
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.title
*
* @param title the value for tax_email.title
*
* @mbg.generated
*/
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
==
null
?
null
:
title
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tax_email.content
*
* @return the value of tax_email.content
*
* @mbg.generated
*/
public
String
getContent
()
{
return
content
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tax_email.content
*
* @param content the value for tax_email.content
*
* @mbg.generated
*/
public
void
setContent
(
String
content
)
{
this
.
content
=
content
==
null
?
null
:
content
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @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
(
", hashkey="
).
append
(
hashkey
);
sb
.
append
(
", url="
).
append
(
url
);
sb
.
append
(
", createtime="
).
append
(
createtime
);
sb
.
append
(
", updatetime="
).
append
(
updatetime
);
sb
.
append
(
", createBy="
).
append
(
createBy
);
sb
.
append
(
", updateBy="
).
append
(
updateBy
);
sb
.
append
(
", type="
).
append
(
type
);
sb
.
append
(
", delFlag="
).
append
(
delFlag
);
sb
.
append
(
", viewNum="
).
append
(
viewNum
);
sb
.
append
(
", attachUrl="
).
append
(
attachUrl
);
sb
.
append
(
", title="
).
append
(
title
);
sb
.
append
(
", content="
).
append
(
content
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/entity/TaxEmailExample.java
deleted
100644 → 0
View file @
18602f5c
package
pwc
.
taxtech
.
atms
.
entity
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
TaxEmailExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table tax_email
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table tax_email
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table tax_email
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
public
TaxEmailExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table tax_email
*
* @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 tax_email
*
* @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 tax_email
*
* @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 tax_email
*
* @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 tax_email
*
* @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
(
String
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
String
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
String
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
String
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLike
(
String
value
)
{
addCriterion
(
"id like"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotLike
(
String
value
)
{
addCriterion
(
"id not like"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyIsNull
()
{
addCriterion
(
"hashkey is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyIsNotNull
()
{
addCriterion
(
"hashkey is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyEqualTo
(
String
value
)
{
addCriterion
(
"hashkey ="
,
value
,
"hashkey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyNotEqualTo
(
String
value
)
{
addCriterion
(
"hashkey <>"
,
value
,
"hashkey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyGreaterThan
(
String
value
)
{
addCriterion
(
"hashkey >"
,
value
,
"hashkey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"hashkey >="
,
value
,
"hashkey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyLessThan
(
String
value
)
{
addCriterion
(
"hashkey <"
,
value
,
"hashkey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"hashkey <="
,
value
,
"hashkey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyLike
(
String
value
)
{
addCriterion
(
"hashkey like"
,
value
,
"hashkey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyNotLike
(
String
value
)
{
addCriterion
(
"hashkey not like"
,
value
,
"hashkey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyIn
(
List
<
String
>
values
)
{
addCriterion
(
"hashkey in"
,
values
,
"hashkey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"hashkey not in"
,
values
,
"hashkey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"hashkey between"
,
value1
,
value2
,
"hashkey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHashkeyNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"hashkey not between"
,
value1
,
value2
,
"hashkey"
);
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
;
}
public
Criteria
andCreatetimeIsNull
()
{
addCriterion
(
"createTime is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeIsNotNull
()
{
addCriterion
(
"createTime is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeEqualTo
(
Date
value
)
{
addCriterion
(
"createTime ="
,
value
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"createTime <>"
,
value
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeGreaterThan
(
Date
value
)
{
addCriterion
(
"createTime >"
,
value
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"createTime >="
,
value
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeLessThan
(
Date
value
)
{
addCriterion
(
"createTime <"
,
value
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"createTime <="
,
value
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"createTime in"
,
values
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"createTime not in"
,
values
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"createTime between"
,
value1
,
value2
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatetimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"createTime not between"
,
value1
,
value2
,
"createtime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatetimeIsNull
()
{
addCriterion
(
"updateTime is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatetimeIsNotNull
()
{
addCriterion
(
"updateTime is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatetimeEqualTo
(
Date
value
)
{
addCriterion
(
"updateTime ="
,
value
,
"updatetime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatetimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"updateTime <>"
,
value
,
"updatetime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatetimeGreaterThan
(
Date
value
)
{
addCriterion
(
"updateTime >"
,
value
,
"updatetime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatetimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"updateTime >="
,
value
,
"updatetime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatetimeLessThan
(
Date
value
)
{
addCriterion
(
"updateTime <"
,
value
,
"updatetime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatetimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"updateTime <="
,
value
,
"updatetime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatetimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"updateTime in"
,
values
,
"updatetime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatetimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"updateTime not in"
,
values
,
"updatetime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatetimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"updateTime between"
,
value1
,
value2
,
"updatetime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatetimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"updateTime not between"
,
value1
,
value2
,
"updatetime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByIsNull
()
{
addCriterion
(
"create_by is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByIsNotNull
()
{
addCriterion
(
"create_by is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByEqualTo
(
String
value
)
{
addCriterion
(
"create_by ="
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByNotEqualTo
(
String
value
)
{
addCriterion
(
"create_by <>"
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByGreaterThan
(
String
value
)
{
addCriterion
(
"create_by >"
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"create_by >="
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByLessThan
(
String
value
)
{
addCriterion
(
"create_by <"
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"create_by <="
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByLike
(
String
value
)
{
addCriterion
(
"create_by like"
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByNotLike
(
String
value
)
{
addCriterion
(
"create_by not like"
,
value
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByIn
(
List
<
String
>
values
)
{
addCriterion
(
"create_by in"
,
values
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"create_by not in"
,
values
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"create_by between"
,
value1
,
value2
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateByNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"create_by not between"
,
value1
,
value2
,
"createBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByIsNull
()
{
addCriterion
(
"update_by is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByIsNotNull
()
{
addCriterion
(
"update_by is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByEqualTo
(
String
value
)
{
addCriterion
(
"update_by ="
,
value
,
"updateBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByNotEqualTo
(
String
value
)
{
addCriterion
(
"update_by <>"
,
value
,
"updateBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByGreaterThan
(
String
value
)
{
addCriterion
(
"update_by >"
,
value
,
"updateBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"update_by >="
,
value
,
"updateBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByLessThan
(
String
value
)
{
addCriterion
(
"update_by <"
,
value
,
"updateBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"update_by <="
,
value
,
"updateBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByLike
(
String
value
)
{
addCriterion
(
"update_by like"
,
value
,
"updateBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByNotLike
(
String
value
)
{
addCriterion
(
"update_by not like"
,
value
,
"updateBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByIn
(
List
<
String
>
values
)
{
addCriterion
(
"update_by in"
,
values
,
"updateBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"update_by not in"
,
values
,
"updateBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"update_by between"
,
value1
,
value2
,
"updateBy"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateByNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"update_by not between"
,
value1
,
value2
,
"updateBy"
);
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
(
Integer
value
)
{
addCriterion
(
"type ="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotEqualTo
(
Integer
value
)
{
addCriterion
(
"type <>"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThan
(
Integer
value
)
{
addCriterion
(
"type >"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"type >="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThan
(
Integer
value
)
{
addCriterion
(
"type <"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"type <="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"type in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"type not in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"type between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"type not between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagIsNull
()
{
addCriterion
(
"del_flag is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagIsNotNull
()
{
addCriterion
(
"del_flag is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagEqualTo
(
Integer
value
)
{
addCriterion
(
"del_flag ="
,
value
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagNotEqualTo
(
Integer
value
)
{
addCriterion
(
"del_flag <>"
,
value
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagGreaterThan
(
Integer
value
)
{
addCriterion
(
"del_flag >"
,
value
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"del_flag >="
,
value
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagLessThan
(
Integer
value
)
{
addCriterion
(
"del_flag <"
,
value
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"del_flag <="
,
value
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"del_flag in"
,
values
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"del_flag not in"
,
values
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"del_flag between"
,
value1
,
value2
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDelFlagNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"del_flag not between"
,
value1
,
value2
,
"delFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andViewNumIsNull
()
{
addCriterion
(
"view_num is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andViewNumIsNotNull
()
{
addCriterion
(
"view_num is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andViewNumEqualTo
(
Long
value
)
{
addCriterion
(
"view_num ="
,
value
,
"viewNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andViewNumNotEqualTo
(
Long
value
)
{
addCriterion
(
"view_num <>"
,
value
,
"viewNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andViewNumGreaterThan
(
Long
value
)
{
addCriterion
(
"view_num >"
,
value
,
"viewNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andViewNumGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"view_num >="
,
value
,
"viewNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andViewNumLessThan
(
Long
value
)
{
addCriterion
(
"view_num <"
,
value
,
"viewNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andViewNumLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"view_num <="
,
value
,
"viewNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andViewNumIn
(
List
<
Long
>
values
)
{
addCriterion
(
"view_num in"
,
values
,
"viewNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andViewNumNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"view_num not in"
,
values
,
"viewNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andViewNumBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"view_num between"
,
value1
,
value2
,
"viewNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andViewNumNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"view_num not between"
,
value1
,
value2
,
"viewNum"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlIsNull
()
{
addCriterion
(
"attach_url is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlIsNotNull
()
{
addCriterion
(
"attach_url is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlEqualTo
(
String
value
)
{
addCriterion
(
"attach_url ="
,
value
,
"attachUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlNotEqualTo
(
String
value
)
{
addCriterion
(
"attach_url <>"
,
value
,
"attachUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlGreaterThan
(
String
value
)
{
addCriterion
(
"attach_url >"
,
value
,
"attachUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"attach_url >="
,
value
,
"attachUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlLessThan
(
String
value
)
{
addCriterion
(
"attach_url <"
,
value
,
"attachUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"attach_url <="
,
value
,
"attachUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlLike
(
String
value
)
{
addCriterion
(
"attach_url like"
,
value
,
"attachUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlNotLike
(
String
value
)
{
addCriterion
(
"attach_url not like"
,
value
,
"attachUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlIn
(
List
<
String
>
values
)
{
addCriterion
(
"attach_url in"
,
values
,
"attachUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"attach_url not in"
,
values
,
"attachUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"attach_url between"
,
value1
,
value2
,
"attachUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAttachUrlNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"attach_url not between"
,
value1
,
value2
,
"attachUrl"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleIsNull
()
{
addCriterion
(
"title is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleIsNotNull
()
{
addCriterion
(
"title is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleEqualTo
(
String
value
)
{
addCriterion
(
"title ="
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleNotEqualTo
(
String
value
)
{
addCriterion
(
"title <>"
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleGreaterThan
(
String
value
)
{
addCriterion
(
"title >"
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"title >="
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleLessThan
(
String
value
)
{
addCriterion
(
"title <"
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"title <="
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleLike
(
String
value
)
{
addCriterion
(
"title like"
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleNotLike
(
String
value
)
{
addCriterion
(
"title not like"
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleIn
(
List
<
String
>
values
)
{
addCriterion
(
"title in"
,
values
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"title not in"
,
values
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"title between"
,
value1
,
value2
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"title not between"
,
value1
,
value2
,
"title"
);
return
(
Criteria
)
this
;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table tax_email
*
* @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 tax_email
*
* @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-dao/src/main/resources/pwc/taxtech/atms/dao/PwcTaxLogMapper.xml
deleted
100644 → 0
View file @
18602f5c
<?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.PwcTaxLogMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.entity.PwcTaxLog"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"VARCHAR"
property=
"id"
/>
<result
column=
"email_id"
jdbcType=
"VARCHAR"
property=
"emailId"
/>
<result
column=
"createTime"
jdbcType=
"TIMESTAMP"
property=
"createtime"
/>
<result
column=
"del_flag"
jdbcType=
"INTEGER"
property=
"delFlag"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"pwc.taxtech.atms.entity.PwcTaxLog"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<result
column=
"user_id"
jdbcType=
"LONGVARCHAR"
property=
"userId"
/>
</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, email_id, createTime, del_flag, type
</sql>
<sql
id=
"Blob_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
user_id
</sql>
<select
id=
"selectByExampleWithBLOBs"
parameterType=
"pwc.taxtech.atms.entity.PwcTaxLogExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from pwc_tax_log
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.entity.PwcTaxLogExample"
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 pwc_tax_log
<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.String"
resultMap=
"ResultMapWithBLOBs"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
,
<include
refid=
"Blob_Column_List"
/>
from pwc_tax_log
where id = #{id,jdbcType=VARCHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from pwc_tax_log
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.entity.PwcTaxLogExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from pwc_tax_log
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.entity.PwcTaxLog"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into pwc_tax_log (id, email_id, createTime,
del_flag, type, user_id
)
values (#{id,jdbcType=VARCHAR}, #{emailId,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{userId,jdbcType=LONGVARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.entity.PwcTaxLog"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into pwc_tax_log
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"emailId != null"
>
email_id,
</if>
<if
test=
"createtime != null"
>
createTime,
</if>
<if
test=
"delFlag != null"
>
del_flag,
</if>
<if
test=
"type != null"
>
type,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=VARCHAR},
</if>
<if
test=
"emailId != null"
>
#{emailId,jdbcType=VARCHAR},
</if>
<if
test=
"createtime != null"
>
#{createtime,jdbcType=TIMESTAMP},
</if>
<if
test=
"delFlag != null"
>
#{delFlag,jdbcType=INTEGER},
</if>
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
<if
test=
"userId != null"
>
#{userId,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.entity.PwcTaxLogExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from pwc_tax_log
<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 pwc_tax_log
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=VARCHAR},
</if>
<if
test=
"record.emailId != null"
>
email_id = #{record.emailId,jdbcType=VARCHAR},
</if>
<if
test=
"record.createtime != null"
>
createTime = #{record.createtime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.delFlag != null"
>
del_flag = #{record.delFlag,jdbcType=INTEGER},
</if>
<if
test=
"record.type != null"
>
type = #{record.type,jdbcType=INTEGER},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=LONGVARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update pwc_tax_log
set id = #{record.id,jdbcType=VARCHAR},
email_id = #{record.emailId,jdbcType=VARCHAR},
createTime = #{record.createtime,jdbcType=TIMESTAMP},
del_flag = #{record.delFlag,jdbcType=INTEGER},
type = #{record.type,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=LONGVARCHAR}
<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 pwc_tax_log
set id = #{record.id,jdbcType=VARCHAR},
email_id = #{record.emailId,jdbcType=VARCHAR},
createTime = #{record.createtime,jdbcType=TIMESTAMP},
del_flag = #{record.delFlag,jdbcType=INTEGER},
type = #{record.type,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.entity.PwcTaxLog"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update pwc_tax_log
<set>
<if
test=
"emailId != null"
>
email_id = #{emailId,jdbcType=VARCHAR},
</if>
<if
test=
"createtime != null"
>
createTime = #{createtime,jdbcType=TIMESTAMP},
</if>
<if
test=
"delFlag != null"
>
del_flag = #{delFlag,jdbcType=INTEGER},
</if>
<if
test=
"type != null"
>
type = #{type,jdbcType=INTEGER},
</if>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"pwc.taxtech.atms.entity.PwcTaxLog"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update pwc_tax_log
set email_id = #{emailId,jdbcType=VARCHAR},
createTime = #{createtime,jdbcType=TIMESTAMP},
del_flag = #{delFlag,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER},
user_id = #{userId,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.entity.PwcTaxLog"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update pwc_tax_log
set email_id = #{emailId,jdbcType=VARCHAR},
createTime = #{createtime,jdbcType=TIMESTAMP},
del_flag = #{delFlag,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
</update>
<select
id=
"selectByExampleWithBLOBsWithRowbounds"
parameterType=
"pwc.taxtech.atms.entity.PwcTaxLogExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from pwc_tax_log
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.entity.PwcTaxLogExample"
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 pwc_tax_log
<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-dao/src/main/resources/pwc/taxtech/atms/dao/TaxEmailMapper.xml
deleted
100644 → 0
View file @
18602f5c
<?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.TaxEmailMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.entity.TaxEmail"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"VARCHAR"
property=
"id"
/>
<result
column=
"hashkey"
jdbcType=
"VARCHAR"
property=
"hashkey"
/>
<result
column=
"url"
jdbcType=
"VARCHAR"
property=
"url"
/>
<result
column=
"createTime"
jdbcType=
"TIMESTAMP"
property=
"createtime"
/>
<result
column=
"updateTime"
jdbcType=
"TIMESTAMP"
property=
"updatetime"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"update_by"
jdbcType=
"VARCHAR"
property=
"updateBy"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
<result
column=
"del_flag"
jdbcType=
"INTEGER"
property=
"delFlag"
/>
<result
column=
"view_num"
jdbcType=
"BIGINT"
property=
"viewNum"
/>
<result
column=
"attach_url"
jdbcType=
"VARCHAR"
property=
"attachUrl"
/>
<result
column=
"title"
jdbcType=
"VARCHAR"
property=
"title"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"pwc.taxtech.atms.entity.TaxEmail"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<result
column=
"content"
jdbcType=
"LONGVARCHAR"
property=
"content"
/>
</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, hashkey, url, createTime, updateTime, create_by, update_by, type, del_flag, view_num,
attach_url, title
</sql>
<sql
id=
"Blob_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
content
</sql>
<select
id=
"selectByExampleWithBLOBs"
parameterType=
"pwc.taxtech.atms.entity.TaxEmailExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from tax_email
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.entity.TaxEmailExample"
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 tax_email
<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.String"
resultMap=
"ResultMapWithBLOBs"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
,
<include
refid=
"Blob_Column_List"
/>
from tax_email
where id = #{id,jdbcType=VARCHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from tax_email
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.entity.TaxEmailExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from tax_email
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.entity.TaxEmail"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into tax_email (id, hashkey, url,
createTime, updateTime, create_by,
update_by, type, del_flag,
view_num, attach_url, title,
content)
values (#{id,jdbcType=VARCHAR}, #{hashkey,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR},
#{createtime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR},
#{updateBy,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{delFlag,jdbcType=INTEGER},
#{viewNum,jdbcType=BIGINT}, #{attachUrl,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
#{content,jdbcType=LONGVARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.entity.TaxEmail"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into tax_email
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"hashkey != null"
>
hashkey,
</if>
<if
test=
"url != null"
>
url,
</if>
<if
test=
"createtime != null"
>
createTime,
</if>
<if
test=
"updatetime != null"
>
updateTime,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"type != null"
>
type,
</if>
<if
test=
"delFlag != null"
>
del_flag,
</if>
<if
test=
"viewNum != null"
>
view_num,
</if>
<if
test=
"attachUrl != null"
>
attach_url,
</if>
<if
test=
"title != null"
>
title,
</if>
<if
test=
"content != null"
>
content,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=VARCHAR},
</if>
<if
test=
"hashkey != null"
>
#{hashkey,jdbcType=VARCHAR},
</if>
<if
test=
"url != null"
>
#{url,jdbcType=VARCHAR},
</if>
<if
test=
"createtime != null"
>
#{createtime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatetime != null"
>
#{updatetime,jdbcType=TIMESTAMP},
</if>
<if
test=
"createBy != null"
>
#{createBy,jdbcType=VARCHAR},
</if>
<if
test=
"updateBy != null"
>
#{updateBy,jdbcType=VARCHAR},
</if>
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
<if
test=
"delFlag != null"
>
#{delFlag,jdbcType=INTEGER},
</if>
<if
test=
"viewNum != null"
>
#{viewNum,jdbcType=BIGINT},
</if>
<if
test=
"attachUrl != null"
>
#{attachUrl,jdbcType=VARCHAR},
</if>
<if
test=
"title != null"
>
#{title,jdbcType=VARCHAR},
</if>
<if
test=
"content != null"
>
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.entity.TaxEmailExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from tax_email
<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 tax_email
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=VARCHAR},
</if>
<if
test=
"record.hashkey != null"
>
hashkey = #{record.hashkey,jdbcType=VARCHAR},
</if>
<if
test=
"record.url != null"
>
url = #{record.url,jdbcType=VARCHAR},
</if>
<if
test=
"record.createtime != null"
>
createTime = #{record.createtime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updatetime != null"
>
updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.createBy != null"
>
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if
test=
"record.updateBy != null"
>
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if
test=
"record.type != null"
>
type = #{record.type,jdbcType=INTEGER},
</if>
<if
test=
"record.delFlag != null"
>
del_flag = #{record.delFlag,jdbcType=INTEGER},
</if>
<if
test=
"record.viewNum != null"
>
view_num = #{record.viewNum,jdbcType=BIGINT},
</if>
<if
test=
"record.attachUrl != null"
>
attach_url = #{record.attachUrl,jdbcType=VARCHAR},
</if>
<if
test=
"record.title != null"
>
title = #{record.title,jdbcType=VARCHAR},
</if>
<if
test=
"record.content != null"
>
content = #{record.content,jdbcType=LONGVARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update tax_email
set id = #{record.id,jdbcType=VARCHAR},
hashkey = #{record.hashkey,jdbcType=VARCHAR},
url = #{record.url,jdbcType=VARCHAR},
createTime = #{record.createtime,jdbcType=TIMESTAMP},
updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
create_by = #{record.createBy,jdbcType=VARCHAR},
update_by = #{record.updateBy,jdbcType=VARCHAR},
type = #{record.type,jdbcType=INTEGER},
del_flag = #{record.delFlag,jdbcType=INTEGER},
view_num = #{record.viewNum,jdbcType=BIGINT},
attach_url = #{record.attachUrl,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
content = #{record.content,jdbcType=LONGVARCHAR}
<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 tax_email
set id = #{record.id,jdbcType=VARCHAR},
hashkey = #{record.hashkey,jdbcType=VARCHAR},
url = #{record.url,jdbcType=VARCHAR},
createTime = #{record.createtime,jdbcType=TIMESTAMP},
updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
create_by = #{record.createBy,jdbcType=VARCHAR},
update_by = #{record.updateBy,jdbcType=VARCHAR},
type = #{record.type,jdbcType=INTEGER},
del_flag = #{record.delFlag,jdbcType=INTEGER},
view_num = #{record.viewNum,jdbcType=BIGINT},
attach_url = #{record.attachUrl,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.entity.TaxEmail"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update tax_email
<set>
<if
test=
"hashkey != null"
>
hashkey = #{hashkey,jdbcType=VARCHAR},
</if>
<if
test=
"url != null"
>
url = #{url,jdbcType=VARCHAR},
</if>
<if
test=
"createtime != null"
>
createTime = #{createtime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatetime != null"
>
updateTime = #{updatetime,jdbcType=TIMESTAMP},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if
test=
"type != null"
>
type = #{type,jdbcType=INTEGER},
</if>
<if
test=
"delFlag != null"
>
del_flag = #{delFlag,jdbcType=INTEGER},
</if>
<if
test=
"viewNum != null"
>
view_num = #{viewNum,jdbcType=BIGINT},
</if>
<if
test=
"attachUrl != null"
>
attach_url = #{attachUrl,jdbcType=VARCHAR},
</if>
<if
test=
"title != null"
>
title = #{title,jdbcType=VARCHAR},
</if>
<if
test=
"content != null"
>
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"pwc.taxtech.atms.entity.TaxEmail"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update tax_email
set hashkey = #{hashkey,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
createTime = #{createtime,jdbcType=TIMESTAMP},
updateTime = #{updatetime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
del_flag = #{delFlag,jdbcType=INTEGER},
view_num = #{viewNum,jdbcType=BIGINT},
attach_url = #{attachUrl,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.entity.TaxEmail"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update tax_email
set hashkey = #{hashkey,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
createTime = #{createtime,jdbcType=TIMESTAMP},
updateTime = #{updatetime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
del_flag = #{delFlag,jdbcType=INTEGER},
view_num = #{viewNum,jdbcType=BIGINT},
attach_url = #{attachUrl,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select
id=
"selectByExampleWithBLOBsWithRowbounds"
parameterType=
"pwc.taxtech.atms.entity.TaxEmailExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from tax_email
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.entity.TaxEmailExample"
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 tax_email
<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-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/PeriodCellDataExtendsMapper.xml
View file @
f9d7fce0
...
@@ -113,14 +113,9 @@
...
@@ -113,14 +113,9 @@
<select
id =
"selectReportData"
resultType=
"pwc.taxtech.atms.dpo.AnalysisSalesValueDto"
>
<select
id =
"selectReportData"
resultType=
"pwc.taxtech.atms.dpo.AnalysisSalesValueDto"
>
select cell_template.row_index as rowIndex,
select cell_template.row_index as rowIndex,
cell_template.column_index as columnIndex,
cell_template.column_index as columnIndex,
case
cell_data.data as data,
when (LOCATE('-', cell_data.data) > 0) then
data_source.amount as manualAmount,
cell_data.data
data_source.keyin_data as keyinData
else
CONVERT(cell_data.data, decimal(18, 2)) +
CONVERT(if(data_source.amount is null, 0, data_source.amount), decimal(18, 2))
end as data
from period_cell_data cell_data
from period_cell_data cell_data
left join period_cell_template cell_template
left join period_cell_template cell_template
on cell_data.cell_template_id = cell_template.cell_template_id
on cell_data.cell_template_id = cell_template.cell_template_id
...
...
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