Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-enterprise
Commits
776c0582
Commit
776c0582
authored
Oct 15, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deleteFlag
parent
1a958608
Show whitespace changes
Inline
Side-by-side
Showing
103 changed files
with
768 additions
and
1021 deletions
+768
-1021
AccountBalanceRecordDTO.java
.../java/com/gic/enterprise/dto/AccountBalanceRecordDTO.java
+0
-14
AppletPageComponentDTO.java
...n/java/com/gic/enterprise/dto/AppletPageComponentDTO.java
+0
-14
AppletWechatMenuDTO.java
...main/java/com/gic/enterprise/dto/AppletWechatMenuDTO.java
+0
-14
AuditLogDTO.java
...api/src/main/java/com/gic/enterprise/dto/AuditLogDTO.java
+0
-14
BillingCouponCardDTO.java
...ain/java/com/gic/enterprise/dto/BillingCouponCardDTO.java
+0
-14
BillingPayInfoDTO.java
...c/main/java/com/gic/enterprise/dto/BillingPayInfoDTO.java
+6
-6
BillingRechargeRecordDTO.java
...java/com/gic/enterprise/dto/BillingRechargeRecordDTO.java
+0
-13
BillingSmsRecordDTO.java
...main/java/com/gic/enterprise/dto/BillingSmsRecordDTO.java
+0
-14
EnterpriseResourceRelDTO.java
...java/com/gic/enterprise/dto/EnterpriseResourceRelDTO.java
+6
-6
DataActuallyPaidConfigDTO.java
...om/gic/enterprise/dto/data/DataActuallyPaidConfigDTO.java
+6
-6
TabAccountStandardMapper.java
...m/gic/enterprise/dao/mapper/TabAccountStandardMapper.java
+0
-0
TabBillingAuditResultMapper.java
...ic/enterprise/dao/mapper/TabBillingAuditResultMapper.java
+0
-54
TabAccountStandard.java
...in/java/com/gic/enterprise/entity/TabAccountStandard.java
+6
-5
TabAppletCustomPage.java
...n/java/com/gic/enterprise/entity/TabAppletCustomPage.java
+11
-0
TabAppletPageComponent.java
...ava/com/gic/enterprise/entity/TabAppletPageComponent.java
+5
-5
TabAppletServiceConfig.java
...ava/com/gic/enterprise/entity/TabAppletServiceConfig.java
+6
-5
TabAppletWechatMenu.java
...n/java/com/gic/enterprise/entity/TabAppletWechatMenu.java
+5
-5
TabAuditLog.java
.../src/main/java/com/gic/enterprise/entity/TabAuditLog.java
+5
-5
TabAuditProcess.java
.../main/java/com/gic/enterprise/entity/TabAuditProcess.java
+5
-5
TabBillingAccountBalanceRecord.java
...gic/enterprise/entity/TabBillingAccountBalanceRecord.java
+5
-5
TabBillingDoubleCallingRecord.java
.../gic/enterprise/entity/TabBillingDoubleCallingRecord.java
+5
-5
TabBillingInternationalSmsRecord.java
...c/enterprise/entity/TabBillingInternationalSmsRecord.java
+5
-5
TabBillingOrder.java
.../main/java/com/gic/enterprise/entity/TabBillingOrder.java
+5
-5
TabBillingPayInfo.java
...ain/java/com/gic/enterprise/entity/TabBillingPayInfo.java
+5
-5
TabBillingRechargeRecord.java
...a/com/gic/enterprise/entity/TabBillingRechargeRecord.java
+5
-5
TabBillingRecordingStorageRecord.java
...c/enterprise/entity/TabBillingRecordingStorageRecord.java
+5
-5
TabBillingRefund.java
...main/java/com/gic/enterprise/entity/TabBillingRefund.java
+5
-5
TabBillingSmsPackageRecord.java
...com/gic/enterprise/entity/TabBillingSmsPackageRecord.java
+5
-5
TabBillingSmsRecord.java
...n/java/com/gic/enterprise/entity/TabBillingSmsRecord.java
+5
-5
TabBillingVoiceCodeRecord.java
.../com/gic/enterprise/entity/TabBillingVoiceCodeRecord.java
+5
-5
TabConfigRule.java
...rc/main/java/com/gic/enterprise/entity/TabConfigRule.java
+5
-5
TabConfigRuleEnterprise.java
...va/com/gic/enterprise/entity/TabConfigRuleEnterprise.java
+5
-5
TabConfigRuleEnterpriseRel.java
...com/gic/enterprise/entity/TabConfigRuleEnterpriseRel.java
+5
-5
TabConfigRuleRel.java
...main/java/com/gic/enterprise/entity/TabConfigRuleRel.java
+5
-5
TabCustomGuide.java
...c/main/java/com/gic/enterprise/entity/TabCustomGuide.java
+11
-0
TabCustomStore.java
...c/main/java/com/gic/enterprise/entity/TabCustomStore.java
+11
-0
TabCustomUdeskField.java
...n/java/com/gic/enterprise/entity/TabCustomUdeskField.java
+11
-0
TabDataActuallyPaidConfig.java
.../com/gic/enterprise/entity/TabDataActuallyPaidConfig.java
+5
-5
TabDataGenerationConfig.java
...va/com/gic/enterprise/entity/TabDataGenerationConfig.java
+5
-5
TabDataMemberConsumeConfig.java
...com/gic/enterprise/entity/TabDataMemberConsumeConfig.java
+5
-5
TabDataPerformanceConfig.java
...a/com/gic/enterprise/entity/TabDataPerformanceConfig.java
+5
-5
TabDataSingleEffectConfig.java
.../com/gic/enterprise/entity/TabDataSingleEffectConfig.java
+5
-5
TabDataWechatMemberConfig.java
.../com/gic/enterprise/entity/TabDataWechatMemberConfig.java
+5
-5
TabEnterpriseResourceRel.java
...a/com/gic/enterprise/entity/TabEnterpriseResourceRel.java
+5
-5
TabEnterpriseWhiteList.java
...ava/com/gic/enterprise/entity/TabEnterpriseWhiteList.java
+5
-5
AppletServiceConfigServiceImpl.java
...terprise/service/impl/AppletServiceConfigServiceImpl.java
+1
-2
AppletWechatMenuServiceImpl.java
.../enterprise/service/impl/AppletWechatMenuServiceImpl.java
+2
-2
AuditLogServiceImpl.java
.../com/gic/enterprise/service/impl/AuditLogServiceImpl.java
+1
-2
AuditProcessServiceImpl.java
.../gic/enterprise/service/impl/AuditProcessServiceImpl.java
+1
-2
BillingAccountBalanceRecordServiceImpl.java
.../service/impl/BillingAccountBalanceRecordServiceImpl.java
+1
-2
BillingDoubleCallingRecordServiceImpl.java
...e/service/impl/BillingDoubleCallingRecordServiceImpl.java
+1
-2
BillingOrderServiceImpl.java
.../gic/enterprise/service/impl/BillingOrderServiceImpl.java
+1
-2
BillingRechargeRecordServiceImpl.java
...rprise/service/impl/BillingRechargeRecordServiceImpl.java
+6
-8
BillingRecordingStorageRecordServiceImpl.java
...ervice/impl/BillingRecordingStorageRecordServiceImpl.java
+1
-2
BillingRefundServiceImpl.java
...gic/enterprise/service/impl/BillingRefundServiceImpl.java
+1
-2
BillingSmsPackageRecordServiceImpl.java
...rise/service/impl/BillingSmsPackageRecordServiceImpl.java
+1
-2
BillingSmsRecordServiceImpl.java
.../enterprise/service/impl/BillingSmsRecordServiceImpl.java
+1
-2
BillingVoiceCodeRecordServiceImpl.java
...prise/service/impl/BillingVoiceCodeRecordServiceImpl.java
+1
-2
ConfigRuleServiceImpl.java
...om/gic/enterprise/service/impl/ConfigRuleServiceImpl.java
+1
-1
CustomStoreServiceImpl.java
...m/gic/enterprise/service/impl/CustomStoreServiceImpl.java
+1
-1
DataActuallyPaidConfigServiceImpl.java
...prise/service/impl/DataActuallyPaidConfigServiceImpl.java
+3
-3
EnterpriseResourceRelServiceImpl.java
...rprise/service/impl/EnterpriseResourceRelServiceImpl.java
+1
-1
EnterpriseWhiteListServiceImpl.java
...terprise/service/impl/EnterpriseWhiteListServiceImpl.java
+2
-2
AppletCustomPageApiServiceImpl.java
...se/service/outer/impl/AppletCustomPageApiServiceImpl.java
+1
-1
ConfigRuleApiServiceImpl.java
...terprise/service/outer/impl/ConfigRuleApiServiceImpl.java
+3
-3
ConfigRuleEnterpriseApiServiceImpl.java
...ervice/outer/impl/ConfigRuleEnterpriseApiServiceImpl.java
+3
-3
AccountBalanceStrategy.java
...rprise/service/outer/impl/pay/AccountBalanceStrategy.java
+10
-11
OfflineStrategy.java
...ic/enterprise/service/outer/impl/pay/OfflineStrategy.java
+2
-2
WxPayStrategy.java
.../gic/enterprise/service/outer/impl/pay/WxPayStrategy.java
+1
-1
TabAccountStandardMapper.xml
...ce/src/main/resources/mapper/TabAccountStandardMapper.xml
+13
-12
TabAppletCustomPageMapper.xml
...e/src/main/resources/mapper/TabAppletCustomPageMapper.xml
+23
-8
TabAppletPageComponentMapper.xml
...rc/main/resources/mapper/TabAppletPageComponentMapper.xml
+17
-17
TabAppletServiceConfigMapper.xml
...rc/main/resources/mapper/TabAppletServiceConfigMapper.xml
+17
-17
TabAppletWechatMenuMapper.xml
...e/src/main/resources/mapper/TabAppletWechatMenuMapper.xml
+16
-16
TabAuditLogMapper.xml
...e-service/src/main/resources/mapper/TabAuditLogMapper.xml
+14
-14
TabAuditProcessMapper.xml
...rvice/src/main/resources/mapper/TabAuditProcessMapper.xml
+13
-12
TabBillingAccountBalanceRecordMapper.xml
...resources/mapper/TabBillingAccountBalanceRecordMapper.xml
+14
-14
TabBillingAuditResultMapper.xml
...src/main/resources/mapper/TabBillingAuditResultMapper.xml
+0
-198
TabBillingDoubleCallingRecordMapper.xml
.../resources/mapper/TabBillingDoubleCallingRecordMapper.xml
+14
-14
TabBillingInternationalSmsRecordMapper.xml
...sources/mapper/TabBillingInternationalSmsRecordMapper.xml
+14
-14
TabBillingOrderMapper.xml
...rvice/src/main/resources/mapper/TabBillingOrderMapper.xml
+12
-12
TabBillingPayInfoMapper.xml
...ice/src/main/resources/mapper/TabBillingPayInfoMapper.xml
+21
-20
TabBillingRechargeRecordMapper.xml
.../main/resources/mapper/TabBillingRechargeRecordMapper.xml
+15
-14
TabBillingRecordingStorageRecordMapper.xml
...sources/mapper/TabBillingRecordingStorageRecordMapper.xml
+12
-12
TabBillingRefundMapper.xml
...vice/src/main/resources/mapper/TabBillingRefundMapper.xml
+15
-14
TabBillingSmsPackageRecordMapper.xml
...ain/resources/mapper/TabBillingSmsPackageRecordMapper.xml
+14
-14
TabBillingSmsRecordMapper.xml
...e/src/main/resources/mapper/TabBillingSmsRecordMapper.xml
+15
-15
TabBillingVoiceCodeRecordMapper.xml
...main/resources/mapper/TabBillingVoiceCodeRecordMapper.xml
+14
-14
TabConfigRuleEnterpriseMapper.xml
...c/main/resources/mapper/TabConfigRuleEnterpriseMapper.xml
+18
-17
TabConfigRuleEnterpriseRelMapper.xml
...ain/resources/mapper/TabConfigRuleEnterpriseRelMapper.xml
+19
-19
TabConfigRuleMapper.xml
...service/src/main/resources/mapper/TabConfigRuleMapper.xml
+20
-19
TabConfigRuleRelMapper.xml
...vice/src/main/resources/mapper/TabConfigRuleRelMapper.xml
+17
-16
TabCustomGuideMapper.xml
...ervice/src/main/resources/mapper/TabCustomGuideMapper.xml
+16
-5
TabCustomStoreMapper.xml
...ervice/src/main/resources/mapper/TabCustomStoreMapper.xml
+19
-6
TabCustomUdeskFieldMapper.xml
...e/src/main/resources/mapper/TabCustomUdeskFieldMapper.xml
+17
-7
TabDataActuallyPaidConfigMapper.xml
...main/resources/mapper/TabDataActuallyPaidConfigMapper.xml
+16
-15
TabDataGenerationConfigMapper.xml
...c/main/resources/mapper/TabDataGenerationConfigMapper.xml
+15
-14
TabDataMemberConsumeConfigMapper.xml
...ain/resources/mapper/TabDataMemberConsumeConfigMapper.xml
+13
-12
TabDataPerformanceConfigMapper.xml
.../main/resources/mapper/TabDataPerformanceConfigMapper.xml
+13
-12
TabDataSingleEffectConfigMapper.xml
...main/resources/mapper/TabDataSingleEffectConfigMapper.xml
+15
-14
TabDataWechatMemberConfigMapper.xml
...main/resources/mapper/TabDataWechatMemberConfigMapper.xml
+14
-13
TabEnterpriseResourceRelMapper.xml
.../main/resources/mapper/TabEnterpriseResourceRelMapper.xml
+15
-14
TabEnterpriseWhiteListMapper.xml
...rc/main/resources/mapper/TabEnterpriseWhiteListMapper.xml
+12
-12
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/AccountBalanceRecordDTO.java
View file @
776c0582
...
@@ -28,11 +28,6 @@ public class AccountBalanceRecordDTO implements Serializable {
...
@@ -28,11 +28,6 @@ public class AccountBalanceRecordDTO implements Serializable {
private
Integer
payType
=
0
;
private
Integer
payType
=
0
;
/**
/**
*
*/
private
Integer
status
;
/**
* 产品类型
* 产品类型
*/
*/
private
Integer
productType
=
0
;
private
Integer
productType
=
0
;
...
@@ -107,14 +102,6 @@ public class AccountBalanceRecordDTO implements Serializable {
...
@@ -107,14 +102,6 @@ public class AccountBalanceRecordDTO implements Serializable {
this
.
payType
=
payType
;
this
.
payType
=
payType
;
}
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Integer
getProductType
()
{
public
Integer
getProductType
()
{
return
productType
;
return
productType
;
}
}
...
@@ -226,7 +213,6 @@ public class AccountBalanceRecordDTO implements Serializable {
...
@@ -226,7 +213,6 @@ public class AccountBalanceRecordDTO implements Serializable {
"accountBalanceRecordId="
+
accountBalanceRecordId
+
"accountBalanceRecordId="
+
accountBalanceRecordId
+
", productName='"
+
productName
+
'\''
+
", productName='"
+
productName
+
'\''
+
", payType="
+
payType
+
", payType="
+
payType
+
", status="
+
status
+
", productType="
+
productType
+
", productType="
+
productType
+
", billType="
+
billType
+
", billType="
+
billType
+
", createTime="
+
createTime
+
", createTime="
+
createTime
+
...
...
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/AppletPageComponentDTO.java
View file @
776c0582
...
@@ -39,11 +39,6 @@ public class AppletPageComponentDTO implements Serializable{
...
@@ -39,11 +39,6 @@ public class AppletPageComponentDTO implements Serializable{
private
Integer
componentIndex
;
private
Integer
componentIndex
;
/**
/**
* 1开启,0无效
*/
private
Integer
status
;
/**
*
*
*/
*/
private
Date
createTime
;
private
Date
createTime
;
...
@@ -98,14 +93,6 @@ public class AppletPageComponentDTO implements Serializable{
...
@@ -98,14 +93,6 @@ public class AppletPageComponentDTO implements Serializable{
this
.
componentIndex
=
componentIndex
;
this
.
componentIndex
=
componentIndex
;
}
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
return
createTime
;
return
createTime
;
}
}
...
@@ -138,7 +125,6 @@ public class AppletPageComponentDTO implements Serializable{
...
@@ -138,7 +125,6 @@ public class AppletPageComponentDTO implements Serializable{
", pageId="
+
pageId
+
", pageId="
+
pageId
+
", componentType='"
+
componentType
+
'\''
+
", componentType='"
+
componentType
+
'\''
+
", componentIndex="
+
componentIndex
+
", componentIndex="
+
componentIndex
+
", status="
+
status
+
", createTime="
+
createTime
+
", createTime="
+
createTime
+
", updateTime="
+
updateTime
+
", updateTime="
+
updateTime
+
", setting='"
+
setting
+
'\''
+
", setting='"
+
setting
+
'\''
+
...
...
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/AppletWechatMenuDTO.java
View file @
776c0582
...
@@ -71,11 +71,6 @@ public class AppletWechatMenuDTO implements Serializable{
...
@@ -71,11 +71,6 @@ public class AppletWechatMenuDTO implements Serializable{
/**
/**
*
*
*/
*/
private
Integer
status
;
/**
*
*/
private
Date
createTime
;
private
Date
createTime
;
/**
/**
...
@@ -176,14 +171,6 @@ public class AppletWechatMenuDTO implements Serializable{
...
@@ -176,14 +171,6 @@ public class AppletWechatMenuDTO implements Serializable{
this
.
sort
=
sort
;
this
.
sort
=
sort
;
}
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
return
createTime
;
return
createTime
;
}
}
...
@@ -232,7 +219,6 @@ public class AppletWechatMenuDTO implements Serializable{
...
@@ -232,7 +219,6 @@ public class AppletWechatMenuDTO implements Serializable{
", appKey='"
+
appKey
+
'\''
+
", appKey='"
+
appKey
+
'\''
+
", parentMenuId="
+
parentMenuId
+
", parentMenuId="
+
parentMenuId
+
", sort="
+
sort
+
", sort="
+
sort
+
", status="
+
status
+
", createTime="
+
createTime
+
", createTime="
+
createTime
+
", updateTime="
+
updateTime
+
", updateTime="
+
updateTime
+
", child="
+
child
+
", child="
+
child
+
...
...
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/AuditLogDTO.java
View file @
776c0582
...
@@ -85,11 +85,6 @@ public class AuditLogDTO implements Serializable {
...
@@ -85,11 +85,6 @@ public class AuditLogDTO implements Serializable {
/**
/**
*
*
*/
*/
private
Integer
status
;
/**
*
*/
private
Date
createTime
;
private
Date
createTime
;
/**
/**
...
@@ -216,14 +211,6 @@ public class AuditLogDTO implements Serializable {
...
@@ -216,14 +211,6 @@ public class AuditLogDTO implements Serializable {
this
.
auditResult
=
auditResult
;
this
.
auditResult
=
auditResult
;
}
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
return
createTime
;
return
createTime
;
}
}
...
@@ -336,7 +323,6 @@ public class AuditLogDTO implements Serializable {
...
@@ -336,7 +323,6 @@ public class AuditLogDTO implements Serializable {
", auditorPhone='"
+
auditorPhone
+
'\''
+
", auditorPhone='"
+
auditorPhone
+
'\''
+
", auditTime="
+
auditTime
+
", auditTime="
+
auditTime
+
", auditResult="
+
auditResult
+
", auditResult="
+
auditResult
+
", status="
+
status
+
", createTime="
+
createTime
+
", createTime="
+
createTime
+
", updateTime="
+
updateTime
+
", updateTime="
+
updateTime
+
", extraInfo='"
+
extraInfo
+
'\''
+
", extraInfo='"
+
extraInfo
+
'\''
+
...
...
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/BillingCouponCardDTO.java
View file @
776c0582
...
@@ -27,11 +27,6 @@ public class BillingCouponCardDTO implements Serializable {
...
@@ -27,11 +27,6 @@ public class BillingCouponCardDTO implements Serializable {
/**
/**
*
*
*/
*/
private
Integer
status
;
/**
*
*/
private
Date
createTime
;
private
Date
createTime
;
/**
/**
...
@@ -90,14 +85,6 @@ public class BillingCouponCardDTO implements Serializable {
...
@@ -90,14 +85,6 @@ public class BillingCouponCardDTO implements Serializable {
this
.
enterpriseId
=
enterpriseId
;
this
.
enterpriseId
=
enterpriseId
;
}
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
return
createTime
;
return
createTime
;
}
}
...
@@ -175,7 +162,6 @@ public class BillingCouponCardDTO implements Serializable {
...
@@ -175,7 +162,6 @@ public class BillingCouponCardDTO implements Serializable {
return
"BillingCouponCardDTO{"
+
return
"BillingCouponCardDTO{"
+
"couponCardId="
+
couponCardId
+
"couponCardId="
+
couponCardId
+
", enterpriseId="
+
enterpriseId
+
", enterpriseId="
+
enterpriseId
+
", status="
+
status
+
", createTime="
+
createTime
+
", createTime="
+
createTime
+
", updateTime="
+
updateTime
+
", updateTime="
+
updateTime
+
", couponCardName='"
+
couponCardName
+
'\''
+
", couponCardName='"
+
couponCardName
+
'\''
+
...
...
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/BillingPayInfoDTO.java
View file @
776c0582
...
@@ -79,7 +79,7 @@ public class BillingPayInfoDTO implements Serializable{
...
@@ -79,7 +79,7 @@ public class BillingPayInfoDTO implements Serializable{
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -207,12 +207,12 @@ public class BillingPayInfoDTO implements Serializable{
...
@@ -207,12 +207,12 @@ public class BillingPayInfoDTO implements Serializable{
this
.
invoiceStatus
=
invoiceStatus
;
this
.
invoiceStatus
=
invoiceStatus
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
@@ -295,7 +295,7 @@ public class BillingPayInfoDTO implements Serializable{
...
@@ -295,7 +295,7 @@ public class BillingPayInfoDTO implements Serializable{
", codeUrl='"
+
codeUrl
+
'\''
+
", codeUrl='"
+
codeUrl
+
'\''
+
", prepayId='"
+
prepayId
+
'\''
+
", prepayId='"
+
prepayId
+
'\''
+
", invoiceStatus="
+
invoiceStatus
+
", invoiceStatus="
+
invoiceStatus
+
", status="
+
status
+
", status="
+
deleteFlag
+
", createTime="
+
createTime
+
", createTime="
+
createTime
+
", updateTime="
+
updateTime
+
", updateTime="
+
updateTime
+
", buyType="
+
buyType
+
", buyType="
+
buyType
+
...
...
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/BillingRechargeRecordDTO.java
View file @
776c0582
...
@@ -41,10 +41,6 @@ public class BillingRechargeRecordDTO implements Serializable {
...
@@ -41,10 +41,6 @@ public class BillingRechargeRecordDTO implements Serializable {
*/
*/
private
Integer
payInfoId
;
private
Integer
payInfoId
;
/**
/**
*
*/
private
Integer
status
;
/**
* 发起方 1商户 2运维
* 发起方 1商户 2运维
*/
*/
private
Integer
initiator
;
private
Integer
initiator
;
...
@@ -155,14 +151,6 @@ public class BillingRechargeRecordDTO implements Serializable {
...
@@ -155,14 +151,6 @@ public class BillingRechargeRecordDTO implements Serializable {
this
.
payInfoId
=
payInfoId
;
this
.
payInfoId
=
payInfoId
;
}
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Integer
getInitiator
()
{
public
Integer
getInitiator
()
{
return
initiator
;
return
initiator
;
}
}
...
@@ -333,7 +321,6 @@ public class BillingRechargeRecordDTO implements Serializable {
...
@@ -333,7 +321,6 @@ public class BillingRechargeRecordDTO implements Serializable {
", totalFeePaid="
+
totalFeePaid
+
", totalFeePaid="
+
totalFeePaid
+
", payType="
+
payType
+
", payType="
+
payType
+
", payInfoId="
+
payInfoId
+
", payInfoId="
+
payInfoId
+
", status="
+
status
+
", initiator="
+
initiator
+
", initiator="
+
initiator
+
", initiatorUser="
+
initiatorUser
+
", initiatorUser="
+
initiatorUser
+
", initiatorName='"
+
initiatorName
+
'\''
+
", initiatorName='"
+
initiatorName
+
'\''
+
...
...
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/BillingSmsRecordDTO.java
View file @
776c0582
...
@@ -16,11 +16,6 @@ public class BillingSmsRecordDTO implements Serializable {
...
@@ -16,11 +16,6 @@ public class BillingSmsRecordDTO implements Serializable {
private
Long
smsRecordId
;
private
Long
smsRecordId
;
/**
/**
*
*/
private
Integer
status
;
/**
* 发送时间
* 发送时间
*/
*/
private
Date
sendTime
;
private
Date
sendTime
;
...
@@ -123,14 +118,6 @@ public class BillingSmsRecordDTO implements Serializable {
...
@@ -123,14 +118,6 @@ public class BillingSmsRecordDTO implements Serializable {
this
.
smsRecordId
=
smsRecordId
;
this
.
smsRecordId
=
smsRecordId
;
}
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getSendTime
()
{
public
Date
getSendTime
()
{
return
sendTime
;
return
sendTime
;
}
}
...
@@ -287,7 +274,6 @@ public class BillingSmsRecordDTO implements Serializable {
...
@@ -287,7 +274,6 @@ public class BillingSmsRecordDTO implements Serializable {
public
String
toString
()
{
public
String
toString
()
{
return
"BillingSmsRecordDTO{"
+
return
"BillingSmsRecordDTO{"
+
"smsRecordId="
+
smsRecordId
+
"smsRecordId="
+
smsRecordId
+
", status="
+
status
+
", sendTime="
+
sendTime
+
", sendTime="
+
sendTime
+
", receivePhone='"
+
receivePhone
+
'\''
+
", receivePhone='"
+
receivePhone
+
'\''
+
", payType="
+
payType
+
", payType="
+
payType
+
...
...
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/EnterpriseResourceRelDTO.java
View file @
776c0582
...
@@ -36,7 +36,7 @@ public class EnterpriseResourceRelDTO implements Serializable{
...
@@ -36,7 +36,7 @@ public class EnterpriseResourceRelDTO implements Serializable{
/**
/**
* 状态1:有效 0:无效
* 状态1:有效 0:无效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -85,12 +85,12 @@ public class EnterpriseResourceRelDTO implements Serializable{
...
@@ -85,12 +85,12 @@ public class EnterpriseResourceRelDTO implements Serializable{
this
.
enterpriseId
=
enterpriseId
;
this
.
enterpriseId
=
enterpriseId
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
@@ -124,7 +124,7 @@ public class EnterpriseResourceRelDTO implements Serializable{
...
@@ -124,7 +124,7 @@ public class EnterpriseResourceRelDTO implements Serializable{
", resourceCode='"
+
resourceCode
+
'\''
+
", resourceCode='"
+
resourceCode
+
'\''
+
", resourceName='"
+
resourceName
+
'\''
+
", resourceName='"
+
resourceName
+
'\''
+
", enterpriseId="
+
enterpriseId
+
", enterpriseId="
+
enterpriseId
+
", status="
+
status
+
", status="
+
deleteFlag
+
", createTime="
+
createTime
+
", createTime="
+
createTime
+
", updateTime="
+
updateTime
+
", updateTime="
+
updateTime
+
", resourceSwitch="
+
resourceSwitch
+
", resourceSwitch="
+
resourceSwitch
+
...
...
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/data/DataActuallyPaidConfigDTO.java
View file @
776c0582
...
@@ -41,7 +41,7 @@ public class DataActuallyPaidConfigDTO implements Serializable{
...
@@ -41,7 +41,7 @@ public class DataActuallyPaidConfigDTO implements Serializable{
/**
/**
* 1:有效
* 1:有效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -93,12 +93,12 @@ public class DataActuallyPaidConfigDTO implements Serializable{
...
@@ -93,12 +93,12 @@ public class DataActuallyPaidConfigDTO implements Serializable{
return
this
;
return
this
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
DataActuallyPaidConfigDTO
set
Status
(
Integer
status
)
{
public
DataActuallyPaidConfigDTO
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
return
this
;
return
this
;
}
}
...
@@ -137,7 +137,7 @@ public class DataActuallyPaidConfigDTO implements Serializable{
...
@@ -137,7 +137,7 @@ public class DataActuallyPaidConfigDTO implements Serializable{
", classify="
+
classify
+
", classify="
+
classify
+
", configStatus="
+
configStatus
+
", configStatus="
+
configStatus
+
", hasConfig="
+
hasConfig
+
", hasConfig="
+
hasConfig
+
", status="
+
status
+
", status="
+
deleteFlag
+
", createTime="
+
createTime
+
", createTime="
+
createTime
+
", updateTime="
+
updateTime
+
", updateTime="
+
updateTime
+
'}'
;
'}'
;
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/dao/mapper/TabAccountStandardMapper.java
View file @
776c0582
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/dao/mapper/TabBillingAuditResultMapper.java
deleted
100644 → 0
View file @
1a958608
package
com
.
gic
.
enterprise
.
dao
.
mapper
;
import
com.gic.enterprise.entity.TabBillingAuditResult
;
/**
*
* @ClassName: TabBillingAuditResultMapper
* @Description:
* @author taogs
* @date 2020/9/11 15:37
*/
public
interface
TabBillingAuditResultMapper
{
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insert
(
TabBillingAuditResult
record
);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insertSelective
(
TabBillingAuditResult
record
);
/**
* 根据主键查询
*
* @param auditResultId 主键
* @return 实体对象
*/
TabBillingAuditResult
selectByPrimaryKey
(
Integer
auditResultId
);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKeySelective
(
TabBillingAuditResult
record
);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKey
(
TabBillingAuditResult
record
);
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabAccountStandard.java
View file @
776c0582
...
@@ -43,7 +43,7 @@ public class TabAccountStandard {
...
@@ -43,7 +43,7 @@ public class TabAccountStandard {
/**
/**
* 状态(0:删除,1:有效)
* 状态(0:删除,1:有效)
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
public
Integer
getStandardId
()
{
public
Integer
getStandardId
()
{
return
standardId
;
return
standardId
;
...
@@ -93,11 +93,11 @@ public class TabAccountStandard {
...
@@ -93,11 +93,11 @@ public class TabAccountStandard {
this
.
updateTime
=
updateTime
;
this
.
updateTime
=
updateTime
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
}
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabAppletCustomPage.java
View file @
776c0582
...
@@ -75,6 +75,8 @@ public class TabAppletCustomPage {
...
@@ -75,6 +75,8 @@ public class TabAppletCustomPage {
*/
*/
private
String
setting
;
private
String
setting
;
private
Integer
deleteFlag
;
public
Integer
getPageId
()
{
public
Integer
getPageId
()
{
return
pageId
;
return
pageId
;
}
}
...
@@ -180,4 +182,12 @@ public class TabAppletCustomPage {
...
@@ -180,4 +182,12 @@ public class TabAppletCustomPage {
this
.
quickGuideSwitch
=
quickGuideSwitch
;
this
.
quickGuideSwitch
=
quickGuideSwitch
;
return
this
;
return
this
;
}
}
public
Integer
getDeleteFlag
()
{
return
deleteFlag
;
}
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
}
}
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabAppletPageComponent.java
View file @
776c0582
...
@@ -38,7 +38,7 @@ public class TabAppletPageComponent {
...
@@ -38,7 +38,7 @@ public class TabAppletPageComponent {
/**
/**
* 1开启,0无效
* 1开启,0无效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -95,12 +95,12 @@ public class TabAppletPageComponent {
...
@@ -95,12 +95,12 @@ public class TabAppletPageComponent {
this
.
componentIndex
=
componentIndex
;
this
.
componentIndex
=
componentIndex
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabAppletServiceConfig.java
View file @
776c0582
...
@@ -53,7 +53,7 @@ public class TabAppletServiceConfig {
...
@@ -53,7 +53,7 @@ public class TabAppletServiceConfig {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
public
Integer
getAppletServiceId
()
{
public
Integer
getAppletServiceId
()
{
return
appletServiceId
;
return
appletServiceId
;
...
@@ -119,11 +119,11 @@ public class TabAppletServiceConfig {
...
@@ -119,11 +119,11 @@ public class TabAppletServiceConfig {
this
.
updateTime
=
updateTime
;
this
.
updateTime
=
updateTime
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
}
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabAppletWechatMenu.java
View file @
776c0582
...
@@ -68,7 +68,7 @@ public class TabAppletWechatMenu {
...
@@ -68,7 +68,7 @@ public class TabAppletWechatMenu {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -168,12 +168,12 @@ public class TabAppletWechatMenu {
...
@@ -168,12 +168,12 @@ public class TabAppletWechatMenu {
this
.
sort
=
sort
;
this
.
sort
=
sort
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabAuditLog.java
View file @
776c0582
...
@@ -73,7 +73,7 @@ public class TabAuditLog {
...
@@ -73,7 +73,7 @@ public class TabAuditLog {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -201,12 +201,12 @@ public class TabAuditLog {
...
@@ -201,12 +201,12 @@ public class TabAuditLog {
this
.
auditResult
=
auditResult
;
this
.
auditResult
=
auditResult
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabAuditProcess.java
View file @
776c0582
...
@@ -53,7 +53,7 @@ public class TabAuditProcess {
...
@@ -53,7 +53,7 @@ public class TabAuditProcess {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -129,12 +129,12 @@ public class TabAuditProcess {
...
@@ -129,12 +129,12 @@ public class TabAuditProcess {
this
.
auditorType
=
auditorType
;
this
.
auditorType
=
auditorType
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabBillingAccountBalanceRecord.java
View file @
776c0582
...
@@ -28,7 +28,7 @@ public class TabBillingAccountBalanceRecord {
...
@@ -28,7 +28,7 @@ public class TabBillingAccountBalanceRecord {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
* 产品类型 1:充值,2:短信套餐,3:服务,4:拓展包,5:套餐包
* 产品类型 1:充值,2:短信套餐,3:服务,4:拓展包,5:套餐包
...
@@ -119,12 +119,12 @@ public class TabBillingAccountBalanceRecord {
...
@@ -119,12 +119,12 @@ public class TabBillingAccountBalanceRecord {
this
.
payType
=
payType
;
this
.
payType
=
payType
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Integer
getProductType
()
{
public
Integer
getProductType
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabBillingDoubleCallingRecord.java
View file @
776c0582
...
@@ -38,7 +38,7 @@ public class TabBillingDoubleCallingRecord {
...
@@ -38,7 +38,7 @@ public class TabBillingDoubleCallingRecord {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -160,12 +160,12 @@ public class TabBillingDoubleCallingRecord {
...
@@ -160,12 +160,12 @@ public class TabBillingDoubleCallingRecord {
this
.
fee
=
fee
;
this
.
fee
=
fee
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabBillingInternationalSmsRecord.java
View file @
776c0582
...
@@ -21,7 +21,7 @@ public class TabBillingInternationalSmsRecord {
...
@@ -21,7 +21,7 @@ public class TabBillingInternationalSmsRecord {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
* 发送时间
* 发送时间
...
@@ -181,12 +181,12 @@ public class TabBillingInternationalSmsRecord {
...
@@ -181,12 +181,12 @@ public class TabBillingInternationalSmsRecord {
this
.
smsRecordId
=
smsRecordId
;
this
.
smsRecordId
=
smsRecordId
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getSendTime
()
{
public
Date
getSendTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabBillingOrder.java
View file @
776c0582
...
@@ -68,7 +68,7 @@ public class TabBillingOrder {
...
@@ -68,7 +68,7 @@ public class TabBillingOrder {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -183,12 +183,12 @@ public class TabBillingOrder {
...
@@ -183,12 +183,12 @@ public class TabBillingOrder {
this
.
auditResultId
=
auditResultId
;
this
.
auditResultId
=
auditResultId
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabBillingPayInfo.java
View file @
776c0582
...
@@ -78,7 +78,7 @@ public class TabBillingPayInfo {
...
@@ -78,7 +78,7 @@ public class TabBillingPayInfo {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -219,12 +219,12 @@ public class TabBillingPayInfo {
...
@@ -219,12 +219,12 @@ public class TabBillingPayInfo {
this
.
invoiceStatus
=
invoiceStatus
;
this
.
invoiceStatus
=
invoiceStatus
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabBillingRechargeRecord.java
View file @
776c0582
...
@@ -53,7 +53,7 @@ public class TabBillingRechargeRecord {
...
@@ -53,7 +53,7 @@ public class TabBillingRechargeRecord {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
* 发起方 1:商户 2运维后台
* 发起方 1:商户 2运维后台
...
@@ -159,12 +159,12 @@ public class TabBillingRechargeRecord {
...
@@ -159,12 +159,12 @@ public class TabBillingRechargeRecord {
this
.
payInfoId
=
payInfoId
;
this
.
payInfoId
=
payInfoId
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Integer
getInitiator
()
{
public
Integer
getInitiator
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabBillingRecordingStorageRecord.java
View file @
776c0582
...
@@ -33,7 +33,7 @@ public class TabBillingRecordingStorageRecord {
...
@@ -33,7 +33,7 @@ public class TabBillingRecordingStorageRecord {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -157,12 +157,12 @@ public class TabBillingRecordingStorageRecord {
...
@@ -157,12 +157,12 @@ public class TabBillingRecordingStorageRecord {
this
.
fee
=
fee
;
this
.
fee
=
fee
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabBillingRefund.java
View file @
776c0582
...
@@ -68,7 +68,7 @@ public class TabBillingRefund {
...
@@ -68,7 +68,7 @@ public class TabBillingRefund {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -173,12 +173,12 @@ public class TabBillingRefund {
...
@@ -173,12 +173,12 @@ public class TabBillingRefund {
this
.
timeEnd
=
timeEnd
;
this
.
timeEnd
=
timeEnd
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabBillingSmsPackageRecord.java
View file @
776c0582
...
@@ -43,7 +43,7 @@ public class TabBillingSmsPackageRecord {
...
@@ -43,7 +43,7 @@ public class TabBillingSmsPackageRecord {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -143,12 +143,12 @@ public class TabBillingSmsPackageRecord {
...
@@ -143,12 +143,12 @@ public class TabBillingSmsPackageRecord {
this
.
payType
=
payType
;
this
.
payType
=
payType
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabBillingSmsRecord.java
View file @
776c0582
...
@@ -21,7 +21,7 @@ public class TabBillingSmsRecord {
...
@@ -21,7 +21,7 @@ public class TabBillingSmsRecord {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
* 发送时间
* 发送时间
...
@@ -171,12 +171,12 @@ public class TabBillingSmsRecord {
...
@@ -171,12 +171,12 @@ public class TabBillingSmsRecord {
this
.
smsRecordId
=
smsRecordId
;
this
.
smsRecordId
=
smsRecordId
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getSendTime
()
{
public
Date
getSendTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabBillingVoiceCodeRecord.java
View file @
776c0582
...
@@ -23,7 +23,7 @@ public class TabBillingVoiceCodeRecord {
...
@@ -23,7 +23,7 @@ public class TabBillingVoiceCodeRecord {
/**
/**
*
*
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
* 发送时间
* 发送时间
...
@@ -121,12 +121,12 @@ public class TabBillingVoiceCodeRecord {
...
@@ -121,12 +121,12 @@ public class TabBillingVoiceCodeRecord {
this
.
paySerialNumber
=
paySerialNumber
;
this
.
paySerialNumber
=
paySerialNumber
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getSendTime
()
{
public
Date
getSendTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabConfigRule.java
View file @
776c0582
...
@@ -78,7 +78,7 @@ public class TabConfigRule {
...
@@ -78,7 +78,7 @@ public class TabConfigRule {
/**
/**
* 状态值 1:有效 0:无效
* 状态值 1:有效 0:无效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -198,12 +198,12 @@ public class TabConfigRule {
...
@@ -198,12 +198,12 @@ public class TabConfigRule {
return
this
;
return
this
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
TabConfigRule
set
Status
(
Integer
status
)
{
public
TabConfigRule
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
return
this
;
return
this
;
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabConfigRuleEnterprise.java
View file @
776c0582
...
@@ -28,7 +28,7 @@ public class TabConfigRuleEnterprise {
...
@@ -28,7 +28,7 @@ public class TabConfigRuleEnterprise {
/**
/**
* 状态值 1:有效 0:无效
* 状态值 1:有效 0:无效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -67,12 +67,12 @@ public class TabConfigRuleEnterprise {
...
@@ -67,12 +67,12 @@ public class TabConfigRuleEnterprise {
return
this
;
return
this
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
TabConfigRuleEnterprise
set
Status
(
Integer
status
)
{
public
TabConfigRuleEnterprise
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
return
this
;
return
this
;
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabConfigRuleEnterpriseRel.java
View file @
776c0582
...
@@ -28,7 +28,7 @@ public class TabConfigRuleEnterpriseRel {
...
@@ -28,7 +28,7 @@ public class TabConfigRuleEnterpriseRel {
/**
/**
* 状态值 1:有效 0:无效
* 状态值 1:有效 0:无效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -67,12 +67,12 @@ public class TabConfigRuleEnterpriseRel {
...
@@ -67,12 +67,12 @@ public class TabConfigRuleEnterpriseRel {
return
this
;
return
this
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
TabConfigRuleEnterpriseRel
set
Status
(
Integer
status
)
{
public
TabConfigRuleEnterpriseRel
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
return
this
;
return
this
;
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabConfigRuleRel.java
View file @
776c0582
...
@@ -28,7 +28,7 @@ public class TabConfigRuleRel {
...
@@ -28,7 +28,7 @@ public class TabConfigRuleRel {
/**
/**
* 状态值 1:有效 0:无效
* 状态值 1:有效 0:无效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -67,12 +67,12 @@ public class TabConfigRuleRel {
...
@@ -67,12 +67,12 @@ public class TabConfigRuleRel {
return
this
;
return
this
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
TabConfigRuleRel
set
Status
(
Integer
status
)
{
public
TabConfigRuleRel
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
return
this
;
return
this
;
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabCustomGuide.java
View file @
776c0582
...
@@ -90,6 +90,8 @@ public class TabCustomGuide {
...
@@ -90,6 +90,8 @@ public class TabCustomGuide {
*/
*/
private
String
appid
;
private
String
appid
;
private
Integer
deleteFlag
;
public
Integer
getGuideId
()
{
public
Integer
getGuideId
()
{
return
guideId
;
return
guideId
;
}
}
...
@@ -217,4 +219,12 @@ public class TabCustomGuide {
...
@@ -217,4 +219,12 @@ public class TabCustomGuide {
public
void
setAppid
(
String
appid
)
{
public
void
setAppid
(
String
appid
)
{
this
.
appid
=
appid
;
this
.
appid
=
appid
;
}
}
public
Integer
getDeleteFlag
()
{
return
deleteFlag
;
}
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
}
}
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabCustomStore.java
View file @
776c0582
...
@@ -60,6 +60,8 @@ public class TabCustomStore {
...
@@ -60,6 +60,8 @@ public class TabCustomStore {
*/
*/
private
Integer
quickGuideSwitch
;
private
Integer
quickGuideSwitch
;
private
Integer
deleteFlag
;
public
Integer
getCustomStoreId
()
{
public
Integer
getCustomStoreId
()
{
return
customStoreId
;
return
customStoreId
;
}
}
...
@@ -140,4 +142,12 @@ public class TabCustomStore {
...
@@ -140,4 +142,12 @@ public class TabCustomStore {
this
.
quickGuideSwitch
=
quickGuideSwitch
;
this
.
quickGuideSwitch
=
quickGuideSwitch
;
return
this
;
return
this
;
}
}
public
Integer
getDeleteFlag
()
{
return
deleteFlag
;
}
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
}
}
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabCustomUdeskField.java
View file @
776c0582
...
@@ -57,6 +57,8 @@ public class TabCustomUdeskField {
...
@@ -57,6 +57,8 @@ public class TabCustomUdeskField {
*/
*/
private
Date
updateTime
;
private
Date
updateTime
;
private
Integer
deleteFlag
;
public
Integer
getId
()
{
public
Integer
getId
()
{
return
id
;
return
id
;
}
}
...
@@ -146,4 +148,12 @@ public class TabCustomUdeskField {
...
@@ -146,4 +148,12 @@ public class TabCustomUdeskField {
this
.
fieldType
=
fieldType
;
this
.
fieldType
=
fieldType
;
return
this
;
return
this
;
}
}
public
Integer
getDeleteFlag
()
{
return
deleteFlag
;
}
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
}
}
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabDataActuallyPaidConfig.java
View file @
776c0582
...
@@ -38,7 +38,7 @@ public class TabDataActuallyPaidConfig {
...
@@ -38,7 +38,7 @@ public class TabDataActuallyPaidConfig {
/**
/**
* 1:有效
* 1:有效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -86,12 +86,12 @@ public class TabDataActuallyPaidConfig {
...
@@ -86,12 +86,12 @@ public class TabDataActuallyPaidConfig {
return
this
;
return
this
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
TabDataActuallyPaidConfig
set
Status
(
Integer
status
)
{
public
TabDataActuallyPaidConfig
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
return
this
;
return
this
;
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabDataGenerationConfig.java
View file @
776c0582
...
@@ -53,7 +53,7 @@ public class TabDataGenerationConfig {
...
@@ -53,7 +53,7 @@ public class TabDataGenerationConfig {
/**
/**
* 1:有效
* 1:有效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -137,12 +137,12 @@ public class TabDataGenerationConfig {
...
@@ -137,12 +137,12 @@ public class TabDataGenerationConfig {
return
this
;
return
this
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
TabDataGenerationConfig
set
Status
(
Integer
status
)
{
public
TabDataGenerationConfig
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
return
this
;
return
this
;
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabDataMemberConsumeConfig.java
View file @
776c0582
...
@@ -48,7 +48,7 @@ public class TabDataMemberConsumeConfig {
...
@@ -48,7 +48,7 @@ public class TabDataMemberConsumeConfig {
/**
/**
* 1:有效
* 1:有效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -123,12 +123,12 @@ public class TabDataMemberConsumeConfig {
...
@@ -123,12 +123,12 @@ public class TabDataMemberConsumeConfig {
return
this
;
return
this
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
TabDataMemberConsumeConfig
set
Status
(
Integer
status
)
{
public
TabDataMemberConsumeConfig
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
return
this
;
return
this
;
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabDataPerformanceConfig.java
View file @
776c0582
...
@@ -33,7 +33,7 @@ public class TabDataPerformanceConfig {
...
@@ -33,7 +33,7 @@ public class TabDataPerformanceConfig {
/**
/**
* 1:有效
* 1:有效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -81,12 +81,12 @@ public class TabDataPerformanceConfig {
...
@@ -81,12 +81,12 @@ public class TabDataPerformanceConfig {
return
this
;
return
this
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
TabDataPerformanceConfig
set
Status
(
Integer
status
)
{
public
TabDataPerformanceConfig
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
return
this
;
return
this
;
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabDataSingleEffectConfig.java
View file @
776c0582
...
@@ -53,7 +53,7 @@ public class TabDataSingleEffectConfig {
...
@@ -53,7 +53,7 @@ public class TabDataSingleEffectConfig {
/**
/**
* 1:有效
* 1:有效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -128,12 +128,12 @@ public class TabDataSingleEffectConfig {
...
@@ -128,12 +128,12 @@ public class TabDataSingleEffectConfig {
return
this
;
return
this
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
TabDataSingleEffectConfig
set
Status
(
Integer
status
)
{
public
TabDataSingleEffectConfig
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
return
this
;
return
this
;
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabDataWechatMemberConfig.java
View file @
776c0582
...
@@ -43,7 +43,7 @@ public class TabDataWechatMemberConfig {
...
@@ -43,7 +43,7 @@ public class TabDataWechatMemberConfig {
/**
/**
* 1:有效
* 1:有效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -100,12 +100,12 @@ public class TabDataWechatMemberConfig {
...
@@ -100,12 +100,12 @@ public class TabDataWechatMemberConfig {
return
this
;
return
this
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
TabDataWechatMemberConfig
set
Status
(
Integer
status
)
{
public
TabDataWechatMemberConfig
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
return
this
;
return
this
;
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabEnterpriseResourceRel.java
View file @
776c0582
...
@@ -33,7 +33,7 @@ public class TabEnterpriseResourceRel {
...
@@ -33,7 +33,7 @@ public class TabEnterpriseResourceRel {
/**
/**
* 状态1:有效 0:无效
* 状态1:有效 0:无效
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -82,12 +82,12 @@ public class TabEnterpriseResourceRel {
...
@@ -82,12 +82,12 @@ public class TabEnterpriseResourceRel {
this
.
enterpriseId
=
enterpriseId
;
this
.
enterpriseId
=
enterpriseId
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
void
set
Status
(
Integer
status
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
}
}
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabEnterpriseWhiteList.java
View file @
776c0582
...
@@ -33,7 +33,7 @@ public class TabEnterpriseWhiteList {
...
@@ -33,7 +33,7 @@ public class TabEnterpriseWhiteList {
/**
/**
* 1:有效 0:解除白名单
* 1:有效 0:解除白名单
*/
*/
private
Integer
status
;
private
Integer
deleteFlag
;
/**
/**
*
*
...
@@ -81,12 +81,12 @@ public class TabEnterpriseWhiteList {
...
@@ -81,12 +81,12 @@ public class TabEnterpriseWhiteList {
return
this
;
return
this
;
}
}
public
Integer
get
Status
()
{
public
Integer
get
DeleteFlag
()
{
return
status
;
return
deleteFlag
;
}
}
public
TabEnterpriseWhiteList
set
Status
(
Integer
status
)
{
public
TabEnterpriseWhiteList
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
status
=
status
;
this
.
deleteFlag
=
deleteFlag
;
return
this
;
return
this
;
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/AppletServiceConfigServiceImpl.java
View file @
776c0582
...
@@ -2,7 +2,6 @@ package com.gic.enterprise.service.impl;
...
@@ -2,7 +2,6 @@ package com.gic.enterprise.service.impl;
import
com.gic.enterprise.constant.LinkSortEnum
;
import
com.gic.enterprise.constant.LinkSortEnum
;
import
com.gic.enterprise.constant.applet.AppletServiceConfigEnum
;
import
com.gic.enterprise.constant.applet.AppletServiceConfigEnum
;
import
com.gic.enterprise.constants.Constants
;
import
com.gic.enterprise.dao.mapper.TabAppletServiceConfigMapper
;
import
com.gic.enterprise.dao.mapper.TabAppletServiceConfigMapper
;
import
com.gic.enterprise.entity.TabAppletServiceConfig
;
import
com.gic.enterprise.entity.TabAppletServiceConfig
;
import
com.gic.enterprise.qo.AppletServiceConfigQO
;
import
com.gic.enterprise.qo.AppletServiceConfigQO
;
...
@@ -110,7 +109,7 @@ public class AppletServiceConfigServiceImpl implements AppletServiceConfigServic
...
@@ -110,7 +109,7 @@ public class AppletServiceConfigServiceImpl implements AppletServiceConfigServic
public
void
delAppletService
(
Integer
appletServiceId
)
{
public
void
delAppletService
(
Integer
appletServiceId
)
{
TabAppletServiceConfig
appletServiceConfig
=
new
TabAppletServiceConfig
();
TabAppletServiceConfig
appletServiceConfig
=
new
TabAppletServiceConfig
();
appletServiceConfig
.
setAppletServiceId
(
appletServiceId
);
appletServiceConfig
.
setAppletServiceId
(
appletServiceId
);
appletServiceConfig
.
set
Status
(
Constants
.
DEL_STATUS
);
appletServiceConfig
.
set
DeleteFlag
(
1
);
this
.
tabAppletServiceConfigMapper
.
updateByPrimaryKeySelective
(
appletServiceConfig
);
this
.
tabAppletServiceConfigMapper
.
updateByPrimaryKeySelective
(
appletServiceConfig
);
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/AppletWechatMenuServiceImpl.java
View file @
776c0582
...
@@ -27,8 +27,8 @@ public class AppletWechatMenuServiceImpl implements AppletWechatMenuService{
...
@@ -27,8 +27,8 @@ public class AppletWechatMenuServiceImpl implements AppletWechatMenuService{
public
Integer
save
(
AppletWechatMenuDTO
dto
)
{
public
Integer
save
(
AppletWechatMenuDTO
dto
)
{
dto
.
setCreateTime
(
new
Date
());
dto
.
setCreateTime
(
new
Date
());
dto
.
setUpdateTime
(
new
Date
());
dto
.
setUpdateTime
(
new
Date
());
dto
.
setStatus
(
1
);
TabAppletWechatMenu
record
=
EntityUtil
.
changeEntityNew
(
TabAppletWechatMenu
.
class
,
dto
);
TabAppletWechatMenu
record
=
EntityUtil
.
changeEntityNew
(
TabAppletWechatMenu
.
class
,
dto
);
record
.
setDeleteFlag
(
0
);
tabAppletWechatMenuMapper
.
insert
(
record
);
tabAppletWechatMenuMapper
.
insert
(
record
);
return
record
.
getMenuId
();
return
record
.
getMenuId
();
}
}
...
@@ -63,7 +63,7 @@ public class AppletWechatMenuServiceImpl implements AppletWechatMenuService{
...
@@ -63,7 +63,7 @@ public class AppletWechatMenuServiceImpl implements AppletWechatMenuService{
public
void
deleteByMenuId
(
Integer
menuId
)
{
public
void
deleteByMenuId
(
Integer
menuId
)
{
TabAppletWechatMenu
record
=
new
TabAppletWechatMenu
();
TabAppletWechatMenu
record
=
new
TabAppletWechatMenu
();
record
.
setMenuId
(
menuId
);
record
.
setMenuId
(
menuId
);
record
.
set
Status
(
0
);
record
.
set
DeleteFlag
(
1
);
tabAppletWechatMenuMapper
.
updateByPrimaryKeySelective
(
record
);
tabAppletWechatMenuMapper
.
updateByPrimaryKeySelective
(
record
);
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/AuditLogServiceImpl.java
View file @
776c0582
package
com
.
gic
.
enterprise
.
service
.
impl
;
package
com
.
gic
.
enterprise
.
service
.
impl
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.enterprise.dao.mapper.TabAuditLogMapper
;
import
com.gic.enterprise.dao.mapper.TabAuditLogMapper
;
import
com.gic.enterprise.dto.AuditLogDTO
;
import
com.gic.enterprise.dto.AuditLogDTO
;
import
com.gic.enterprise.entity.TabAuditLog
;
import
com.gic.enterprise.entity.TabAuditLog
;
...
@@ -46,7 +45,7 @@ public class AuditLogServiceImpl implements AuditLogService {
...
@@ -46,7 +45,7 @@ public class AuditLogServiceImpl implements AuditLogService {
@Override
@Override
public
Integer
save
(
AuditLogDTO
auditLogDTO
)
{
public
Integer
save
(
AuditLogDTO
auditLogDTO
)
{
TabAuditLog
auditLog
=
EntityUtil
.
changeEntityByJSON
(
TabAuditLog
.
class
,
auditLogDTO
);
TabAuditLog
auditLog
=
EntityUtil
.
changeEntityByJSON
(
TabAuditLog
.
class
,
auditLogDTO
);
auditLog
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
auditLog
.
set
DeleteFlag
(
0
);
auditLog
.
setCreateTime
(
new
Date
());
auditLog
.
setCreateTime
(
new
Date
());
tabAuditLogMapper
.
insertSelective
(
auditLog
);
tabAuditLogMapper
.
insertSelective
(
auditLog
);
return
auditLog
.
getAuditLogId
();
return
auditLog
.
getAuditLogId
();
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/AuditProcessServiceImpl.java
View file @
776c0582
package
com
.
gic
.
enterprise
.
service
.
impl
;
package
com
.
gic
.
enterprise
.
service
.
impl
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.enterprise.dao.mapper.TabAuditProcessMapper
;
import
com.gic.enterprise.dao.mapper.TabAuditProcessMapper
;
import
com.gic.enterprise.entity.TabAuditProcess
;
import
com.gic.enterprise.entity.TabAuditProcess
;
import
com.gic.enterprise.service.AuditProcessService
;
import
com.gic.enterprise.service.AuditProcessService
;
...
@@ -23,7 +22,7 @@ public class AuditProcessServiceImpl implements AuditProcessService {
...
@@ -23,7 +22,7 @@ public class AuditProcessServiceImpl implements AuditProcessService {
@Override
@Override
public
int
save
(
TabAuditProcess
auditProcess
)
{
public
int
save
(
TabAuditProcess
auditProcess
)
{
auditProcess
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
auditProcess
.
set
DeleteFlag
(
0
);
auditProcess
.
setCreateTime
(
new
Date
());
auditProcess
.
setCreateTime
(
new
Date
());
return
tabAuditProcessMapper
.
insertSelective
(
auditProcess
);
return
tabAuditProcessMapper
.
insertSelective
(
auditProcess
);
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/BillingAccountBalanceRecordServiceImpl.java
View file @
776c0582
package
com
.
gic
.
enterprise
.
service
.
impl
;
package
com
.
gic
.
enterprise
.
service
.
impl
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.enterprise.dao.mapper.TabBillingAccountBalanceRecordMapper
;
import
com.gic.enterprise.dao.mapper.TabBillingAccountBalanceRecordMapper
;
import
com.gic.enterprise.dto.AccountBalanceRecordDTO
;
import
com.gic.enterprise.dto.AccountBalanceRecordDTO
;
import
com.gic.enterprise.dto.HomeStatisticsDTO
;
import
com.gic.enterprise.dto.HomeStatisticsDTO
;
...
@@ -57,7 +56,7 @@ public class BillingAccountBalanceRecordServiceImpl implements BillingAccountBal
...
@@ -57,7 +56,7 @@ public class BillingAccountBalanceRecordServiceImpl implements BillingAccountBal
@Override
@Override
public
Integer
save
(
AccountBalanceRecordDTO
accountBalanceRecordDTO
)
{
public
Integer
save
(
AccountBalanceRecordDTO
accountBalanceRecordDTO
)
{
TabBillingAccountBalanceRecord
accountBalanceRecord
=
EntityUtil
.
changeEntityByOrika
(
TabBillingAccountBalanceRecord
.
class
,
accountBalanceRecordDTO
);
TabBillingAccountBalanceRecord
accountBalanceRecord
=
EntityUtil
.
changeEntityByOrika
(
TabBillingAccountBalanceRecord
.
class
,
accountBalanceRecordDTO
);
accountBalanceRecord
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
accountBalanceRecord
.
set
DeleteFlag
(
0
);
accountBalanceRecord
.
setCreateTime
(
new
Date
());
accountBalanceRecord
.
setCreateTime
(
new
Date
());
accountBalanceRecord
.
setDeductionTime
(
new
Date
());
accountBalanceRecord
.
setDeductionTime
(
new
Date
());
return
tabBillingAccountBalanceRecordMapper
.
insertSelective
(
accountBalanceRecord
);
return
tabBillingAccountBalanceRecordMapper
.
insertSelective
(
accountBalanceRecord
);
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/BillingDoubleCallingRecordServiceImpl.java
View file @
776c0582
package
com
.
gic
.
enterprise
.
service
.
impl
;
package
com
.
gic
.
enterprise
.
service
.
impl
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.enterprise.dao.mapper.TabBillingDoubleCallingRecordMapper
;
import
com.gic.enterprise.dao.mapper.TabBillingDoubleCallingRecordMapper
;
import
com.gic.enterprise.dto.DoubleCallingRecordDTO
;
import
com.gic.enterprise.dto.DoubleCallingRecordDTO
;
import
com.gic.enterprise.dto.HomeStatisticsDTO
;
import
com.gic.enterprise.dto.HomeStatisticsDTO
;
...
@@ -62,7 +61,7 @@ public class BillingDoubleCallingRecordServiceImpl implements BillingDoubleCalli
...
@@ -62,7 +61,7 @@ public class BillingDoubleCallingRecordServiceImpl implements BillingDoubleCalli
@Override
@Override
public
Integer
save
(
DoubleCallingRecordDTO
doubleCallingRecordDTO
)
{
public
Integer
save
(
DoubleCallingRecordDTO
doubleCallingRecordDTO
)
{
TabBillingDoubleCallingRecord
tabBillingDoubleCallingRecord
=
EntityUtil
.
changeEntityByJSON
(
TabBillingDoubleCallingRecord
.
class
,
doubleCallingRecordDTO
);
TabBillingDoubleCallingRecord
tabBillingDoubleCallingRecord
=
EntityUtil
.
changeEntityByJSON
(
TabBillingDoubleCallingRecord
.
class
,
doubleCallingRecordDTO
);
tabBillingDoubleCallingRecord
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
tabBillingDoubleCallingRecord
.
set
DeleteFlag
(
0
);
tabBillingDoubleCallingRecord
.
setCreateTime
(
new
Date
());
tabBillingDoubleCallingRecord
.
setCreateTime
(
new
Date
());
return
tabBillingDoubleCallingRecordMapper
.
insertSelective
(
tabBillingDoubleCallingRecord
);
return
tabBillingDoubleCallingRecordMapper
.
insertSelective
(
tabBillingDoubleCallingRecord
);
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/BillingOrderServiceImpl.java
View file @
776c0582
package
com
.
gic
.
enterprise
.
service
.
impl
;
package
com
.
gic
.
enterprise
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.enterprise.constant.BillingOrderStatusEnum
;
import
com.gic.enterprise.constant.BillingOrderStatusEnum
;
import
com.gic.enterprise.constant.EnterpriseStatusTypeEnum
;
import
com.gic.enterprise.constant.EnterpriseStatusTypeEnum
;
import
com.gic.enterprise.constant.PayTypeEnum
;
import
com.gic.enterprise.constant.PayTypeEnum
;
...
@@ -47,7 +46,7 @@ public class BillingOrderServiceImpl implements BillingOrderService {
...
@@ -47,7 +46,7 @@ public class BillingOrderServiceImpl implements BillingOrderService {
billingOrder
.
setOrderStatus
(
BillingOrderStatusEnum
.
WAIT_PAY
.
getCode
());
billingOrder
.
setOrderStatus
(
BillingOrderStatusEnum
.
WAIT_PAY
.
getCode
());
billingOrder
.
setTotalFee
(
billingOrderDTO
.
getTotalFee
());
billingOrder
.
setTotalFee
(
billingOrderDTO
.
getTotalFee
());
billingOrder
.
setTotalFeePaid
(
billingOrderDTO
.
getTotalFeePaid
());
billingOrder
.
setTotalFeePaid
(
billingOrderDTO
.
getTotalFeePaid
());
billingOrder
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
billingOrder
.
set
DeleteFlag
(
0
);
billingOrder
.
setCreateTime
(
new
Date
());
billingOrder
.
setCreateTime
(
new
Date
());
billingOrder
.
setItemJson
(
billingOrderDTO
.
getItemJson
());
billingOrder
.
setItemJson
(
billingOrderDTO
.
getItemJson
());
billingOrder
.
setPayType
(
billingOrderDTO
.
getPayType
());
billingOrder
.
setPayType
(
billingOrderDTO
.
getPayType
());
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/BillingRechargeRecordServiceImpl.java
View file @
776c0582
package
com
.
gic
.
enterprise
.
service
.
impl
;
package
com
.
gic
.
enterprise
.
service
.
impl
;
import
java.util.Date
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.enterprise.constant.BillingAuditStatusEnum
;
import
com.gic.enterprise.constant.BillingAuditStatusEnum
;
import
com.gic.enterprise.constant.PayTypeEnum
;
import
com.gic.enterprise.constant.PayTypeEnum
;
import
com.gic.enterprise.dao.mapper.TabBillingRechargeRecordMapper
;
import
com.gic.enterprise.dao.mapper.TabBillingRechargeRecordMapper
;
...
@@ -17,6 +11,10 @@ import com.gic.enterprise.service.BillingRechargeRecordService;
...
@@ -17,6 +11,10 @@ import com.gic.enterprise.service.BillingRechargeRecordService;
import
com.gic.enterprise.utils.CreateRandomUtils
;
import
com.gic.enterprise.utils.CreateRandomUtils
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
/**
/**
*
*
...
@@ -40,7 +38,7 @@ public class BillingRechargeRecordServiceImpl implements BillingRechargeRecordSe
...
@@ -40,7 +38,7 @@ public class BillingRechargeRecordServiceImpl implements BillingRechargeRecordSe
rechargeRecord
.
setTotalFee
(
billingRechargeDTO
.
getTotalFee
());
rechargeRecord
.
setTotalFee
(
billingRechargeDTO
.
getTotalFee
());
rechargeRecord
.
setPayType
(
PayTypeEnum
.
OFFLINE_PAY
.
getCode
());
rechargeRecord
.
setPayType
(
PayTypeEnum
.
OFFLINE_PAY
.
getCode
());
rechargeRecord
.
setPayInfoId
(
billingRechargeDTO
.
getPayInfoId
());
rechargeRecord
.
setPayInfoId
(
billingRechargeDTO
.
getPayInfoId
());
rechargeRecord
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
rechargeRecord
.
set
DeleteFlag
(
0
);
rechargeRecord
.
setInitiator
(
billingRechargeDTO
.
getInitiator
());
rechargeRecord
.
setInitiator
(
billingRechargeDTO
.
getInitiator
());
rechargeRecord
.
setInitiatorUser
(
billingRechargeDTO
.
getInitiatorUser
());
rechargeRecord
.
setInitiatorUser
(
billingRechargeDTO
.
getInitiatorUser
());
rechargeRecord
.
setInitiatorName
(
billingRechargeDTO
.
getInitiatorName
());
rechargeRecord
.
setInitiatorName
(
billingRechargeDTO
.
getInitiatorName
());
...
@@ -60,7 +58,7 @@ public class BillingRechargeRecordServiceImpl implements BillingRechargeRecordSe
...
@@ -60,7 +58,7 @@ public class BillingRechargeRecordServiceImpl implements BillingRechargeRecordSe
rechargeRecord
.
setTotalFeePaid
(
billingRechargeDTO
.
getTotalFeePaid
());
rechargeRecord
.
setTotalFeePaid
(
billingRechargeDTO
.
getTotalFeePaid
());
rechargeRecord
.
setPayType
(
PayTypeEnum
.
WE_CHAT_PAY
.
getCode
());
rechargeRecord
.
setPayType
(
PayTypeEnum
.
WE_CHAT_PAY
.
getCode
());
rechargeRecord
.
setPayInfoId
(
billingRechargeDTO
.
getPayInfoId
());
rechargeRecord
.
setPayInfoId
(
billingRechargeDTO
.
getPayInfoId
());
rechargeRecord
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
rechargeRecord
.
set
DeleteFlag
(
0
);
rechargeRecord
.
setInitiator
(
billingRechargeDTO
.
getInitiator
());
rechargeRecord
.
setInitiator
(
billingRechargeDTO
.
getInitiator
());
rechargeRecord
.
setInitiatorUser
(
billingRechargeDTO
.
getInitiatorUser
());
rechargeRecord
.
setInitiatorUser
(
billingRechargeDTO
.
getInitiatorUser
());
rechargeRecord
.
setInitiatorName
(
billingRechargeDTO
.
getInitiatorName
());
rechargeRecord
.
setInitiatorName
(
billingRechargeDTO
.
getInitiatorName
());
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/BillingRecordingStorageRecordServiceImpl.java
View file @
776c0582
package
com
.
gic
.
enterprise
.
service
.
impl
;
package
com
.
gic
.
enterprise
.
service
.
impl
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.enterprise.dao.mapper.TabBillingRecordingStorageRecordMapper
;
import
com.gic.enterprise.dao.mapper.TabBillingRecordingStorageRecordMapper
;
import
com.gic.enterprise.dto.HomeStatisticsDTO
;
import
com.gic.enterprise.dto.HomeStatisticsDTO
;
import
com.gic.enterprise.dto.RecordingStorageRecordDTO
;
import
com.gic.enterprise.dto.RecordingStorageRecordDTO
;
...
@@ -62,7 +61,7 @@ public class BillingRecordingStorageRecordServiceImpl implements BillingRecordin
...
@@ -62,7 +61,7 @@ public class BillingRecordingStorageRecordServiceImpl implements BillingRecordin
@Override
@Override
public
Integer
save
(
RecordingStorageRecordDTO
recordingStorageRecordDTO
)
{
public
Integer
save
(
RecordingStorageRecordDTO
recordingStorageRecordDTO
)
{
TabBillingRecordingStorageRecord
tabBillingRecordingStorageRecord
=
EntityUtil
.
changeEntityByJSON
(
TabBillingRecordingStorageRecord
.
class
,
recordingStorageRecordDTO
);
TabBillingRecordingStorageRecord
tabBillingRecordingStorageRecord
=
EntityUtil
.
changeEntityByJSON
(
TabBillingRecordingStorageRecord
.
class
,
recordingStorageRecordDTO
);
tabBillingRecordingStorageRecord
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
tabBillingRecordingStorageRecord
.
set
DeleteFlag
(
0
);
tabBillingRecordingStorageRecord
.
setCreateTime
(
new
Date
());
tabBillingRecordingStorageRecord
.
setCreateTime
(
new
Date
());
return
tabBillingRecordingStorageRecordMapper
.
insertSelective
(
tabBillingRecordingStorageRecord
);
return
tabBillingRecordingStorageRecordMapper
.
insertSelective
(
tabBillingRecordingStorageRecord
);
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/BillingRefundServiceImpl.java
View file @
776c0582
package
com
.
gic
.
enterprise
.
service
.
impl
;
package
com
.
gic
.
enterprise
.
service
.
impl
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.enterprise.dao.mapper.TabBillingRefundMapper
;
import
com.gic.enterprise.dao.mapper.TabBillingRefundMapper
;
import
com.gic.enterprise.dto.RefundDTO
;
import
com.gic.enterprise.dto.RefundDTO
;
import
com.gic.enterprise.entity.TabBillingRefund
;
import
com.gic.enterprise.entity.TabBillingRefund
;
...
@@ -39,7 +38,7 @@ public class BillingRefundServiceImpl implements BillingRefundService {
...
@@ -39,7 +38,7 @@ public class BillingRefundServiceImpl implements BillingRefundService {
@Override
@Override
public
Integer
save
(
RefundDTO
refundDTO
)
{
public
Integer
save
(
RefundDTO
refundDTO
)
{
TabBillingRefund
billingRefund
=
EntityUtil
.
changeEntityByOrika
(
TabBillingRefund
.
class
,
refundDTO
);
TabBillingRefund
billingRefund
=
EntityUtil
.
changeEntityByOrika
(
TabBillingRefund
.
class
,
refundDTO
);
billingRefund
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
billingRefund
.
set
DeleteFlag
(
0
);
billingRefund
.
setCreateTime
(
new
Date
());
billingRefund
.
setCreateTime
(
new
Date
());
billingRefund
.
setRefundChannel
(
1
);
billingRefund
.
setRefundChannel
(
1
);
return
tabBillingRefundMapper
.
insertSelective
(
billingRefund
);
return
tabBillingRefundMapper
.
insertSelective
(
billingRefund
);
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/BillingSmsPackageRecordServiceImpl.java
View file @
776c0582
package
com
.
gic
.
enterprise
.
service
.
impl
;
package
com
.
gic
.
enterprise
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.enterprise.dao.mapper.TabBillingSmsPackageRecordMapper
;
import
com.gic.enterprise.dao.mapper.TabBillingSmsPackageRecordMapper
;
import
com.gic.enterprise.dto.BillingOrderDTO
;
import
com.gic.enterprise.dto.BillingOrderDTO
;
import
com.gic.enterprise.dto.HomeStatisticsDTO
;
import
com.gic.enterprise.dto.HomeStatisticsDTO
;
...
@@ -54,7 +53,7 @@ public class BillingSmsPackageRecordServiceImpl implements BillingSmsPackageReco
...
@@ -54,7 +53,7 @@ public class BillingSmsPackageRecordServiceImpl implements BillingSmsPackageReco
packageRecord
.
setItemFee
(
new
BigDecimal
(
smsPackageOrderItemDTO
.
getCost
()
+
""
).
multiply
(
new
BigDecimal
(
smsPackageOrderItemDTO
.
getSmsAmount
()
+
""
)).
doubleValue
());
packageRecord
.
setItemFee
(
new
BigDecimal
(
smsPackageOrderItemDTO
.
getCost
()
+
""
).
multiply
(
new
BigDecimal
(
smsPackageOrderItemDTO
.
getSmsAmount
()
+
""
)).
doubleValue
());
packageRecord
.
setTotalFee
(
billingOrderDTO
.
getTotalFee
());
packageRecord
.
setTotalFee
(
billingOrderDTO
.
getTotalFee
());
packageRecord
.
setPayType
(
billingOrderDTO
.
getPayType
());
packageRecord
.
setPayType
(
billingOrderDTO
.
getPayType
());
packageRecord
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
packageRecord
.
set
DeleteFlag
(
0
);
packageRecord
.
setOrderId
(
billingOrderDTO
.
getOrderId
());
packageRecord
.
setOrderId
(
billingOrderDTO
.
getOrderId
());
packageRecord
.
setDeductionTime
(
new
Date
());
packageRecord
.
setDeductionTime
(
new
Date
());
packageRecord
.
setEnterpriseId
(
billingOrderDTO
.
getEnterpriseId
());
packageRecord
.
setEnterpriseId
(
billingOrderDTO
.
getEnterpriseId
());
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/BillingSmsRecordServiceImpl.java
View file @
776c0582
package
com
.
gic
.
enterprise
.
service
.
impl
;
package
com
.
gic
.
enterprise
.
service
.
impl
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.enterprise.dao.mapper.TabBillingSmsRecordMapper
;
import
com.gic.enterprise.dao.mapper.TabBillingSmsRecordMapper
;
import
com.gic.enterprise.dto.HomeStatisticsDTO
;
import
com.gic.enterprise.dto.HomeStatisticsDTO
;
import
com.gic.enterprise.dto.SmsRecordDTO
;
import
com.gic.enterprise.dto.SmsRecordDTO
;
...
@@ -67,7 +66,7 @@ public class BillingSmsRecordServiceImpl implements BillingSmsRecordService{
...
@@ -67,7 +66,7 @@ public class BillingSmsRecordServiceImpl implements BillingSmsRecordService{
@Override
@Override
public
Long
saveSmsRecord
(
SmsRecordDTO
smsRecordDTO
)
{
public
Long
saveSmsRecord
(
SmsRecordDTO
smsRecordDTO
)
{
TabBillingSmsRecord
billingSmsRecord
=
EntityUtil
.
changeEntityByJSON
(
TabBillingSmsRecord
.
class
,
smsRecordDTO
);
TabBillingSmsRecord
billingSmsRecord
=
EntityUtil
.
changeEntityByJSON
(
TabBillingSmsRecord
.
class
,
smsRecordDTO
);
billingSmsRecord
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
billingSmsRecord
.
set
DeleteFlag
(
0
);
billingSmsRecord
.
setCreateTime
(
new
Date
());
billingSmsRecord
.
setCreateTime
(
new
Date
());
billingSmsRecord
.
setBillNumber
(
1
);
billingSmsRecord
.
setBillNumber
(
1
);
tabBillingSmsRecordMapper
.
insertSelective
(
billingSmsRecord
);
tabBillingSmsRecordMapper
.
insertSelective
(
billingSmsRecord
);
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/BillingVoiceCodeRecordServiceImpl.java
View file @
776c0582
...
@@ -9,7 +9,6 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -9,7 +9,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.enterprise.dao.mapper.TabBillingVoiceCodeRecordMapper
;
import
com.gic.enterprise.dao.mapper.TabBillingVoiceCodeRecordMapper
;
import
com.gic.enterprise.dto.HomeStatisticsDTO
;
import
com.gic.enterprise.dto.HomeStatisticsDTO
;
import
com.gic.enterprise.dto.VoiceCodeRecordDTO
;
import
com.gic.enterprise.dto.VoiceCodeRecordDTO
;
...
@@ -64,7 +63,7 @@ public class BillingVoiceCodeRecordServiceImpl implements BillingVoiceCodeRecord
...
@@ -64,7 +63,7 @@ public class BillingVoiceCodeRecordServiceImpl implements BillingVoiceCodeRecord
@Override
@Override
public
Integer
save
(
VoiceCodeRecordDTO
voiceCodeRecordDTO
)
{
public
Integer
save
(
VoiceCodeRecordDTO
voiceCodeRecordDTO
)
{
TabBillingVoiceCodeRecord
billingVoiceCodeRecord
=
EntityUtil
.
changeEntityByJSON
(
TabBillingVoiceCodeRecord
.
class
,
voiceCodeRecordDTO
);
TabBillingVoiceCodeRecord
billingVoiceCodeRecord
=
EntityUtil
.
changeEntityByJSON
(
TabBillingVoiceCodeRecord
.
class
,
voiceCodeRecordDTO
);
billingVoiceCodeRecord
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
billingVoiceCodeRecord
.
set
DeleteFlag
(
0
);
billingVoiceCodeRecord
.
setCreateTime
(
new
Date
());
billingVoiceCodeRecord
.
setCreateTime
(
new
Date
());
billingVoiceCodeRecord
.
setPaySerialNumber
(
CreateRandomUtils
.
createSerialNumber
());
billingVoiceCodeRecord
.
setPaySerialNumber
(
CreateRandomUtils
.
createSerialNumber
());
return
tabBillingVoiceCodeRecordMapper
.
insertSelective
(
billingVoiceCodeRecord
);
return
tabBillingVoiceCodeRecordMapper
.
insertSelective
(
billingVoiceCodeRecord
);
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/ConfigRuleServiceImpl.java
View file @
776c0582
...
@@ -98,7 +98,7 @@ public class ConfigRuleServiceImpl implements ConfigRuleService{
...
@@ -98,7 +98,7 @@ public class ConfigRuleServiceImpl implements ConfigRuleService{
}
}
private
Integer
save
(
TabConfigRule
record
)
{
private
Integer
save
(
TabConfigRule
record
)
{
record
.
set
Status
(
1
);
record
.
set
DeleteFlag
(
1
);
record
.
setCreateTime
(
new
Date
());
record
.
setCreateTime
(
new
Date
());
record
.
setUpdateTime
(
new
Date
());
record
.
setUpdateTime
(
new
Date
());
tabConfigRuleMapper
.
insertSelective
(
record
);
tabConfigRuleMapper
.
insertSelective
(
record
);
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/CustomStoreServiceImpl.java
View file @
776c0582
...
@@ -50,7 +50,7 @@ public class CustomStoreServiceImpl implements CustomStoreService {
...
@@ -50,7 +50,7 @@ public class CustomStoreServiceImpl implements CustomStoreService {
public
int
deleteCustomStore
(
Integer
customStoreId
)
{
public
int
deleteCustomStore
(
Integer
customStoreId
)
{
TabCustomStore
store
=
new
TabCustomStore
();
TabCustomStore
store
=
new
TabCustomStore
();
store
.
setCustomStoreId
(
customStoreId
);
store
.
setCustomStoreId
(
customStoreId
);
store
.
set
Status
(
0
);
store
.
set
DeleteFlag
(
1
);
return
this
.
tabCustomStoreMapper
.
updateByPrimaryKeySelective
(
store
);
return
this
.
tabCustomStoreMapper
.
updateByPrimaryKeySelective
(
store
);
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/DataActuallyPaidConfigServiceImpl.java
View file @
776c0582
...
@@ -10,7 +10,7 @@ import org.springframework.stereotype.Service;
...
@@ -10,7 +10,7 @@ import org.springframework.stereotype.Service;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
/**
*
*
* @ClassName: DataActuallyPaidConfigServiceImpl
* @ClassName: DataActuallyPaidConfigServiceImpl
...
@@ -28,7 +28,7 @@ public class DataActuallyPaidConfigServiceImpl implements DataActuallyPaidConfig
...
@@ -28,7 +28,7 @@ public class DataActuallyPaidConfigServiceImpl implements DataActuallyPaidConfig
Date
now
=
new
Date
();
Date
now
=
new
Date
();
dto
.
setCreateTime
(
now
);
dto
.
setCreateTime
(
now
);
dto
.
setUpdateTime
(
now
);
dto
.
setUpdateTime
(
now
);
dto
.
set
Status
(
1
);
dto
.
set
DeleteFlag
(
1
);
TabDataActuallyPaidConfig
record
=
EntityUtil
.
changeEntityNew
(
TabDataActuallyPaidConfig
.
class
,
dto
);
TabDataActuallyPaidConfig
record
=
EntityUtil
.
changeEntityNew
(
TabDataActuallyPaidConfig
.
class
,
dto
);
tabDataActuallyPaidConfigMapper
.
insert
(
record
);
tabDataActuallyPaidConfigMapper
.
insert
(
record
);
return
record
.
getActuallyPaidConfigId
();
return
record
.
getActuallyPaidConfigId
();
...
@@ -39,7 +39,7 @@ public class DataActuallyPaidConfigServiceImpl implements DataActuallyPaidConfig
...
@@ -39,7 +39,7 @@ public class DataActuallyPaidConfigServiceImpl implements DataActuallyPaidConfig
Date
now
=
new
Date
();
Date
now
=
new
Date
();
dto
.
setCreateTime
(
now
);
dto
.
setCreateTime
(
now
);
dto
.
setUpdateTime
(
now
);
dto
.
setUpdateTime
(
now
);
dto
.
set
Status
(
1
);
dto
.
set
DeleteFlag
(
1
);
tabDataActuallyPaidConfigMapper
.
insert
(
dto
);
tabDataActuallyPaidConfigMapper
.
insert
(
dto
);
return
dto
.
getActuallyPaidConfigId
();
return
dto
.
getActuallyPaidConfigId
();
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/EnterpriseResourceRelServiceImpl.java
View file @
776c0582
...
@@ -27,7 +27,7 @@ public class EnterpriseResourceRelServiceImpl implements EnterpriseResourceRelSe
...
@@ -27,7 +27,7 @@ public class EnterpriseResourceRelServiceImpl implements EnterpriseResourceRelSe
Date
now
=
new
Date
();
Date
now
=
new
Date
();
dto
.
setCreateTime
(
now
);
dto
.
setCreateTime
(
now
);
dto
.
setUpdateTime
(
now
);
dto
.
setUpdateTime
(
now
);
dto
.
set
Status
(
1
);
dto
.
set
DeleteFlag
(
0
);
TabEnterpriseResourceRel
record
=
EntityUtil
.
changeEntityNew
(
TabEnterpriseResourceRel
.
class
,
dto
);
TabEnterpriseResourceRel
record
=
EntityUtil
.
changeEntityNew
(
TabEnterpriseResourceRel
.
class
,
dto
);
tabEnterpriseResourceRelMapper
.
insert
(
record
);
tabEnterpriseResourceRelMapper
.
insert
(
record
);
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/EnterpriseWhiteListServiceImpl.java
View file @
776c0582
...
@@ -29,14 +29,14 @@ public class EnterpriseWhiteListServiceImpl implements EnterpriseWhiteListServic
...
@@ -29,14 +29,14 @@ public class EnterpriseWhiteListServiceImpl implements EnterpriseWhiteListServic
TabEnterpriseWhiteList
record
=
EntityUtil
.
changeEntityNew
(
TabEnterpriseWhiteList
.
class
,
dto
);
TabEnterpriseWhiteList
record
=
EntityUtil
.
changeEntityNew
(
TabEnterpriseWhiteList
.
class
,
dto
);
record
.
setUpdateTime
(
now
);
record
.
setUpdateTime
(
now
);
record
.
setCreateTime
(
now
);
record
.
setCreateTime
(
now
);
record
.
set
Status
(
1
);
record
.
set
DeleteFlag
(
1
);
tabEnterpriseWhiteListMapper
.
insert
(
record
);
tabEnterpriseWhiteListMapper
.
insert
(
record
);
}
}
@Override
@Override
public
void
removeEnterpriseWhiteList
(
Integer
enterpriseId
)
{
public
void
removeEnterpriseWhiteList
(
Integer
enterpriseId
)
{
TabEnterpriseWhiteList
record
=
tabEnterpriseWhiteListMapper
.
getEnterpriseWhiteList
(
enterpriseId
);
TabEnterpriseWhiteList
record
=
tabEnterpriseWhiteListMapper
.
getEnterpriseWhiteList
(
enterpriseId
);
record
.
set
Status
(
0
);
record
.
set
DeleteFlag
(
0
);
tabEnterpriseWhiteListMapper
.
updateByPrimaryKeySelective
(
record
);
tabEnterpriseWhiteListMapper
.
updateByPrimaryKeySelective
(
record
);
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/AppletCustomPageApiServiceImpl.java
View file @
776c0582
...
@@ -239,7 +239,7 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
...
@@ -239,7 +239,7 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
temp
.
setUpdateTime
(
now
);
temp
.
setUpdateTime
(
now
);
temp
.
setSetting
(
json
.
toJSONString
());
temp
.
setSetting
(
json
.
toJSONString
());
temp
.
setPageId
(
pageId
);
temp
.
setPageId
(
pageId
);
temp
.
set
Status
(
1
);
temp
.
set
DeleteFlag
(
1
);
componentList
.
add
(
temp
);
componentList
.
add
(
temp
);
}
}
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/ConfigRuleApiServiceImpl.java
View file @
776c0582
...
@@ -240,12 +240,12 @@ public class ConfigRuleApiServiceImpl implements ConfigRuleApiService {
...
@@ -240,12 +240,12 @@ public class ConfigRuleApiServiceImpl implements ConfigRuleApiService {
if
(
TWO
.
equals
(
record
.
getRuleLevel
()))
{
if
(
TWO
.
equals
(
record
.
getRuleLevel
()))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"分类ID错误,不是分类类型"
);
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"分类ID错误,不是分类类型"
);
}
}
configRuleService
.
update
(
new
TabConfigRule
().
setRuleId
(
ruleId
).
set
Status
(
0
));
configRuleService
.
update
(
new
TabConfigRule
().
setRuleId
(
ruleId
).
set
DeleteFlag
(
0
));
//删除下面的场景
//删除下面的场景
List
<
TabConfigRule
>
list
=
configRuleService
.
listRule
(
null
,
3
,
ruleId
);
List
<
TabConfigRule
>
list
=
configRuleService
.
listRule
(
null
,
3
,
ruleId
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
for
(
TabConfigRule
tabConfigRule
:
list
)
{
for
(
TabConfigRule
tabConfigRule
:
list
)
{
configRuleService
.
update
(
new
TabConfigRule
().
setRuleId
(
tabConfigRule
.
getRuleId
()).
set
Status
(
0
));
configRuleService
.
update
(
new
TabConfigRule
().
setRuleId
(
tabConfigRule
.
getRuleId
()).
set
DeleteFlag
(
0
));
}
}
}
}
return
ServiceResponse
.
success
(
record
.
getRuleName
());
return
ServiceResponse
.
success
(
record
.
getRuleName
());
...
@@ -260,7 +260,7 @@ public class ConfigRuleApiServiceImpl implements ConfigRuleApiService {
...
@@ -260,7 +260,7 @@ public class ConfigRuleApiServiceImpl implements ConfigRuleApiService {
if
(
THREE
.
equals
(
record
.
getRuleLevel
()))
{
if
(
THREE
.
equals
(
record
.
getRuleLevel
()))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"场景ID错误,不是场景类型"
);
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"场景ID错误,不是场景类型"
);
}
}
configRuleService
.
update
(
new
TabConfigRule
().
setRuleId
(
ruleId
).
set
Status
(
0
));
configRuleService
.
update
(
new
TabConfigRule
().
setRuleId
(
ruleId
).
set
DeleteFlag
(
0
));
return
ServiceResponse
.
success
(
record
.
getRuleName
());
return
ServiceResponse
.
success
(
record
.
getRuleName
());
}
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/ConfigRuleEnterpriseApiServiceImpl.java
View file @
776c0582
...
@@ -100,7 +100,7 @@ public class ConfigRuleEnterpriseApiServiceImpl implements ConfigRuleEnterpriseA
...
@@ -100,7 +100,7 @@ public class ConfigRuleEnterpriseApiServiceImpl implements ConfigRuleEnterpriseA
Date
now
=
new
Date
();
Date
now
=
new
Date
();
for
(
Integer
enterpriseId
:
enterpriseIdList
)
{
for
(
Integer
enterpriseId
:
enterpriseIdList
)
{
ruleEnterpriseRelList
.
add
(
new
TabConfigRuleEnterpriseRel
().
setCreateTime
(
now
).
setUpdateTime
(
now
)
ruleEnterpriseRelList
.
add
(
new
TabConfigRuleEnterpriseRel
().
setCreateTime
(
now
).
setUpdateTime
(
now
)
.
setEnterpriseId
(
enterpriseId
).
set
Status
(
1
).
setEnterpriseRuleId
(
enterpriseRuleId
));
.
setEnterpriseId
(
enterpriseId
).
set
DeleteFlag
(
1
).
setEnterpriseRuleId
(
enterpriseRuleId
));
}
}
//解绑
//解绑
configRuleEnterpriseService
.
deleteByEnterpriseRuleId
(
enterpriseRuleId
);
configRuleEnterpriseService
.
deleteByEnterpriseRuleId
(
enterpriseRuleId
);
...
@@ -111,7 +111,7 @@ public class ConfigRuleEnterpriseApiServiceImpl implements ConfigRuleEnterpriseA
...
@@ -111,7 +111,7 @@ public class ConfigRuleEnterpriseApiServiceImpl implements ConfigRuleEnterpriseA
//新增规则树和商户规则关联数据
//新增规则树和商户规则关联数据
List
<
TabConfigRuleRel
>
ruleRelList
=
new
ArrayList
<>(
ruleIdList
.
size
());
List
<
TabConfigRuleRel
>
ruleRelList
=
new
ArrayList
<>(
ruleIdList
.
size
());
for
(
Integer
ruleId
:
ruleIdList
)
{
for
(
Integer
ruleId
:
ruleIdList
)
{
ruleRelList
.
add
(
new
TabConfigRuleRel
().
setCreateTime
(
now
).
setUpdateTime
(
now
).
set
Status
(
1
).
setRuleId
(
ruleId
)
ruleRelList
.
add
(
new
TabConfigRuleRel
().
setCreateTime
(
now
).
setUpdateTime
(
now
).
set
DeleteFlag
(
1
).
setRuleId
(
ruleId
)
.
setEnterpriseRuleId
(
enterpriseRuleId
));
.
setEnterpriseRuleId
(
enterpriseRuleId
));
}
}
//解绑
//解绑
...
@@ -185,7 +185,7 @@ public class ConfigRuleEnterpriseApiServiceImpl implements ConfigRuleEnterpriseA
...
@@ -185,7 +185,7 @@ public class ConfigRuleEnterpriseApiServiceImpl implements ConfigRuleEnterpriseA
if
(
defaultRule
!=
null
&&
defaultRule
.
getEnterpriseRuleId
().
intValue
()
==
enterpriseRuleId
)
{
if
(
defaultRule
!=
null
&&
defaultRule
.
getEnterpriseRuleId
().
intValue
()
==
enterpriseRuleId
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"平台默认规则不允许删除"
);
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"平台默认规则不允许删除"
);
}
}
configRuleEnterpriseService
.
update
(
record
.
set
Status
(
0
));
configRuleEnterpriseService
.
update
(
record
.
set
DeleteFlag
(
0
));
//解绑
//解绑
configRuleEnterpriseService
.
deleteByEnterpriseRuleId
(
enterpriseRuleId
);
configRuleEnterpriseService
.
deleteByEnterpriseRuleId
(
enterpriseRuleId
);
configRuleEnterpriseService
.
deleteByEnterpriseRuleIdForRuleRel
(
enterpriseRuleId
);
configRuleEnterpriseService
.
deleteByEnterpriseRuleIdForRuleRel
(
enterpriseRuleId
);
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/pay/AccountBalanceStrategy.java
View file @
776c0582
package
com
.
gic
.
enterprise
.
service
.
outer
.
impl
.
pay
;
package
com
.
gic
.
enterprise
.
service
.
outer
.
impl
.
pay
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
...
@@ -24,6 +14,15 @@ import com.gic.enterprise.service.BillingAccountApiService;
...
@@ -24,6 +14,15 @@ import com.gic.enterprise.service.BillingAccountApiService;
import
com.gic.enterprise.service.BillingAccountBalanceRecordService
;
import
com.gic.enterprise.service.BillingAccountBalanceRecordService
;
import
com.gic.enterprise.service.BillingPayInfoService
;
import
com.gic.enterprise.service.BillingPayInfoService
;
import
com.gic.enterprise.utils.CreateRandomUtils
;
import
com.gic.enterprise.utils.CreateRandomUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
/**
*
*
...
@@ -88,7 +87,7 @@ public class AccountBalanceStrategy implements PayStrategy {
...
@@ -88,7 +87,7 @@ public class AccountBalanceStrategy implements PayStrategy {
payInfoDTO
.
setTimeStart
(
outPayDTO
.
getTimeStart
());
payInfoDTO
.
setTimeStart
(
outPayDTO
.
getTimeStart
());
payInfoDTO
.
setResultCode
(
BillingPayResultEnum
.
WAIT
.
getCode
());
payInfoDTO
.
setResultCode
(
BillingPayResultEnum
.
WAIT
.
getCode
());
payInfoDTO
.
setInvoiceStatus
(
GlobalInfo
.
DATA_STATUS_DELETE
);
payInfoDTO
.
setInvoiceStatus
(
GlobalInfo
.
DATA_STATUS_DELETE
);
payInfoDTO
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
payInfoDTO
.
set
DeleteFlag
(
0
);
payInfoDTO
.
setCreateTime
(
new
Date
());
payInfoDTO
.
setCreateTime
(
new
Date
());
payInfoDTO
.
setBuyType
(
outPayDTO
.
getBuyType
());
payInfoDTO
.
setBuyType
(
outPayDTO
.
getBuyType
());
payInfoDTO
.
setOrderSerialNumber
(
outPayDTO
.
getOrderSerialNumber
());
payInfoDTO
.
setOrderSerialNumber
(
outPayDTO
.
getOrderSerialNumber
());
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/pay/OfflineStrategy.java
View file @
776c0582
...
@@ -74,7 +74,7 @@ public class OfflineStrategy implements PayStrategy {
...
@@ -74,7 +74,7 @@ public class OfflineStrategy implements PayStrategy {
payInfoDTO
.
setTimeStart
(
outPayDTO
.
getTimeStart
());
payInfoDTO
.
setTimeStart
(
outPayDTO
.
getTimeStart
());
payInfoDTO
.
setResultCode
(
BillingPayResultEnum
.
WAIT
.
getCode
());
payInfoDTO
.
setResultCode
(
BillingPayResultEnum
.
WAIT
.
getCode
());
payInfoDTO
.
setInvoiceStatus
(
GlobalInfo
.
DATA_STATUS_DELETE
);
payInfoDTO
.
setInvoiceStatus
(
GlobalInfo
.
DATA_STATUS_DELETE
);
payInfoDTO
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
payInfoDTO
.
set
DeleteFlag
(
0
);
payInfoDTO
.
setCreateTime
(
new
Date
());
payInfoDTO
.
setCreateTime
(
new
Date
());
payInfoDTO
.
setBuyType
(
outPayDTO
.
getBuyType
());
payInfoDTO
.
setBuyType
(
outPayDTO
.
getBuyType
());
payInfoDTO
.
setOrderSerialNumber
(
outPayDTO
.
getOrderSerialNumber
());
payInfoDTO
.
setOrderSerialNumber
(
outPayDTO
.
getOrderSerialNumber
());
...
@@ -104,7 +104,7 @@ public class OfflineStrategy implements PayStrategy {
...
@@ -104,7 +104,7 @@ public class OfflineStrategy implements PayStrategy {
billingPayInfoDTO
.
setInvoiceStatus
(
GlobalInfo
.
DATA_STATUS_DELETE
);
billingPayInfoDTO
.
setInvoiceStatus
(
GlobalInfo
.
DATA_STATUS_DELETE
);
billingPayInfoDTO
.
setPayType
(
PayTypeEnum
.
OFFLINE_PAY
.
getCode
());
billingPayInfoDTO
.
setPayType
(
PayTypeEnum
.
OFFLINE_PAY
.
getCode
());
billingPayInfoDTO
.
setTimeStart
(
DateUtil
.
formatString
(
new
Date
(),
DateUtil
.
FORMAT_DATETIME_14
));
billingPayInfoDTO
.
setTimeStart
(
DateUtil
.
formatString
(
new
Date
(),
DateUtil
.
FORMAT_DATETIME_14
));
billingPayInfoDTO
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
billingPayInfoDTO
.
set
DeleteFlag
(
0
);
billingPayInfoDTO
.
setCreateTime
(
new
Date
());
billingPayInfoDTO
.
setCreateTime
(
new
Date
());
billingPayInfoDTO
.
setBuyType
(
outPayDTO
.
getBuyType
());
billingPayInfoDTO
.
setBuyType
(
outPayDTO
.
getBuyType
());
billingPayInfoDTO
.
setAuthCode
(
outPayDTO
.
getAuthCode
());
billingPayInfoDTO
.
setAuthCode
(
outPayDTO
.
getAuthCode
());
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/pay/WxPayStrategy.java
View file @
776c0582
...
@@ -176,7 +176,7 @@ public class WxPayStrategy implements PayStrategy {
...
@@ -176,7 +176,7 @@ public class WxPayStrategy implements PayStrategy {
billingPayInfoDTO
.
setCodeUrl
(
serviceResponse
.
getResult
());
billingPayInfoDTO
.
setCodeUrl
(
serviceResponse
.
getResult
());
billingPayInfoDTO
.
setTotalFeePaid
(
totalFee
);
billingPayInfoDTO
.
setTotalFeePaid
(
totalFee
);
billingPayInfoDTO
.
setInvoiceStatus
(
GlobalInfo
.
DATA_STATUS_DELETE
);
billingPayInfoDTO
.
setInvoiceStatus
(
GlobalInfo
.
DATA_STATUS_DELETE
);
billingPayInfoDTO
.
set
Status
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
billingPayInfoDTO
.
set
DeleteFlag
(
0
);
billingPayInfoDTO
.
setCreateTime
(
new
Date
());
billingPayInfoDTO
.
setCreateTime
(
new
Date
());
billingPayInfoDTO
.
setBuyType
(
buyType
);
billingPayInfoDTO
.
setBuyType
(
buyType
);
Integer
payInfoId
=
billingPayInfoService
.
savePayInfo
(
billingPayInfoDTO
);
Integer
payInfoId
=
billingPayInfoService
.
savePayInfo
(
billingPayInfoDTO
);
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabAccountStandardMapper.xml
View file @
776c0582
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
<result
column=
"unit_fee"
jdbcType=
"INTEGER"
property=
"unitFee"
/>
<result
column=
"unit_fee"
jdbcType=
"INTEGER"
property=
"unitFee"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
standard_id, enterprise_id, account_type, unit_fee, create_time, update_time,
status
standard_id, enterprise_id, account_type, unit_fee, create_time, update_time,
delete_flag
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -23,10 +23,10 @@
...
@@ -23,10 +23,10 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabAccountStandard"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabAccountStandard"
>
insert into tab_account_standard (standard_id, enterprise_id, account_type,
insert into tab_account_standard (standard_id, enterprise_id, account_type,
unit_fee, create_time, update_time,
unit_fee, create_time, update_time,
status
)
delete_flag
)
values (#{standardId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{accountType,jdbcType=INTEGER},
values (#{standardId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{accountType,jdbcType=INTEGER},
#{unitFee,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{unitFee,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{
status
,jdbcType=INTEGER})
#{
deleteFlag
,jdbcType=INTEGER})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabAccountStandard"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabAccountStandard"
>
insert into tab_account_standard
insert into tab_account_standard
...
@@ -49,8 +49,8 @@
...
@@ -49,8 +49,8 @@
<if
test=
"updateTime != null"
>
<if
test=
"updateTime != null"
>
update_time,
update_time,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
...
@@ -72,8 +72,8 @@
...
@@ -72,8 +72,8 @@
<if
test=
"updateTime != null"
>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -95,8 +95,8 @@
...
@@ -95,8 +95,8 @@
<if
test=
"updateTime != null"
>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
</set>
</set>
where standard_id = #{standardId,jdbcType=INTEGER}
where standard_id = #{standardId,jdbcType=INTEGER}
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
unit_fee = #{unitFee,jdbcType=INTEGER},
unit_fee = #{unitFee,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status
,jdbcType=INTEGER}
delete_flag = #{deleteFlag
,jdbcType=INTEGER}
where standard_id = #{standardId,jdbcType=INTEGER}
where standard_id = #{standardId,jdbcType=INTEGER}
</update>
</update>
<select
id=
"queryUnitFee"
resultType=
"int"
>
<select
id=
"queryUnitFee"
resultType=
"int"
>
...
@@ -117,6 +117,6 @@
...
@@ -117,6 +117,6 @@
from tab_account_standard
from tab_account_standard
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and account_type = #{accountType}
and account_type = #{accountType}
and
status = 1
and
delete_flag = 0
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabAppletCustomPageMapper.xml
View file @
776c0582
...
@@ -14,13 +14,14 @@
...
@@ -14,13 +14,14 @@
<result
column=
"app_id"
jdbcType=
"VARCHAR"
property=
"appId"
/>
<result
column=
"app_id"
jdbcType=
"VARCHAR"
property=
"appId"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag"
/>
</resultMap>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.gic.enterprise.entity.TabAppletCustomPage"
>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.gic.enterprise.entity.TabAppletCustomPage"
>
<result
column=
"setting"
jdbcType=
"LONGVARCHAR"
property=
"setting"
/>
<result
column=
"setting"
jdbcType=
"LONGVARCHAR"
property=
"setting"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
page_id, enterprise_id, title, entry_condition, quick_guide_switch, background_color, page_type, status,
page_id, enterprise_id, title, entry_condition, quick_guide_switch, background_color, page_type, status,
app_type, app_id, create_time, update_time
app_type, app_id, create_time, update_time
, delete_flag
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
setting
setting
...
@@ -38,12 +39,12 @@
...
@@ -38,12 +39,12 @@
insert into tab_applet_custom_page (page_id, enterprise_id, title,
insert into tab_applet_custom_page (page_id, enterprise_id, title,
entry_condition, quick_guide_switch, background_color, page_type, status, app_type,
entry_condition, quick_guide_switch, background_color, page_type, status, app_type,
app_id, create_time, update_time,
app_id, create_time, update_time,
setting)
setting
, delete_flag
)
values (#{pageId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR},
values (#{pageId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR},
#{entryCondition,jdbcType=INTEGER}, #{quickGuideSwitch,jdbcType=INTEGER}, #{backgroundColor,jdbcType=VARCHAR}, #{pageType,jdbcType=INTEGER},
#{entryCondition,jdbcType=INTEGER}, #{quickGuideSwitch,jdbcType=INTEGER}, #{backgroundColor,jdbcType=VARCHAR}, #{pageType,jdbcType=INTEGER},
#{status,jdbcType=INTEGER}, #{appType,jdbcType=INTEGER},
#{status,jdbcType=INTEGER}, #{appType,jdbcType=INTEGER},
#{appId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{appId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{setting,jdbcType=LONGVARCHAR})
#{setting,jdbcType=LONGVARCHAR}
, #{deleteFlag, jdbcType=INTEGER}
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabAppletCustomPage"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabAppletCustomPage"
>
insert into tab_applet_custom_page
insert into tab_applet_custom_page
...
@@ -87,6 +88,9 @@
...
@@ -87,6 +88,9 @@
<if
test=
"setting != null"
>
<if
test=
"setting != null"
>
setting,
setting,
</if>
</if>
<if
test=
"deleteFlag != null"
>
delete_flag,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"pageId != null"
>
<if
test=
"pageId != null"
>
...
@@ -128,6 +132,9 @@
...
@@ -128,6 +132,9 @@
<if
test=
"setting != null"
>
<if
test=
"setting != null"
>
#{setting,jdbcType=LONGVARCHAR},
#{setting,jdbcType=LONGVARCHAR},
</if>
</if>
<if
test=
"deleteFlag != null"
>
#{deleteFlag,jdbcType=INTEGER},
</if>
</trim>
</trim>
</insert>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabAppletCustomPage"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabAppletCustomPage"
>
...
@@ -169,6 +176,9 @@
...
@@ -169,6 +176,9 @@
<if
test=
"setting != null"
>
<if
test=
"setting != null"
>
setting = #{setting,jdbcType=LONGVARCHAR},
setting = #{setting,jdbcType=LONGVARCHAR},
</if>
</if>
<if
test=
"deleteFlag != null"
>
delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if>
</set>
</set>
where page_id = #{pageId,jdbcType=INTEGER}
where page_id = #{pageId,jdbcType=INTEGER}
</update>
</update>
...
@@ -185,7 +195,8 @@
...
@@ -185,7 +195,8 @@
app_id = #{appId,jdbcType=VARCHAR},
app_id = #{appId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
setting = #{setting,jdbcType=LONGVARCHAR}
setting = #{setting,jdbcType=LONGVARCHAR},
delete_flag = #{deleteFlag,jdbcType=INTEGER}
where page_id = #{pageId,jdbcType=INTEGER}
where page_id = #{pageId,jdbcType=INTEGER}
</update>
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.enterprise.entity.TabAppletCustomPage"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.enterprise.entity.TabAppletCustomPage"
>
...
@@ -200,7 +211,8 @@
...
@@ -200,7 +211,8 @@
app_type = #{appType,jdbcType=INTEGER},
app_type = #{appType,jdbcType=INTEGER},
app_id = #{appId,jdbcType=VARCHAR},
app_id = #{appId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP},
delete_flag = #{deleteFlag,jdbcType=INTEGER}
where page_id = #{pageId,jdbcType=INTEGER}
where page_id = #{pageId,jdbcType=INTEGER}
</update>
</update>
...
@@ -210,7 +222,7 @@
...
@@ -210,7 +222,7 @@
,
,
<include
refid=
"Blob_Column_List"
/>
<include
refid=
"Blob_Column_List"
/>
from tab_applet_custom_page
from tab_applet_custom_page
where status between 1 and 2
where status between 1 and 2
and delete_flag = 0
<if
test=
"search != null and search != '' "
>
<if
test=
"search != null and search != '' "
>
and title like concat('%', #{search}, '%')
and title like concat('%', #{search}, '%')
</if>
</if>
...
@@ -238,6 +250,7 @@
...
@@ -238,6 +250,7 @@
<update
id=
"disableFetch"
>
<update
id=
"disableFetch"
>
update tab_applet_custom_page set status = 2
update tab_applet_custom_page set status = 2
where status = 1
where status = 1
and delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and app_id = #{appId}
and app_id = #{appId}
and page_type = #{pageType}
and page_type = #{pageType}
...
@@ -251,6 +264,7 @@
...
@@ -251,6 +264,7 @@
<include
refid=
"Blob_Column_List"
/>
<include
refid=
"Blob_Column_List"
/>
from tab_applet_custom_page
from tab_applet_custom_page
where status = 1
where status = 1
and delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and app_id = #{appId}
and app_id = #{appId}
and page_type = #{pageType}
and page_type = #{pageType}
...
@@ -263,7 +277,7 @@
...
@@ -263,7 +277,7 @@
and app_id = #{appId}
and app_id = #{appId}
and page_type = #{pageType}
and page_type = #{pageType}
and app_type = #{appType}
and app_type = #{appType}
and
status !
= 0
and
delete_flag
= 0
</select>
</select>
<select
id=
"getDefault"
resultMap=
"BaseResultMap"
>
<select
id=
"getDefault"
resultMap=
"BaseResultMap"
>
...
@@ -273,12 +287,13 @@
...
@@ -273,12 +287,13 @@
<include
refid=
"Blob_Column_List"
/>
<include
refid=
"Blob_Column_List"
/>
from tab_applet_custom_page
from tab_applet_custom_page
where status = 1
where status = 1
and delete_flag
and enterprise_id = -1
and enterprise_id = -1
and page_type = #{pageType}
and page_type = #{pageType}
</select>
</select>
<update
id=
"deleteFetch"
>
<update
id=
"deleteFetch"
>
update tab_applet_custom_page set
status = 0
update tab_applet_custom_page set
delete_flag = 1
where page_id in
where page_id in
<foreach
collection=
"list"
item=
"item"
separator=
","
open=
"("
close=
")"
index=
""
>
<foreach
collection=
"list"
item=
"item"
separator=
","
open=
"("
close=
")"
index=
""
>
#{item}
#{item}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabAppletPageComponentMapper.xml
View file @
776c0582
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<result
column=
"page_id"
jdbcType=
"INTEGER"
property=
"pageId"
/>
<result
column=
"page_id"
jdbcType=
"INTEGER"
property=
"pageId"
/>
<result
column=
"component_type"
jdbcType=
"VARCHAR"
property=
"componentType"
/>
<result
column=
"component_type"
jdbcType=
"VARCHAR"
property=
"componentType"
/>
<result
column=
"component_index"
jdbcType=
"INTEGER"
property=
"componentIndex"
/>
<result
column=
"component_index"
jdbcType=
"INTEGER"
property=
"componentIndex"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<result
column=
"setting"
jdbcType=
"LONGVARCHAR"
property=
"setting"
/>
<result
column=
"setting"
jdbcType=
"LONGVARCHAR"
property=
"setting"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
component_id, enterprise_id, page_id, component_type, component_index,
status, create_time,
component_id, enterprise_id, page_id, component_type, component_index,
delete_flag, create_time,
update_time
update_time
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
...
@@ -32,11 +32,11 @@
...
@@ -32,11 +32,11 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabAppletPageComponent"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabAppletPageComponent"
>
insert into tab_applet_page_component (component_id, enterprise_id, page_id,
insert into tab_applet_page_component (component_id, enterprise_id, page_id,
component_type, component_index,
status,
component_type, component_index,
delete_flag,
create_time, update_time, setting
create_time, update_time, setting
)
)
values (#{componentId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{pageId,jdbcType=INTEGER},
values (#{componentId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{pageId,jdbcType=INTEGER},
#{componentType,jdbcType=VARCHAR}, #{componentIndex,jdbcType=INTEGER}, #{
status,jdbcType=INTEGER},
#{componentType,jdbcType=VARCHAR}, #{componentIndex,jdbcType=INTEGER}, #{
deleteFlag,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{setting,jdbcType=LONGVARCHAR}
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{setting,jdbcType=LONGVARCHAR}
)
)
</insert>
</insert>
...
@@ -58,8 +58,8 @@
...
@@ -58,8 +58,8 @@
<if
test=
"componentIndex != null"
>
<if
test=
"componentIndex != null"
>
component_index,
component_index,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -87,8 +87,8 @@
...
@@ -87,8 +87,8 @@
<if
test=
"componentIndex != null"
>
<if
test=
"componentIndex != null"
>
#{componentIndex,jdbcType=INTEGER},
#{componentIndex,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -116,8 +116,8 @@
...
@@ -116,8 +116,8 @@
<if
test=
"componentIndex != null"
>
<if
test=
"componentIndex != null"
>
component_index = #{componentIndex,jdbcType=INTEGER},
component_index = #{componentIndex,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
page_id = #{pageId,jdbcType=INTEGER},
page_id = #{pageId,jdbcType=INTEGER},
component_type = #{componentType,jdbcType=VARCHAR},
component_type = #{componentType,jdbcType=VARCHAR},
component_index = #{componentIndex,jdbcType=INTEGER},
component_index = #{componentIndex,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
setting = #{setting,jdbcType=LONGVARCHAR}
setting = #{setting,jdbcType=LONGVARCHAR}
...
@@ -149,21 +149,21 @@
...
@@ -149,21 +149,21 @@
page_id = #{pageId,jdbcType=INTEGER},
page_id = #{pageId,jdbcType=INTEGER},
component_type = #{componentType,jdbcType=VARCHAR},
component_type = #{componentType,jdbcType=VARCHAR},
component_index = #{componentIndex,jdbcType=INTEGER},
component_index = #{componentIndex,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where component_id = #{componentId,jdbcType=INTEGER}
where component_id = #{componentId,jdbcType=INTEGER}
</update>
</update>
<update
id=
"deleteByPageId"
>
<update
id=
"deleteByPageId"
>
update tab_applet_page_component set
status = 0
update tab_applet_page_component set
delete_flag = 1
where
status = 1
where
delete_flag = 0
and page_id = #{pageId}
and page_id = #{pageId}
</update>
</update>
<insert
id=
"insertFetch"
parameterType=
"java.util.List"
>
<insert
id=
"insertFetch"
parameterType=
"java.util.List"
>
insert into tab_applet_page_component (component_id, enterprise_id, page_id,
insert into tab_applet_page_component (component_id, enterprise_id, page_id,
component_type, component_index,
status
,
component_type, component_index,
delete_flag
,
create_time, update_time, setting
create_time, update_time, setting
)
)
VALUES
VALUES
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
#{item.pageId},
#{item.pageId},
#{item.componentType},
#{item.componentType},
#{item.componentIndex},
#{item.componentIndex},
#{item.
status
},
#{item.
deleteFlag
},
#{item.createTime},
#{item.createTime},
#{item.updateTime},
#{item.updateTime},
#{item.setting}
#{item.setting}
...
@@ -185,7 +185,7 @@
...
@@ -185,7 +185,7 @@
<select
id=
"listByPageId"
resultMap=
"BaseResultMap"
>
<select
id=
"listByPageId"
resultMap=
"BaseResultMap"
>
SELECT
<include
refid=
"Base_Column_List"
></include>
,
<include
refid=
"Blob_Column_List"
></include>
SELECT
<include
refid=
"Base_Column_List"
></include>
,
<include
refid=
"Blob_Column_List"
></include>
from tab_applet_page_component
from tab_applet_page_component
where
status
= 1
where
delete_flag
= 1
and page_id = #{pageId}
and page_id = #{pageId}
order by component_index
order by component_index
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabAppletServiceConfigMapper.xml
View file @
776c0582
...
@@ -10,11 +10,11 @@
...
@@ -10,11 +10,11 @@
<result
column=
"config_id"
jdbcType=
"BIGINT"
property=
"configId"
/>
<result
column=
"config_id"
jdbcType=
"BIGINT"
property=
"configId"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
applet_service_id, enterprise_id, app_id, name, type, config_id, create_time, update_time,
applet_service_id, enterprise_id, app_id, name, type, config_id, create_time, update_time,
status
delete_flag
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -26,11 +26,11 @@
...
@@ -26,11 +26,11 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabAppletServiceConfig"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabAppletServiceConfig"
>
insert into tab_applet_service_config (applet_service_id, enterprise_id, app_id,
insert into tab_applet_service_config (applet_service_id, enterprise_id, app_id,
name, type, config_id,
name, type, config_id,
create_time, update_time,
status
create_time, update_time,
delete_flag
)
)
values (#{appletServiceId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{appId,jdbcType=VARCHAR},
values (#{appletServiceId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{appId,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{configId,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{configId,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{
status
,jdbcType=INTEGER}
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{
deleteFlag
,jdbcType=INTEGER}
)
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabAppletServiceConfig"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabAppletServiceConfig"
>
...
@@ -60,8 +60,8 @@
...
@@ -60,8 +60,8 @@
<if
test=
"updateTime != null"
>
<if
test=
"updateTime != null"
>
update_time,
update_time,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
...
@@ -89,8 +89,8 @@
...
@@ -89,8 +89,8 @@
<if
test=
"updateTime != null"
>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -118,8 +118,8 @@
...
@@ -118,8 +118,8 @@
<if
test=
"updateTime != null"
>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
</set>
</set>
where applet_service_id = #{appletServiceId,jdbcType=INTEGER}
where applet_service_id = #{appletServiceId,jdbcType=INTEGER}
...
@@ -133,13 +133,13 @@
...
@@ -133,13 +133,13 @@
config_id = #{configId,jdbcType=BIGINT},
config_id = #{configId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status
,jdbcType=INTEGER}
delete_flag = #{deleteFlag
,jdbcType=INTEGER}
where applet_service_id = #{appletServiceId,jdbcType=INTEGER}
where applet_service_id = #{appletServiceId,jdbcType=INTEGER}
</update>
</update>
<insert
id=
"insertList"
>
<insert
id=
"insertList"
>
insert into tab_applet_service_config (applet_service_id, enterprise_id, app_id,
insert into tab_applet_service_config (applet_service_id, enterprise_id, app_id,
name, type, create_time,
name, type, create_time,
update_time,
status
, config_id)
update_time,
delete_flag
, config_id)
values
values
<foreach
collection=
"list"
index=
"index"
item=
"item"
separator=
","
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
separator=
","
>
(
(
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
<if
test=
"type != null "
>
<if
test=
"type != null "
>
and type = #{type}
and type = #{type}
</if>
</if>
and
status = 1
and
delete_flag = 0
<if
test=
"search != null and search != '' "
>
<if
test=
"search != null and search != '' "
>
and name like concat('%', #{search}, '%')
and name like concat('%', #{search}, '%')
</if>
</if>
...
@@ -180,7 +180,7 @@
...
@@ -180,7 +180,7 @@
from tab_applet_service_config
from tab_applet_service_config
where app_id = #{appId}
where app_id = #{appId}
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and
status = 1
and
delete_flag = 0
</select>
</select>
<select
id=
"getByConfigId"
resultMap=
"BaseResultMap"
>
<select
id=
"getByConfigId"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -188,10 +188,10 @@
...
@@ -188,10 +188,10 @@
from tab_applet_service_config
from tab_applet_service_config
where config_id = #{configId}
where config_id = #{configId}
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and
status = 1
and
delete_flag = 0
</select>
</select>
<update
id=
"delByAppIdList"
>
<update
id=
"delByAppIdList"
>
update tab_applet_service_config set
status = 0
update tab_applet_service_config set
delete_flag = 1
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
<if
test=
"type != null "
>
<if
test=
"type != null "
>
and type = #{type}
and type = #{type}
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
</update>
</update>
<!-- delByConfigIdList-->
<!-- delByConfigIdList-->
<update
id=
"delByConfigIdList"
>
<update
id=
"delByConfigIdList"
>
update tab_applet_service_config set
status = 0
where enterprise_id = #{enterpriseId} and type = #{type}
update tab_applet_service_config set
delete_flag = 1
where enterprise_id = #{enterpriseId} and type = #{type}
<if
test=
"null != ids and ids.size > 0"
>
<if
test=
"null != ids and ids.size > 0"
>
and config_id not in
and config_id not in
<foreach
collection=
"ids"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"ids"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabAppletWechatMenuMapper.xml
View file @
776c0582
...
@@ -13,13 +13,13 @@
...
@@ -13,13 +13,13 @@
<result
column=
"app_key"
jdbcType=
"VARCHAR"
property=
"appKey"
/>
<result
column=
"app_key"
jdbcType=
"VARCHAR"
property=
"appKey"
/>
<result
column=
"parent_menu_id"
jdbcType=
"CHAR"
property=
"parentMenuId"
/>
<result
column=
"parent_menu_id"
jdbcType=
"CHAR"
property=
"parentMenuId"
/>
<result
column=
"sort"
jdbcType=
"INTEGER"
property=
"sort"
/>
<result
column=
"sort"
jdbcType=
"INTEGER"
property=
"sort"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
menu_id, enterprise_id, menu_name, menu_type, menu_code, menu_url, menu_url_para,
menu_id, enterprise_id, menu_name, menu_type, menu_code, menu_url, menu_url_para,
content, app_key, parent_menu_id, sort,
status
, create_time, update_time
content, app_key, parent_menu_id, sort,
delete_flag
, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -32,12 +32,12 @@
...
@@ -32,12 +32,12 @@
insert into tab_applet_wechat_menu (menu_id, enterprise_id, menu_name,
insert into tab_applet_wechat_menu (menu_id, enterprise_id, menu_name,
menu_type, menu_code, menu_url,
menu_type, menu_code, menu_url,
menu_url_para, content, app_key,
menu_url_para, content, app_key,
parent_menu_id, sort,
status,
parent_menu_id, sort,
delete_flag,
create_time, update_time)
create_time, update_time)
values (#{menuId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{menuName,jdbcType=VARCHAR},
values (#{menuId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{menuName,jdbcType=VARCHAR},
#{menuType,jdbcType=INTEGER}, #{menuCode,jdbcType=VARCHAR}, #{menuUrl,jdbcType=VARCHAR},
#{menuType,jdbcType=INTEGER}, #{menuCode,jdbcType=VARCHAR}, #{menuUrl,jdbcType=VARCHAR},
#{menuUrlPara,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR},
#{menuUrlPara,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR},
#{parentMenuId,jdbcType=CHAR}, #{sort,jdbcType=INTEGER}, #{
status,jdbcType=INTEGER},
#{parentMenuId,jdbcType=CHAR}, #{sort,jdbcType=INTEGER}, #{
deleteFlag,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabAppletWechatMenu"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabAppletWechatMenu"
>
...
@@ -76,8 +76,8 @@
...
@@ -76,8 +76,8 @@
<if
test=
"sort != null"
>
<if
test=
"sort != null"
>
sort,
sort,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -120,8 +120,8 @@
...
@@ -120,8 +120,8 @@
<if
test=
"sort != null"
>
<if
test=
"sort != null"
>
#{sort,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -164,8 +164,8 @@
...
@@ -164,8 +164,8 @@
<if
test=
"sort != null"
>
<if
test=
"sort != null"
>
sort = #{sort,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -188,7 +188,7 @@
...
@@ -188,7 +188,7 @@
app_key = #{appKey,jdbcType=VARCHAR},
app_key = #{appKey,jdbcType=VARCHAR},
parent_menu_id = #{parentMenuId,jdbcType=CHAR},
parent_menu_id = #{parentMenuId,jdbcType=CHAR},
sort = #{sort,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where menu_id = #{menuId,jdbcType=INTEGER}
where menu_id = #{menuId,jdbcType=INTEGER}
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
<select
id=
"listByParentId"
resultMap=
"BaseResultMap"
>
<select
id=
"listByParentId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_applet_wechat_menu
from tab_applet_wechat_menu
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and app_key = #{appKey}
and app_key = #{appKey}
and parent_menu_id = #{parentId}
and parent_menu_id = #{parentId}
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
<select
id=
"countByMenuName"
resultType=
"int"
>
<select
id=
"countByMenuName"
resultType=
"int"
>
select count(1)
select count(1)
from tab_applet_wechat_menu
from tab_applet_wechat_menu
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and app_key = #{appKey}
and app_key = #{appKey}
and menu_name = #{menuName}
and menu_name = #{menuName}
...
@@ -220,7 +220,7 @@
...
@@ -220,7 +220,7 @@
<select
id=
"listAll"
resultMap=
"BaseResultMap"
>
<select
id=
"listAll"
resultMap=
"BaseResultMap"
>
SELECT
<include
refid=
"Base_Column_List"
></include>
SELECT
<include
refid=
"Base_Column_List"
></include>
from tab_applet_wechat_menu
from tab_applet_wechat_menu
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and app_key = #{appKey}
and app_key = #{appKey}
...
@@ -228,8 +228,8 @@
...
@@ -228,8 +228,8 @@
</select>
</select>
<update
id=
"deleteWechatMenu"
>
<update
id=
"deleteWechatMenu"
>
update tab_applet_wechat_menu set
status = 0
update tab_applet_wechat_menu set
delete_flag = 1
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and app_key = #{appKey}
and app_key = #{appKey}
</update>
</update>
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabAuditLogMapper.xml
View file @
776c0582
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<result
column=
"auditor_phone"
jdbcType=
"VARCHAR"
property=
"auditorPhone"
/>
<result
column=
"auditor_phone"
jdbcType=
"VARCHAR"
property=
"auditorPhone"
/>
<result
column=
"audit_time"
jdbcType=
"TIMESTAMP"
property=
"auditTime"
/>
<result
column=
"audit_time"
jdbcType=
"TIMESTAMP"
property=
"auditTime"
/>
<result
column=
"audit_result"
jdbcType=
"INTEGER"
property=
"auditResult"
/>
<result
column=
"audit_result"
jdbcType=
"INTEGER"
property=
"auditResult"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"extra_info"
jdbcType=
"VARCHAR"
property=
"extraInfo"
/>
<result
column=
"extra_info"
jdbcType=
"VARCHAR"
property=
"extraInfo"
/>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
audit_log_id, enterprise_id, apply_user_id, apply_user_name, apply_time, project_item_id,
audit_log_id, enterprise_id, apply_user_id, apply_user_name, apply_time, project_item_id,
project_item_name, auditor_id, auditor_name, auditor_phone, audit_time, audit_result,
project_item_name, auditor_id, auditor_name, auditor_phone, audit_time, audit_result,
status
, create_time, update_time, extra_info, audit_reason, audit_type, audit_expire_time
delete_flag
, create_time, update_time, extra_info, audit_reason, audit_type, audit_expire_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -39,14 +39,14 @@
...
@@ -39,14 +39,14 @@
apply_user_name, apply_time, project_item_id,
apply_user_name, apply_time, project_item_id,
project_item_name, auditor_id, auditor_name,
project_item_name, auditor_id, auditor_name,
auditor_phone, audit_time, audit_result,
auditor_phone, audit_time, audit_result,
status, create_time, update_time,
delete_flag, create_time, update_time,
extra_info, audit_reason, audit_type,
extra_info, audit_reason, audit_type,
audit_expire_time)
audit_expire_time)
values (#{auditLogId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{applyUserId,jdbcType=INTEGER},
values (#{auditLogId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{applyUserId,jdbcType=INTEGER},
#{applyUserName,jdbcType=VARCHAR}, #{applyTime,jdbcType=TIMESTAMP}, #{projectItemId,jdbcType=INTEGER},
#{applyUserName,jdbcType=VARCHAR}, #{applyTime,jdbcType=TIMESTAMP}, #{projectItemId,jdbcType=INTEGER},
#{projectItemName,jdbcType=VARCHAR}, #{auditorId,jdbcType=INTEGER}, #{auditorName,jdbcType=VARCHAR},
#{projectItemName,jdbcType=VARCHAR}, #{auditorId,jdbcType=INTEGER}, #{auditorName,jdbcType=VARCHAR},
#{auditorPhone,jdbcType=VARCHAR}, #{auditTime,jdbcType=TIMESTAMP}, #{auditResult,jdbcType=INTEGER},
#{auditorPhone,jdbcType=VARCHAR}, #{auditTime,jdbcType=TIMESTAMP}, #{auditResult,jdbcType=INTEGER},
#{
status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{
deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{extraInfo,jdbcType=VARCHAR}, #{auditReason,jdbcType=VARCHAR}, #{auditType,jdbcType=INTEGER},
#{extraInfo,jdbcType=VARCHAR}, #{auditReason,jdbcType=VARCHAR}, #{auditType,jdbcType=INTEGER},
#{auditExpireTime,jdbcType=TIMESTAMP})
#{auditExpireTime,jdbcType=TIMESTAMP})
</insert>
</insert>
...
@@ -92,8 +92,8 @@
...
@@ -92,8 +92,8 @@
<if
test=
"auditResult != null"
>
<if
test=
"auditResult != null"
>
audit_result,
audit_result,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -151,8 +151,8 @@
...
@@ -151,8 +151,8 @@
<if
test=
"auditResult != null"
>
<if
test=
"auditResult != null"
>
#{auditResult,jdbcType=INTEGER},
#{auditResult,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -210,8 +210,8 @@
...
@@ -210,8 +210,8 @@
<if
test=
"auditResult != null"
>
<if
test=
"auditResult != null"
>
audit_result = #{auditResult,jdbcType=INTEGER},
audit_result = #{auditResult,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -247,7 +247,7 @@
...
@@ -247,7 +247,7 @@
auditor_phone = #{auditorPhone,jdbcType=VARCHAR},
auditor_phone = #{auditorPhone,jdbcType=VARCHAR},
audit_time = #{auditTime,jdbcType=TIMESTAMP},
audit_time = #{auditTime,jdbcType=TIMESTAMP},
audit_result = #{auditResult,jdbcType=INTEGER},
audit_result = #{auditResult,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
extra_info = #{extraInfo,jdbcType=VARCHAR},
extra_info = #{extraInfo,jdbcType=VARCHAR},
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_audit_log
from tab_audit_log
where
status = 1
where
delete_flag = 0
and audit_result = 0
and audit_result = 0
<if
test=
"enterpriseId != null "
>
<if
test=
"enterpriseId != null "
>
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
...
@@ -278,7 +278,7 @@
...
@@ -278,7 +278,7 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_audit_log
from tab_audit_log
where
status = 1
where
delete_flag = 0
<if
test=
"enterpriseId != null "
>
<if
test=
"enterpriseId != null "
>
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
</if>
</if>
...
@@ -301,7 +301,7 @@
...
@@ -301,7 +301,7 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_audit_log
from tab_audit_log
where
status = 1
where
delete_flag = 0
and audit_type = 1
and audit_type = 1
and audit_expire_time
<
#{auditExpireTime}
and audit_expire_time
<
#{auditExpireTime}
and project_item_id = #{projectItemId}
and project_item_id = #{projectItemId}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabAuditProcessMapper.xml
View file @
776c0582
...
@@ -10,13 +10,13 @@
...
@@ -10,13 +10,13 @@
<result
column=
"auditor_id"
jdbcType=
"INTEGER"
property=
"auditorId"
/>
<result
column=
"auditor_id"
jdbcType=
"INTEGER"
property=
"auditorId"
/>
<result
column=
"audit_result"
jdbcType=
"INTEGER"
property=
"auditResult"
/>
<result
column=
"audit_result"
jdbcType=
"INTEGER"
property=
"auditResult"
/>
<result
column=
"auditor_type"
jdbcType=
"INTEGER"
property=
"auditorType"
/>
<result
column=
"auditor_type"
jdbcType=
"INTEGER"
property=
"auditorType"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
audit_process_id, enterprise_id, audit_log_id, project_item_id, is_platform, auditor_id,
audit_process_id, enterprise_id, audit_log_id, project_item_id, is_platform, auditor_id,
audit_result, auditor_type,
status
, create_time, update_time
audit_result, auditor_type,
delete_flag
, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -28,11 +28,11 @@
...
@@ -28,11 +28,11 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabAuditProcess"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabAuditProcess"
>
insert into tab_audit_process (audit_process_id, enterprise_id, audit_log_id,
insert into tab_audit_process (audit_process_id, enterprise_id, audit_log_id,
project_item_id, is_platform, auditor_id,
project_item_id, is_platform, auditor_id,
audit_result, auditor_type,
status,
audit_result, auditor_type,
delete_flag,
create_time, update_time)
create_time, update_time)
values (#{auditProcessId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{auditLogId,jdbcType=INTEGER},
values (#{auditProcessId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{auditLogId,jdbcType=INTEGER},
#{projectItemId,jdbcType=INTEGER}, #{isPlatform,jdbcType=INTEGER}, #{auditorId,jdbcType=INTEGER},
#{projectItemId,jdbcType=INTEGER}, #{isPlatform,jdbcType=INTEGER}, #{auditorId,jdbcType=INTEGER},
#{auditResult,jdbcType=INTEGER}, #{auditorType,jdbcType=INTEGER}, #{
status,jdbcType=INTEGER},
#{auditResult,jdbcType=INTEGER}, #{auditorType,jdbcType=INTEGER}, #{
deleteFlag,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabAuditProcess"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabAuditProcess"
>
...
@@ -62,8 +62,8 @@
...
@@ -62,8 +62,8 @@
<if
test=
"auditorType != null"
>
<if
test=
"auditorType != null"
>
auditor_type,
auditor_type,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -97,8 +97,8 @@
...
@@ -97,8 +97,8 @@
<if
test=
"auditorType != null"
>
<if
test=
"auditorType != null"
>
#{auditorType,jdbcType=INTEGER},
#{auditorType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -132,8 +132,8 @@
...
@@ -132,8 +132,8 @@
<if
test=
"auditorType != null"
>
<if
test=
"auditorType != null"
>
auditor_type = #{auditorType,jdbcType=INTEGER},
auditor_type = #{auditorType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
auditor_id = #{auditorId,jdbcType=INTEGER},
auditor_id = #{auditorId,jdbcType=INTEGER},
audit_result = #{auditResult,jdbcType=INTEGER},
audit_result = #{auditResult,jdbcType=INTEGER},
auditor_type = #{auditorType,jdbcType=INTEGER},
auditor_type = #{auditorType,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where audit_process_id = #{auditProcessId,jdbcType=INTEGER}
where audit_process_id = #{auditProcessId,jdbcType=INTEGER}
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
from tab_audit_process
from tab_audit_process
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and audit_log_id = #{auditLogId}
and audit_log_id = #{auditLogId}
and
status = 1
and
delete_flag = 0
and auditor_type
<>
#{auditorType}
and auditor_type
<>
#{auditorType}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingAccountBalanceRecordMapper.xml
View file @
776c0582
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<id
column=
"account_balance_record_id"
jdbcType=
"INTEGER"
property=
"accountBalanceRecordId"
/>
<id
column=
"account_balance_record_id"
jdbcType=
"INTEGER"
property=
"accountBalanceRecordId"
/>
<result
column=
"product_name"
jdbcType=
"VARCHAR"
property=
"productName"
/>
<result
column=
"product_name"
jdbcType=
"VARCHAR"
property=
"productName"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"product_type"
jdbcType=
"INTEGER"
property=
"productType"
/>
<result
column=
"product_type"
jdbcType=
"INTEGER"
property=
"productType"
/>
<result
column=
"bill_type"
jdbcType=
"INTEGER"
property=
"billType"
/>
<result
column=
"bill_type"
jdbcType=
"INTEGER"
property=
"billType"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<result
column=
"operator_name"
jdbcType=
"VARCHAR"
property=
"operatorName"
/>
<result
column=
"operator_name"
jdbcType=
"VARCHAR"
property=
"operatorName"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
account_balance_record_id, product_name, pay_type,
status, product_type, bill_type,
account_balance_record_id, product_name, pay_type,
delete_flag, product_type, bill_type,
create_time, order_id, deduction_time, enterprise_id, order_serial_number, request_code,
create_time, order_id, deduction_time, enterprise_id, order_serial_number, request_code,
fee, fee_paid, fee_discount, operator_id, operator_name
fee, fee_paid, fee_discount, operator_id, operator_name
</sql>
</sql>
...
@@ -34,14 +34,14 @@
...
@@ -34,14 +34,14 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingAccountBalanceRecord"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingAccountBalanceRecord"
>
insert into tab_billing_account_balance_record (account_balance_record_id, product_name,
insert into tab_billing_account_balance_record (account_balance_record_id, product_name,
pay_type,
status, product_type,
pay_type,
delete_flag, product_type,
bill_type, create_time, order_id,
bill_type, create_time, order_id,
deduction_time, enterprise_id, order_serial_number,
deduction_time, enterprise_id, order_serial_number,
request_code, fee, fee_paid,
request_code, fee, fee_paid,
fee_discount, operator_id, operator_name
fee_discount, operator_id, operator_name
)
)
values (#{accountBalanceRecordId,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR},
values (#{accountBalanceRecordId,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR},
#{payType,jdbcType=INTEGER}, #{
status,jdbcType=INTEGER}, #{productType,jdbcType=INTEGER},
#{payType,jdbcType=INTEGER}, #{
deleteFlag,jdbcType=INTEGER}, #{productType,jdbcType=INTEGER},
#{billType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{orderId,jdbcType=INTEGER},
#{billType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{orderId,jdbcType=INTEGER},
#{deductionTime,jdbcType=TIMESTAMP}, #{enterpriseId,jdbcType=INTEGER}, #{orderSerialNumber,jdbcType=VARCHAR},
#{deductionTime,jdbcType=TIMESTAMP}, #{enterpriseId,jdbcType=INTEGER}, #{orderSerialNumber,jdbcType=VARCHAR},
#{requestCode,jdbcType=VARCHAR}, #{fee,jdbcType=DOUBLE}, #{feePaid,jdbcType=DOUBLE},
#{requestCode,jdbcType=VARCHAR}, #{fee,jdbcType=DOUBLE}, #{feePaid,jdbcType=DOUBLE},
...
@@ -60,8 +60,8 @@
...
@@ -60,8 +60,8 @@
<if
test=
"payType != null"
>
<if
test=
"payType != null"
>
pay_type,
pay_type,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"productType != null"
>
<if
test=
"productType != null"
>
product_type,
product_type,
...
@@ -113,8 +113,8 @@
...
@@ -113,8 +113,8 @@
<if
test=
"payType != null"
>
<if
test=
"payType != null"
>
#{payType,jdbcType=INTEGER},
#{payType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"productType != null"
>
<if
test=
"productType != null"
>
#{productType,jdbcType=INTEGER},
#{productType,jdbcType=INTEGER},
...
@@ -166,8 +166,8 @@
...
@@ -166,8 +166,8 @@
<if
test=
"payType != null"
>
<if
test=
"payType != null"
>
pay_type = #{payType,jdbcType=INTEGER},
pay_type = #{payType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"productType != null"
>
<if
test=
"productType != null"
>
product_type = #{productType,jdbcType=INTEGER},
product_type = #{productType,jdbcType=INTEGER},
...
@@ -215,7 +215,7 @@
...
@@ -215,7 +215,7 @@
update tab_billing_account_balance_record
update tab_billing_account_balance_record
set product_name = #{productName,jdbcType=VARCHAR},
set product_name = #{productName,jdbcType=VARCHAR},
pay_type = #{payType,jdbcType=INTEGER},
pay_type = #{payType,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
product_type = #{productType,jdbcType=INTEGER},
product_type = #{productType,jdbcType=INTEGER},
bill_type = #{billType,jdbcType=INTEGER},
bill_type = #{billType,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -237,7 +237,7 @@
...
@@ -237,7 +237,7 @@
DATE_FORMAT(deduction_time,'%Y-%m-%d') statisticsDate,
DATE_FORMAT(deduction_time,'%Y-%m-%d') statisticsDate,
ifnull(sum(fee), 0) fee
ifnull(sum(fee), 0) fee
from tab_billing_account_balance_record
from tab_billing_account_balance_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
...
@@ -253,7 +253,7 @@
...
@@ -253,7 +253,7 @@
select
select
ifnull(sum(fee), 0)
ifnull(sum(fee), 0)
from tab_billing_account_balance_record
from tab_billing_account_balance_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
<if
test=
"dateType == 1 "
>
<if
test=
"dateType == 1 "
>
and date_format(deduction_time,'%Y-%m') = date_format(now(),'%Y-%m')
and date_format(deduction_time,'%Y-%m') = date_format(now(),'%Y-%m')
...
@@ -266,7 +266,7 @@
...
@@ -266,7 +266,7 @@
select
select
ifnull(sum(fee), 0)
ifnull(sum(fee), 0)
from tab_billing_account_balance_record
from tab_billing_account_balance_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
<if
test=
"startTime != null and startTime != '' "
>
<if
test=
"startTime != null and startTime != '' "
>
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingAuditResultMapper.xml
deleted
100644 → 0
View file @
1a958608
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.gic.enterprise.dao.mapper.TabBillingAuditResultMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.enterprise.entity.TabBillingAuditResult"
>
<id
column=
"audit_result_id"
jdbcType=
"INTEGER"
property=
"auditResultId"
/>
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"serial_number"
jdbcType=
"VARCHAR"
property=
"serialNumber"
/>
<result
column=
"audit_status"
jdbcType=
"INTEGER"
property=
"auditStatus"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"audit_time"
jdbcType=
"TIMESTAMP"
property=
"auditTime"
/>
<result
column=
"audit_user_id"
jdbcType=
"INTEGER"
property=
"auditUserId"
/>
<result
column=
"audit_user_name"
jdbcType=
"VARCHAR"
property=
"auditUserName"
/>
<result
column=
"audit_user_phone"
jdbcType=
"VARCHAR"
property=
"auditUserPhone"
/>
<result
column=
"fee_plan"
jdbcType=
"DOUBLE"
property=
"feePlan"
/>
<result
column=
"fee_paid"
jdbcType=
"DOUBLE"
property=
"feePaid"
/>
<result
column=
"refuse_reason"
jdbcType=
"VARCHAR"
property=
"refuseReason"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
audit_result_id, enterprise_id, serial_number, audit_status, status, create_time,
update_time, audit_time, audit_user_id, audit_user_name, audit_user_phone, fee_plan,
fee_paid, refuse_reason
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_billing_audit_result
where audit_result_id = #{auditResultId,jdbcType=INTEGER}
</select>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingAuditResult"
>
insert into tab_billing_audit_result (audit_result_id, enterprise_id, serial_number,
audit_status, status, create_time,
update_time, audit_time, audit_user_id,
audit_user_name, audit_user_phone, fee_plan,
fee_paid, refuse_reason)
values (#{auditResultId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{serialNumber,jdbcType=VARCHAR},
#{auditStatus,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{auditTime,jdbcType=TIMESTAMP}, #{auditUserId,jdbcType=INTEGER},
#{auditUserName,jdbcType=VARCHAR}, #{auditUserPhone,jdbcType=VARCHAR}, #{feePlan,jdbcType=DOUBLE},
#{feePaid,jdbcType=DOUBLE}, #{refuseReason,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabBillingAuditResult"
>
insert into tab_billing_audit_result
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"auditResultId != null"
>
audit_result_id,
</if>
<if
test=
"enterpriseId != null"
>
enterprise_id,
</if>
<if
test=
"serialNumber != null"
>
serial_number,
</if>
<if
test=
"auditStatus != null"
>
audit_status,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"auditTime != null"
>
audit_time,
</if>
<if
test=
"auditUserId != null"
>
audit_user_id,
</if>
<if
test=
"auditUserName != null"
>
audit_user_name,
</if>
<if
test=
"auditUserPhone != null"
>
audit_user_phone,
</if>
<if
test=
"feePlan != null"
>
fee_plan,
</if>
<if
test=
"feePaid != null"
>
fee_paid,
</if>
<if
test=
"refuseReason != null"
>
refuse_reason,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"auditResultId != null"
>
#{auditResultId,jdbcType=INTEGER},
</if>
<if
test=
"enterpriseId != null"
>
#{enterpriseId,jdbcType=INTEGER},
</if>
<if
test=
"serialNumber != null"
>
#{serialNumber,jdbcType=VARCHAR},
</if>
<if
test=
"auditStatus != null"
>
#{auditStatus,jdbcType=INTEGER},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"auditTime != null"
>
#{auditTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"auditUserId != null"
>
#{auditUserId,jdbcType=INTEGER},
</if>
<if
test=
"auditUserName != null"
>
#{auditUserName,jdbcType=VARCHAR},
</if>
<if
test=
"auditUserPhone != null"
>
#{auditUserPhone,jdbcType=VARCHAR},
</if>
<if
test=
"feePlan != null"
>
#{feePlan,jdbcType=DOUBLE},
</if>
<if
test=
"feePaid != null"
>
#{feePaid,jdbcType=DOUBLE},
</if>
<if
test=
"refuseReason != null"
>
#{refuseReason,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabBillingAuditResult"
>
update tab_billing_audit_result
<set>
<if
test=
"enterpriseId != null"
>
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if>
<if
test=
"serialNumber != null"
>
serial_number = #{serialNumber,jdbcType=VARCHAR},
</if>
<if
test=
"auditStatus != null"
>
audit_status = #{auditStatus,jdbcType=INTEGER},
</if>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"auditTime != null"
>
audit_time = #{auditTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"auditUserId != null"
>
audit_user_id = #{auditUserId,jdbcType=INTEGER},
</if>
<if
test=
"auditUserName != null"
>
audit_user_name = #{auditUserName,jdbcType=VARCHAR},
</if>
<if
test=
"auditUserPhone != null"
>
audit_user_phone = #{auditUserPhone,jdbcType=VARCHAR},
</if>
<if
test=
"feePlan != null"
>
fee_plan = #{feePlan,jdbcType=DOUBLE},
</if>
<if
test=
"feePaid != null"
>
fee_paid = #{feePaid,jdbcType=DOUBLE},
</if>
<if
test=
"refuseReason != null"
>
refuse_reason = #{refuseReason,jdbcType=VARCHAR},
</if>
</set>
where audit_result_id = #{auditResultId,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.enterprise.entity.TabBillingAuditResult"
>
update tab_billing_audit_result
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
serial_number = #{serialNumber,jdbcType=VARCHAR},
audit_status = #{auditStatus,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
audit_time = #{auditTime,jdbcType=TIMESTAMP},
audit_user_id = #{auditUserId,jdbcType=INTEGER},
audit_user_name = #{auditUserName,jdbcType=VARCHAR},
audit_user_phone = #{auditUserPhone,jdbcType=VARCHAR},
fee_plan = #{feePlan,jdbcType=DOUBLE},
fee_paid = #{feePaid,jdbcType=DOUBLE},
refuse_reason = #{refuseReason,jdbcType=VARCHAR}
where audit_result_id = #{auditResultId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingDoubleCallingRecordMapper.xml
View file @
776c0582
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<result
column=
"caller_name"
jdbcType=
"VARCHAR"
property=
"callerName"
/>
<result
column=
"caller_name"
jdbcType=
"VARCHAR"
property=
"callerName"
/>
<result
column=
"caller_phone"
jdbcType=
"VARCHAR"
property=
"callerPhone"
/>
<result
column=
"caller_phone"
jdbcType=
"VARCHAR"
property=
"callerPhone"
/>
<result
column=
"fee"
jdbcType=
"DOUBLE"
property=
"fee"
/>
<result
column=
"fee"
jdbcType=
"DOUBLE"
property=
"fee"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"deduction_time"
jdbcType=
"TIMESTAMP"
property=
"deductionTime"
/>
<result
column=
"deduction_time"
jdbcType=
"TIMESTAMP"
property=
"deductionTime"
/>
<result
column=
"called_id"
jdbcType=
"BIGINT"
property=
"calledId"
/>
<result
column=
"called_id"
jdbcType=
"BIGINT"
property=
"calledId"
/>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
double_calling_record_id, pay_serial_number, caller_name, caller_phone, fee,
status,
double_calling_record_id, pay_serial_number, caller_name, caller_phone, fee,
delete_flag,
create_time, deduction_time, called_id, called_name, called_phone, unit_fee, app_code,
create_time, deduction_time, called_id, called_name, called_phone, unit_fee, app_code,
app_name, voice_time, enterprise_id, store_id, store_name, store_group_id, store_group_name,
app_name, voice_time, enterprise_id, store_id, store_name, store_group_id, store_group_name,
call_time, remark
call_time, remark
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingDoubleCallingRecord"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingDoubleCallingRecord"
>
insert into tab_billing_double_calling_record (double_calling_record_id, pay_serial_number,
insert into tab_billing_double_calling_record (double_calling_record_id, pay_serial_number,
caller_name, caller_phone, fee,
caller_name, caller_phone, fee,
status, create_time, deduction_time,
delete_flag, create_time, deduction_time,
called_id, called_name, called_phone,
called_id, called_name, called_phone,
unit_fee, app_code, app_name,
unit_fee, app_code, app_name,
voice_time, enterprise_id, store_id,
voice_time, enterprise_id, store_id,
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
call_time, remark)
call_time, remark)
values (#{doubleCallingRecordId,jdbcType=INTEGER}, #{paySerialNumber,jdbcType=VARCHAR},
values (#{doubleCallingRecordId,jdbcType=INTEGER}, #{paySerialNumber,jdbcType=VARCHAR},
#{callerName,jdbcType=VARCHAR}, #{callerPhone,jdbcType=VARCHAR}, #{fee,jdbcType=DOUBLE},
#{callerName,jdbcType=VARCHAR}, #{callerPhone,jdbcType=VARCHAR}, #{fee,jdbcType=DOUBLE},
#{
status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{deductionTime,jdbcType=TIMESTAMP},
#{
deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{deductionTime,jdbcType=TIMESTAMP},
#{calledId,jdbcType=BIGINT}, #{calledName,jdbcType=VARCHAR}, #{calledPhone,jdbcType=VARCHAR},
#{calledId,jdbcType=BIGINT}, #{calledName,jdbcType=VARCHAR}, #{calledPhone,jdbcType=VARCHAR},
#{unitFee,jdbcType=DOUBLE}, #{appCode,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR},
#{unitFee,jdbcType=DOUBLE}, #{appCode,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR},
#{voiceTime,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER}, #{storeId,jdbcType=INTEGER},
#{voiceTime,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER}, #{storeId,jdbcType=INTEGER},
...
@@ -74,8 +74,8 @@
...
@@ -74,8 +74,8 @@
<if
test=
"fee != null"
>
<if
test=
"fee != null"
>
fee,
fee,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -142,8 +142,8 @@
...
@@ -142,8 +142,8 @@
<if
test=
"fee != null"
>
<if
test=
"fee != null"
>
#{fee,jdbcType=DOUBLE},
#{fee,jdbcType=DOUBLE},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -210,8 +210,8 @@
...
@@ -210,8 +210,8 @@
<if
test=
"fee != null"
>
<if
test=
"fee != null"
>
fee = #{fee,jdbcType=DOUBLE},
fee = #{fee,jdbcType=DOUBLE},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -270,7 +270,7 @@
...
@@ -270,7 +270,7 @@
caller_name = #{callerName,jdbcType=VARCHAR},
caller_name = #{callerName,jdbcType=VARCHAR},
caller_phone = #{callerPhone,jdbcType=VARCHAR},
caller_phone = #{callerPhone,jdbcType=VARCHAR},
fee = #{fee,jdbcType=DOUBLE},
fee = #{fee,jdbcType=DOUBLE},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
deduction_time = #{deductionTime,jdbcType=TIMESTAMP},
deduction_time = #{deductionTime,jdbcType=TIMESTAMP},
called_id = #{calledId,jdbcType=BIGINT},
called_id = #{calledId,jdbcType=BIGINT},
...
@@ -295,7 +295,7 @@
...
@@ -295,7 +295,7 @@
DATE_FORMAT(deduction_time,'%Y-%m-%d') statisticsDate,
DATE_FORMAT(deduction_time,'%Y-%m-%d') statisticsDate,
ifnull(sum(fee), 0) fee
ifnull(sum(fee), 0) fee
from tab_billing_double_calling_record
from tab_billing_double_calling_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
...
@@ -310,7 +310,7 @@
...
@@ -310,7 +310,7 @@
select
select
ifnull(sum(fee), 0)
ifnull(sum(fee), 0)
from tab_billing_double_calling_record
from tab_billing_double_calling_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
<if
test=
"dateType == 1 "
>
<if
test=
"dateType == 1 "
>
and date_format(deduction_time,'%Y-%m') = date_format(now(),'%Y-%m')
and date_format(deduction_time,'%Y-%m') = date_format(now(),'%Y-%m')
...
@@ -323,7 +323,7 @@
...
@@ -323,7 +323,7 @@
select
select
ifnull(sum(fee), 0)
ifnull(sum(fee), 0)
from tab_billing_double_calling_record
from tab_billing_double_calling_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
<if
test=
"startTime != null and startTime != '' "
>
<if
test=
"startTime != null and startTime != '' "
>
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingInternationalSmsRecordMapper.xml
View file @
776c0582
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"com.gic.enterprise.dao.mapper.TabBillingInternationalSmsRecordMapper"
>
<mapper
namespace=
"com.gic.enterprise.dao.mapper.TabBillingInternationalSmsRecordMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.enterprise.entity.TabBillingInternationalSmsRecord"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.enterprise.entity.TabBillingInternationalSmsRecord"
>
<id
column=
"sms_record_id"
jdbcType=
"BIGINT"
property=
"smsRecordId"
/>
<id
column=
"sms_record_id"
jdbcType=
"BIGINT"
property=
"smsRecordId"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"send_time"
jdbcType=
"TIMESTAMP"
property=
"sendTime"
/>
<result
column=
"send_time"
jdbcType=
"TIMESTAMP"
property=
"sendTime"
/>
<result
column=
"receive_phone"
jdbcType=
"VARCHAR"
property=
"receivePhone"
/>
<result
column=
"receive_phone"
jdbcType=
"VARCHAR"
property=
"receivePhone"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<result
column=
"database_status"
jdbcType=
"INTEGER"
property=
"databaseStatus"
/>
<result
column=
"database_status"
jdbcType=
"INTEGER"
property=
"databaseStatus"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
sms_record_id,
status, send_time, receive_phone, pay_type, app_code, app_name, sms_type,
sms_record_id,
delete_flag, send_time, receive_phone, pay_type, app_code, app_name, sms_type,
bill_number, fee, sms_content, create_time, update_time, deduction_time, enterprise_id,
bill_number, fee, sms_content, create_time, update_time, deduction_time, enterprise_id,
enterprise_sms_package_id, nation_code, nation_name, ecu_id, mcu_id, member_card_id,
enterprise_sms_package_id, nation_code, nation_name, ecu_id, mcu_id, member_card_id,
member_card_name, member_name, store_brand_name, store_id, store_name, store_group_id,
member_card_name, member_name, store_brand_name, store_id, store_name, store_group_id,
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</select>
</select>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingInternationalSmsRecord"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingInternationalSmsRecord"
>
insert into tab_billing_international_sms_record (sms_record_id,
status, send_time,
insert into tab_billing_international_sms_record (sms_record_id,
delete_flag, send_time,
receive_phone, pay_type, app_code,
receive_phone, pay_type, app_code,
app_name, sms_type, bill_number,
app_name, sms_type, bill_number,
fee, sms_content, create_time,
fee, sms_content, create_time,
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
store_id, store_name, store_group_id,
store_id, store_name, store_group_id,
store_group_name, user_id, user_name,
store_group_name, user_id, user_name,
cache_status, database_status)
cache_status, database_status)
values (#{smsRecordId,jdbcType=BIGINT}, #{
status,jdbcType=INTEGER}, #{sendTime,jdbcType=TIMESTAMP},
values (#{smsRecordId,jdbcType=BIGINT}, #{
deleteFlag,jdbcType=INTEGER}, #{sendTime,jdbcType=TIMESTAMP},
#{receivePhone,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, #{appCode,jdbcType=VARCHAR},
#{receivePhone,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, #{appCode,jdbcType=VARCHAR},
#{appName,jdbcType=VARCHAR}, #{smsType,jdbcType=INTEGER}, #{billNumber,jdbcType=INTEGER},
#{appName,jdbcType=VARCHAR}, #{smsType,jdbcType=INTEGER}, #{billNumber,jdbcType=INTEGER},
#{fee,jdbcType=DOUBLE}, #{smsContent,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{fee,jdbcType=DOUBLE}, #{smsContent,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
...
@@ -79,8 +79,8 @@
...
@@ -79,8 +79,8 @@
<if
test=
"smsRecordId != null"
>
<if
test=
"smsRecordId != null"
>
sms_record_id,
sms_record_id,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"sendTime != null"
>
<if
test=
"sendTime != null"
>
send_time,
send_time,
...
@@ -177,8 +177,8 @@
...
@@ -177,8 +177,8 @@
<if
test=
"smsRecordId != null"
>
<if
test=
"smsRecordId != null"
>
#{smsRecordId,jdbcType=BIGINT},
#{smsRecordId,jdbcType=BIGINT},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"sendTime != null"
>
<if
test=
"sendTime != null"
>
#{sendTime,jdbcType=TIMESTAMP},
#{sendTime,jdbcType=TIMESTAMP},
...
@@ -275,8 +275,8 @@
...
@@ -275,8 +275,8 @@
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabBillingInternationalSmsRecord"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabBillingInternationalSmsRecord"
>
update tab_billing_international_sms_record
update tab_billing_international_sms_record
<set>
<set>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"sendTime != null"
>
<if
test=
"sendTime != null"
>
send_time = #{sendTime,jdbcType=TIMESTAMP},
send_time = #{sendTime,jdbcType=TIMESTAMP},
...
@@ -373,7 +373,7 @@
...
@@ -373,7 +373,7 @@
</update>
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.enterprise.entity.TabBillingInternationalSmsRecord"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.enterprise.entity.TabBillingInternationalSmsRecord"
>
update tab_billing_international_sms_record
update tab_billing_international_sms_record
set
status = #{status
,jdbcType=INTEGER},
set
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
send_time = #{sendTime,jdbcType=TIMESTAMP},
send_time = #{sendTime,jdbcType=TIMESTAMP},
receive_phone = #{receivePhone,jdbcType=VARCHAR},
receive_phone = #{receivePhone,jdbcType=VARCHAR},
pay_type = #{payType,jdbcType=INTEGER},
pay_type = #{payType,jdbcType=INTEGER},
...
@@ -411,7 +411,7 @@
...
@@ -411,7 +411,7 @@
DATE_FORMAT(deduction_time,'%Y-%m-%d') statisticsDate,
DATE_FORMAT(deduction_time,'%Y-%m-%d') statisticsDate,
ifnull(sum(fee), 0) fee
ifnull(sum(fee), 0) fee
from tab_billing_international_sms_record
from tab_billing_international_sms_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and pay_type = 4
and pay_type = 4
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
...
@@ -426,7 +426,7 @@
...
@@ -426,7 +426,7 @@
select
select
ifnull(sum(fee), 0)
ifnull(sum(fee), 0)
from tab_billing_international_sms_record
from tab_billing_international_sms_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and pay_type = 4
and pay_type = 4
<if
test=
"dateType == 1 "
>
<if
test=
"dateType == 1 "
>
...
@@ -440,7 +440,7 @@
...
@@ -440,7 +440,7 @@
select
select
ifnull(sum(fee), 0)
ifnull(sum(fee), 0)
from tab_billing_international_sms_record
from tab_billing_international_sms_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
<if
test=
"startTime != null and startTime != '' "
>
<if
test=
"startTime != null and startTime != '' "
>
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingOrderMapper.xml
View file @
776c0582
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<result
column=
"pay_info_id"
jdbcType=
"INTEGER"
property=
"payInfoId"
/>
<result
column=
"pay_info_id"
jdbcType=
"INTEGER"
property=
"payInfoId"
/>
<result
column=
"coupon_card_id"
jdbcType=
"INTEGER"
property=
"couponCardId"
/>
<result
column=
"coupon_card_id"
jdbcType=
"INTEGER"
property=
"couponCardId"
/>
<result
column=
"audit_result_id"
jdbcType=
"INTEGER"
property=
"auditResultId"
/>
<result
column=
"audit_result_id"
jdbcType=
"INTEGER"
property=
"auditResultId"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"item_json"
jdbcType=
"VARCHAR"
property=
"itemJson"
/>
<result
column=
"item_json"
jdbcType=
"VARCHAR"
property=
"itemJson"
/>
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
order_id, enterprise_id, serial_number, order_status, order_content, pay_type, total_fee,
order_id, enterprise_id, serial_number, order_status, order_content, pay_type, total_fee,
total_fee_paid, pay_info_id, coupon_card_id, audit_result_id,
status, create_time,
total_fee_paid, pay_info_id, coupon_card_id, audit_result_id,
delete_flag, create_time,
update_time, item_json, order_type, initiator_user
update_time, item_json, order_type, initiator_user
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
...
@@ -36,13 +36,13 @@
...
@@ -36,13 +36,13 @@
insert into tab_billing_order (order_id, enterprise_id, serial_number,
insert into tab_billing_order (order_id, enterprise_id, serial_number,
order_status, order_content, pay_type,
order_status, order_content, pay_type,
total_fee, total_fee_paid, pay_info_id,
total_fee, total_fee_paid, pay_info_id,
coupon_card_id, audit_result_id,
status,
coupon_card_id, audit_result_id,
delete_flag,
create_time, update_time, item_json,
create_time, update_time, item_json,
order_type, initiator_user)
order_type, initiator_user)
values (#{orderId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{serialNumber,jdbcType=VARCHAR},
values (#{orderId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{serialNumber,jdbcType=VARCHAR},
#{orderStatus,jdbcType=INTEGER}, #{orderContent,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER},
#{orderStatus,jdbcType=INTEGER}, #{orderContent,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER},
#{totalFee,jdbcType=DOUBLE}, #{totalFeePaid,jdbcType=DOUBLE}, #{payInfoId,jdbcType=INTEGER},
#{totalFee,jdbcType=DOUBLE}, #{totalFeePaid,jdbcType=DOUBLE}, #{payInfoId,jdbcType=INTEGER},
#{couponCardId,jdbcType=INTEGER}, #{auditResultId,jdbcType=INTEGER}, #{
status,jdbcType=INTEGER},
#{couponCardId,jdbcType=INTEGER}, #{auditResultId,jdbcType=INTEGER}, #{
deleteFlag,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{itemJson,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{itemJson,jdbcType=VARCHAR},
#{orderType,jdbcType=INTEGER}, #{initiatorUser,jdbcType=INTEGER})
#{orderType,jdbcType=INTEGER}, #{initiatorUser,jdbcType=INTEGER})
</insert>
</insert>
...
@@ -85,8 +85,8 @@
...
@@ -85,8 +85,8 @@
<if
test=
"auditResultId != null"
>
<if
test=
"auditResultId != null"
>
audit_result_id,
audit_result_id,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -138,8 +138,8 @@
...
@@ -138,8 +138,8 @@
<if
test=
"auditResultId != null"
>
<if
test=
"auditResultId != null"
>
#{auditResultId,jdbcType=INTEGER},
#{auditResultId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -191,8 +191,8 @@
...
@@ -191,8 +191,8 @@
<if
test=
"auditResultId != null"
>
<if
test=
"auditResultId != null"
>
audit_result_id = #{auditResultId,jdbcType=INTEGER},
audit_result_id = #{auditResultId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
pay_info_id = #{payInfoId,jdbcType=INTEGER},
pay_info_id = #{payInfoId,jdbcType=INTEGER},
coupon_card_id = #{couponCardId,jdbcType=INTEGER},
coupon_card_id = #{couponCardId,jdbcType=INTEGER},
audit_result_id = #{auditResultId,jdbcType=INTEGER},
audit_result_id = #{auditResultId,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
item_json = #{itemJson,jdbcType=VARCHAR},
item_json = #{itemJson,jdbcType=VARCHAR},
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
and order_status=#{status}
and order_status=#{status}
</if>
</if>
<if
test=
"status == null"
>
<if
test=
"status == null"
>
and
status != 0
and
delete_flag != 1
</if>
</if>
<if
test=
"search != null"
>
<if
test=
"search != null"
>
and (order_content like concat('%',#{search},'%') or serial_number like concat('%', #{search}, '%'))
and (order_content like concat('%',#{search},'%') or serial_number like concat('%', #{search}, '%'))
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingPayInfoMapper.xml
View file @
776c0582
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<result
column=
"code_url"
jdbcType=
"VARCHAR"
property=
"codeUrl"
/>
<result
column=
"code_url"
jdbcType=
"VARCHAR"
property=
"codeUrl"
/>
<result
column=
"prepay_id"
jdbcType=
"VARCHAR"
property=
"prepayId"
/>
<result
column=
"prepay_id"
jdbcType=
"VARCHAR"
property=
"prepayId"
/>
<result
column=
"invoice_status"
jdbcType=
"INTEGER"
property=
"invoiceStatus"
/>
<result
column=
"invoice_status"
jdbcType=
"INTEGER"
property=
"invoiceStatus"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"buy_type"
jdbcType=
"INTEGER"
property=
"buyType"
/>
<result
column=
"buy_type"
jdbcType=
"INTEGER"
property=
"buyType"
/>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
pay_info_id, enterprise_id, serial_number, pay_type, total_fee_paid, time_start,
pay_info_id, enterprise_id, serial_number, pay_type, total_fee_paid, time_start,
time_end, result_code, err_code, err_code_des, code_url, prepay_id, invoice_status,
time_end, result_code, err_code, err_code_des, code_url, prepay_id, invoice_status,
status, create_time, update_time, buy_type, order_serial_number, auth_code_id, request_code,
delete_flag, create_time, update_time, buy_type, order_serial_number, auth_code_id, request_code,
product_description
product_description
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
pay_type, total_fee_paid, time_start,
pay_type, total_fee_paid, time_start,
time_end, result_code, err_code,
time_end, result_code, err_code,
err_code_des, code_url, prepay_id,
err_code_des, code_url, prepay_id,
invoice_status,
status, create_time,
invoice_status,
delete_flag, create_time,
update_time, buy_type, order_serial_number,
update_time, buy_type, order_serial_number,
auth_code_id, request_code, product_description
auth_code_id, request_code, product_description
)
)
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
#{payType,jdbcType=INTEGER}, #{totalFeePaid,jdbcType=DOUBLE}, #{timeStart,jdbcType=VARCHAR},
#{payType,jdbcType=INTEGER}, #{totalFeePaid,jdbcType=DOUBLE}, #{timeStart,jdbcType=VARCHAR},
#{timeEnd,jdbcType=VARCHAR}, #{resultCode,jdbcType=INTEGER}, #{errCode,jdbcType=VARCHAR},
#{timeEnd,jdbcType=VARCHAR}, #{resultCode,jdbcType=INTEGER}, #{errCode,jdbcType=VARCHAR},
#{errCodeDes,jdbcType=VARCHAR}, #{codeUrl,jdbcType=VARCHAR}, #{prepayId,jdbcType=VARCHAR},
#{errCodeDes,jdbcType=VARCHAR}, #{codeUrl,jdbcType=VARCHAR}, #{prepayId,jdbcType=VARCHAR},
#{invoiceStatus,jdbcType=INTEGER}, #{
status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{invoiceStatus,jdbcType=INTEGER}, #{
deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{buyType,jdbcType=INTEGER}, #{orderSerialNumber,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{buyType,jdbcType=INTEGER}, #{orderSerialNumber,jdbcType=VARCHAR},
#{authCodeId,jdbcType=INTEGER}, #{requestCode,jdbcType=VARCHAR}, #{productDescription,jdbcType=VARCHAR}
#{authCodeId,jdbcType=INTEGER}, #{requestCode,jdbcType=VARCHAR}, #{productDescription,jdbcType=VARCHAR}
)
)
...
@@ -103,8 +103,8 @@
...
@@ -103,8 +103,8 @@
<if
test=
"invoiceStatus != null"
>
<if
test=
"invoiceStatus != null"
>
invoice_status,
invoice_status,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -168,8 +168,8 @@
...
@@ -168,8 +168,8 @@
<if
test=
"invoiceStatus != null"
>
<if
test=
"invoiceStatus != null"
>
#{invoiceStatus,jdbcType=INTEGER},
#{invoiceStatus,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -233,8 +233,8 @@
...
@@ -233,8 +233,8 @@
<if
test=
"invoiceStatus != null"
>
<if
test=
"invoiceStatus != null"
>
invoice_status = #{invoiceStatus,jdbcType=INTEGER},
invoice_status = #{invoiceStatus,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -274,7 +274,7 @@
...
@@ -274,7 +274,7 @@
code_url = #{codeUrl,jdbcType=VARCHAR},
code_url = #{codeUrl,jdbcType=VARCHAR},
prepay_id = #{prepayId,jdbcType=VARCHAR},
prepay_id = #{prepayId,jdbcType=VARCHAR},
invoice_status = #{invoiceStatus,jdbcType=INTEGER},
invoice_status = #{invoiceStatus,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
buy_type = #{buyType,jdbcType=INTEGER},
buy_type = #{buyType,jdbcType=INTEGER},
...
@@ -291,7 +291,7 @@
...
@@ -291,7 +291,7 @@
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and time_end is not null
and time_end is not null
and invoice_status = 0
and invoice_status = 0
and
status = 1
and
delete_flag = 0
<if
test=
"serialNumber != null and serialNumber != '' "
>
<if
test=
"serialNumber != null and serialNumber != '' "
>
and (serial_number like concat('%', #{serialNumber}, '%') or order_serial_number like concat('%', #{serialNumber}, '%'))
and (serial_number like concat('%', #{serialNumber}, '%') or order_serial_number like concat('%', #{serialNumber}, '%'))
</if>
</if>
...
@@ -343,8 +343,8 @@
...
@@ -343,8 +343,8 @@
<if
test=
"invoiceStatus != null"
>
<if
test=
"invoiceStatus != null"
>
invoice_status = #{invoiceStatus,jdbcType=INTEGER},
invoice_status = #{invoiceStatus,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -372,7 +372,7 @@
...
@@ -372,7 +372,7 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_billing_pay_info
from tab_billing_pay_info
where
status = 1
where
delete_flag = 0
<if
test=
"enterpriseId != null "
>
<if
test=
"enterpriseId != null "
>
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
</if>
</if>
...
@@ -389,15 +389,15 @@
...
@@ -389,15 +389,15 @@
limit 1
limit 1
</select>
</select>
<update
id=
"cancelPay"
>
<update
id=
"cancelPay"
>
update tab_billing_pay_info set
status = 0
update tab_billing_pay_info set
delete_flag = 1
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and request_code = #{requestCode}
and request_code = #{requestCode}
and order_serial_number = #{orderSerialNumber}
and order_serial_number = #{orderSerialNumber}
and result_code = 0
and result_code = 0
and
status = 1
and
delete_flag = 0
</update>
</update>
<update
id=
"delOtherPayInfoExceptId"
>
<update
id=
"delOtherPayInfoExceptId"
>
update tab_billing_pay_info set
status = 0
update tab_billing_pay_info set
delete_flag = 1
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and pay_info_id
<>
#{payInfoId}
and pay_info_id
<>
#{payInfoId}
and order_serial_number = #{orderSerialNumber}
and order_serial_number = #{orderSerialNumber}
...
@@ -406,7 +406,7 @@
...
@@ -406,7 +406,7 @@
<update
id=
"updateInvoiceStatus"
>
<update
id=
"updateInvoiceStatus"
>
update tab_billing_pay_info set invoice_status = 1
update tab_billing_pay_info set invoice_status = 1
where
status = 1
where
delete_flag = 0
and serial_number in (#{serialNumbers})
and serial_number in (#{serialNumbers})
</update>
</update>
...
@@ -415,7 +415,7 @@
...
@@ -415,7 +415,7 @@
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_billing_pay_info
from tab_billing_pay_info
where serial_number = #{serialNumber}
where serial_number = #{serialNumber}
and
status = 1
and
delete_flag = 0
and invoice_status = 0
and invoice_status = 0
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingRechargeRecordMapper.xml
View file @
776c0582
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<result
column=
"total_fee_paid"
jdbcType=
"DOUBLE"
property=
"totalFeePaid"
/>
<result
column=
"total_fee_paid"
jdbcType=
"DOUBLE"
property=
"totalFeePaid"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
<result
column=
"pay_info_id"
jdbcType=
"INTEGER"
property=
"payInfoId"
/>
<result
column=
"pay_info_id"
jdbcType=
"INTEGER"
property=
"payInfoId"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"initiator"
jdbcType=
"INTEGER"
property=
"initiator"
/>
<result
column=
"initiator"
jdbcType=
"INTEGER"
property=
"initiator"
/>
<result
column=
"initiator_user"
jdbcType=
"INTEGER"
property=
"initiatorUser"
/>
<result
column=
"initiator_user"
jdbcType=
"INTEGER"
property=
"initiatorUser"
/>
<result
column=
"initiator_name"
jdbcType=
"VARCHAR"
property=
"initiatorName"
/>
<result
column=
"initiator_name"
jdbcType=
"VARCHAR"
property=
"initiatorName"
/>
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
recharge_record_id, enterprise_id, serial_number, online_serial_number, total_fee,
recharge_record_id, enterprise_id, serial_number, online_serial_number, total_fee,
total_fee_paid, pay_type, pay_info_id,
status, initiator, initiator_user, initiator_name,
total_fee_paid, pay_type, pay_info_id,
delete_flag, initiator, initiator_user, initiator_name,
audit_status, verification_code, create_time, update_time, deduction_time
audit_status, verification_code, create_time, update_time, deduction_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
...
@@ -35,13 +35,13 @@
...
@@ -35,13 +35,13 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingRechargeRecord"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingRechargeRecord"
>
insert into tab_billing_recharge_record (recharge_record_id, enterprise_id, serial_number,
insert into tab_billing_recharge_record (recharge_record_id, enterprise_id, serial_number,
online_serial_number, total_fee, total_fee_paid,
online_serial_number, total_fee, total_fee_paid,
pay_type, pay_info_id,
status,
pay_type, pay_info_id,
delete_flag,
initiator, initiator_user, initiator_name,
initiator, initiator_user, initiator_name,
audit_status, verification_code, create_time,
audit_status, verification_code, create_time,
update_time, deduction_time)
update_time, deduction_time)
values (#{rechargeRecordId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{serialNumber,jdbcType=VARCHAR},
values (#{rechargeRecordId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{serialNumber,jdbcType=VARCHAR},
#{onlineSerialNumber,jdbcType=VARCHAR}, #{totalFee,jdbcType=DOUBLE}, #{totalFeePaid,jdbcType=DOUBLE},
#{onlineSerialNumber,jdbcType=VARCHAR}, #{totalFee,jdbcType=DOUBLE}, #{totalFeePaid,jdbcType=DOUBLE},
#{payType,jdbcType=INTEGER}, #{payInfoId,jdbcType=INTEGER}, #{
status,jdbcType=INTEGER},
#{payType,jdbcType=INTEGER}, #{payInfoId,jdbcType=INTEGER}, #{
deleteFlag,jdbcType=INTEGER},
#{initiator,jdbcType=INTEGER}, #{initiatorUser,jdbcType=INTEGER}, #{initiatorName,jdbcType=VARCHAR},
#{initiator,jdbcType=INTEGER}, #{initiatorUser,jdbcType=INTEGER}, #{initiatorName,jdbcType=VARCHAR},
#{auditStatus,jdbcType=INTEGER}, #{verificationCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{auditStatus,jdbcType=INTEGER}, #{verificationCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{deductionTime,jdbcType=TIMESTAMP})
#{updateTime,jdbcType=TIMESTAMP}, #{deductionTime,jdbcType=TIMESTAMP})
...
@@ -73,8 +73,8 @@
...
@@ -73,8 +73,8 @@
<if
test=
"payInfoId != null"
>
<if
test=
"payInfoId != null"
>
pay_info_id,
pay_info_id,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"initiator != null"
>
<if
test=
"initiator != null"
>
initiator,
initiator,
...
@@ -126,8 +126,8 @@
...
@@ -126,8 +126,8 @@
<if
test=
"payInfoId != null"
>
<if
test=
"payInfoId != null"
>
#{payInfoId,jdbcType=INTEGER},
#{payInfoId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"initiator != null"
>
<if
test=
"initiator != null"
>
#{initiator,jdbcType=INTEGER},
#{initiator,jdbcType=INTEGER},
...
@@ -179,8 +179,8 @@
...
@@ -179,8 +179,8 @@
<if
test=
"payInfoId != null"
>
<if
test=
"payInfoId != null"
>
pay_info_id = #{payInfoId,jdbcType=INTEGER},
pay_info_id = #{payInfoId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"initiator != null"
>
<if
test=
"initiator != null"
>
initiator = #{initiator,jdbcType=INTEGER},
initiator = #{initiator,jdbcType=INTEGER},
...
@@ -218,7 +218,7 @@
...
@@ -218,7 +218,7 @@
total_fee_paid = #{totalFeePaid,jdbcType=DOUBLE},
total_fee_paid = #{totalFeePaid,jdbcType=DOUBLE},
pay_type = #{payType,jdbcType=INTEGER},
pay_type = #{payType,jdbcType=INTEGER},
pay_info_id = #{payInfoId,jdbcType=INTEGER},
pay_info_id = #{payInfoId,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
initiator = #{initiator,jdbcType=INTEGER},
initiator = #{initiator,jdbcType=INTEGER},
initiator_user = #{initiatorUser,jdbcType=INTEGER},
initiator_user = #{initiatorUser,jdbcType=INTEGER},
initiator_name = #{initiatorName,jdbcType=VARCHAR},
initiator_name = #{initiatorName,jdbcType=VARCHAR},
...
@@ -233,7 +233,7 @@
...
@@ -233,7 +233,7 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_billing_recharge_record
from tab_billing_recharge_record
where
status = 1
where
delete_flag = 0
<if
test=
"enterpriseId != null "
>
<if
test=
"enterpriseId != null "
>
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
</if>
</if>
...
@@ -270,7 +270,7 @@
...
@@ -270,7 +270,7 @@
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_billing_recharge_record
from tab_billing_recharge_record
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and
status = 1
and
delete_flag = 0
and audit_status = 1
and audit_status = 1
order by create_time desc
order by create_time desc
limit 1
limit 1
...
@@ -280,6 +280,6 @@
...
@@ -280,6 +280,6 @@
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_billing_recharge_record
from tab_billing_recharge_record
where serial_number = #{serialNumber}
where serial_number = #{serialNumber}
and
status = 1
and
delete_flag = 0
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingRecordingStorageRecordMapper.xml
View file @
776c0582
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<result
column=
"caller_name"
jdbcType=
"VARCHAR"
property=
"callerName"
/>
<result
column=
"caller_name"
jdbcType=
"VARCHAR"
property=
"callerName"
/>
<result
column=
"caller_phone"
jdbcType=
"VARCHAR"
property=
"callerPhone"
/>
<result
column=
"caller_phone"
jdbcType=
"VARCHAR"
property=
"callerPhone"
/>
<result
column=
"fee"
jdbcType=
"DOUBLE"
property=
"fee"
/>
<result
column=
"fee"
jdbcType=
"DOUBLE"
property=
"fee"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"deduction_time"
jdbcType=
"TIMESTAMP"
property=
"deductionTime"
/>
<result
column=
"deduction_time"
jdbcType=
"TIMESTAMP"
property=
"deductionTime"
/>
<result
column=
"called_id"
jdbcType=
"BIGINT"
property=
"calledId"
/>
<result
column=
"called_id"
jdbcType=
"BIGINT"
property=
"calledId"
/>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
recording_storage_record_id, caller_name, caller_phone, fee,
status, create_time,
recording_storage_record_id, caller_name, caller_phone, fee,
delete_flag, create_time,
deduction_time, called_id, called_phone, app_code, app_name, voice_time, enterprise_id,
deduction_time, called_id, called_phone, app_code, app_name, voice_time, enterprise_id,
pay_serial_number, unit_fee, storage_duration, member_name, store_id, store_name,
pay_serial_number, unit_fee, storage_duration, member_name, store_id, store_name,
store_group_id, store_group_name, call_time, remark
store_group_id, store_group_name, call_time, remark
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingRecordingStorageRecord"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingRecordingStorageRecord"
>
insert into tab_billing_recording_storage_record (recording_storage_record_id, caller_name,
insert into tab_billing_recording_storage_record (recording_storage_record_id, caller_name,
caller_phone, fee,
status,
caller_phone, fee,
delete_flag,
create_time, deduction_time, called_id,
create_time, deduction_time, called_id,
called_phone, app_code, app_name,
called_phone, app_code, app_name,
voice_time, enterprise_id, pay_serial_number,
voice_time, enterprise_id, pay_serial_number,
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
store_group_name, call_time, remark
store_group_name, call_time, remark
)
)
values (#{recordingStorageRecordId,jdbcType=INTEGER}, #{callerName,jdbcType=VARCHAR},
values (#{recordingStorageRecordId,jdbcType=INTEGER}, #{callerName,jdbcType=VARCHAR},
#{callerPhone,jdbcType=VARCHAR}, #{fee,jdbcType=DOUBLE}, #{
status,jdbcType=INTEGER},
#{callerPhone,jdbcType=VARCHAR}, #{fee,jdbcType=DOUBLE}, #{
deleteFlag,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{deductionTime,jdbcType=TIMESTAMP}, #{calledId,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP}, #{deductionTime,jdbcType=TIMESTAMP}, #{calledId,jdbcType=BIGINT},
#{calledPhone,jdbcType=VARCHAR}, #{appCode,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR},
#{calledPhone,jdbcType=VARCHAR}, #{appCode,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR},
#{voiceTime,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER}, #{paySerialNumber,jdbcType=VARCHAR},
#{voiceTime,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER}, #{paySerialNumber,jdbcType=VARCHAR},
...
@@ -74,8 +74,8 @@
...
@@ -74,8 +74,8 @@
<if
test=
"fee != null"
>
<if
test=
"fee != null"
>
fee,
fee,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -145,8 +145,8 @@
...
@@ -145,8 +145,8 @@
<if
test=
"fee != null"
>
<if
test=
"fee != null"
>
#{fee,jdbcType=DOUBLE},
#{fee,jdbcType=DOUBLE},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -216,8 +216,8 @@
...
@@ -216,8 +216,8 @@
<if
test=
"fee != null"
>
<if
test=
"fee != null"
>
fee = #{fee,jdbcType=DOUBLE},
fee = #{fee,jdbcType=DOUBLE},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
set caller_name = #{callerName,jdbcType=VARCHAR},
set caller_name = #{callerName,jdbcType=VARCHAR},
caller_phone = #{callerPhone,jdbcType=VARCHAR},
caller_phone = #{callerPhone,jdbcType=VARCHAR},
fee = #{fee,jdbcType=DOUBLE},
fee = #{fee,jdbcType=DOUBLE},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
deduction_time = #{deductionTime,jdbcType=TIMESTAMP},
deduction_time = #{deductionTime,jdbcType=TIMESTAMP},
called_id = #{calledId,jdbcType=BIGINT},
called_id = #{calledId,jdbcType=BIGINT},
...
@@ -307,7 +307,7 @@
...
@@ -307,7 +307,7 @@
DATE_FORMAT(deduction_time,'%Y-%m-%d') statisticsDate,
DATE_FORMAT(deduction_time,'%Y-%m-%d') statisticsDate,
ifnull(sum(fee), 0) fee
ifnull(sum(fee), 0) fee
from tab_billing_recording_storage_record
from tab_billing_recording_storage_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingRefundMapper.xml
View file @
776c0582
...
@@ -13,14 +13,14 @@
...
@@ -13,14 +13,14 @@
<result
column=
"request_code"
jdbcType=
"VARCHAR"
property=
"requestCode"
/>
<result
column=
"request_code"
jdbcType=
"VARCHAR"
property=
"requestCode"
/>
<result
column=
"refund_channel"
jdbcType=
"INTEGER"
property=
"refundChannel"
/>
<result
column=
"refund_channel"
jdbcType=
"INTEGER"
property=
"refundChannel"
/>
<result
column=
"time_end"
jdbcType=
"TIMESTAMP"
property=
"timeEnd"
/>
<result
column=
"time_end"
jdbcType=
"TIMESTAMP"
property=
"timeEnd"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"refund_reason"
jdbcType=
"VARCHAR"
property=
"refundReason"
/>
<result
column=
"refund_reason"
jdbcType=
"VARCHAR"
property=
"refundReason"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
refund_id, enterprise_id, refund_pay_number, refund_serial_number, order_serial_number,
refund_id, enterprise_id, refund_pay_number, refund_serial_number, order_serial_number,
order_fee, refund_fee, refund_status, request_code, refund_channel, time_end,
status,
order_fee, refund_fee, refund_status, request_code, refund_channel, time_end,
delete_flag,
create_time, update_time, refund_reason
create_time, update_time, refund_reason
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
...
@@ -35,13 +35,13 @@
...
@@ -35,13 +35,13 @@
refund_serial_number, order_serial_number,
refund_serial_number, order_serial_number,
order_fee, refund_fee, refund_status,
order_fee, refund_fee, refund_status,
request_code, refund_channel, time_end,
request_code, refund_channel, time_end,
status, create_time, update_time,
delete_flag, create_time, update_time,
refund_reason)
refund_reason)
values (#{refundId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{refundPayNumber,jdbcType=VARCHAR},
values (#{refundId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{refundPayNumber,jdbcType=VARCHAR},
#{refundSerialNumber,jdbcType=VARCHAR}, #{orderSerialNumber,jdbcType=VARCHAR},
#{refundSerialNumber,jdbcType=VARCHAR}, #{orderSerialNumber,jdbcType=VARCHAR},
#{orderFee,jdbcType=DOUBLE}, #{refundFee,jdbcType=DOUBLE}, #{refundStatus,jdbcType=INTEGER},
#{orderFee,jdbcType=DOUBLE}, #{refundFee,jdbcType=DOUBLE}, #{refundStatus,jdbcType=INTEGER},
#{requestCode,jdbcType=VARCHAR}, #{refundChannel,jdbcType=INTEGER}, #{timeEnd,jdbcType=TIMESTAMP},
#{requestCode,jdbcType=VARCHAR}, #{refundChannel,jdbcType=INTEGER}, #{timeEnd,jdbcType=TIMESTAMP},
#{
status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{
deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{refundReason,jdbcType=VARCHAR})
#{refundReason,jdbcType=VARCHAR})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabBillingRefund"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabBillingRefund"
>
...
@@ -80,8 +80,8 @@
...
@@ -80,8 +80,8 @@
<if
test=
"timeEnd != null"
>
<if
test=
"timeEnd != null"
>
time_end,
time_end,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -127,8 +127,8 @@
...
@@ -127,8 +127,8 @@
<if
test=
"timeEnd != null"
>
<if
test=
"timeEnd != null"
>
#{timeEnd,jdbcType=TIMESTAMP},
#{timeEnd,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -174,8 +174,8 @@
...
@@ -174,8 +174,8 @@
<if
test=
"timeEnd != null"
>
<if
test=
"timeEnd != null"
>
time_end = #{timeEnd,jdbcType=TIMESTAMP},
time_end = #{timeEnd,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -201,7 +201,7 @@
...
@@ -201,7 +201,7 @@
request_code = #{requestCode,jdbcType=VARCHAR},
request_code = #{requestCode,jdbcType=VARCHAR},
refund_channel = #{refundChannel,jdbcType=INTEGER},
refund_channel = #{refundChannel,jdbcType=INTEGER},
time_end = #{timeEnd,jdbcType=TIMESTAMP},
time_end = #{timeEnd,jdbcType=TIMESTAMP},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
refund_reason = #{refundReason,jdbcType=VARCHAR}
refund_reason = #{refundReason,jdbcType=VARCHAR}
...
@@ -211,7 +211,7 @@
...
@@ -211,7 +211,7 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_billing_refund
from tab_billing_refund
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and refund_serial_number = #{refundSerialNumber}
and refund_serial_number = #{refundSerialNumber}
and request_code = #{requestCode}
and request_code = #{requestCode}
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and order_serial_number = #{orderSerialNumber}
and order_serial_number = #{orderSerialNumber}
and request_code = #{requestCode}
and request_code = #{requestCode}
and
status = 1
and
delete_flag = 0
</select>
</select>
<select
id=
"listRefund"
resultMap=
"BaseResultMap"
>
<select
id=
"listRefund"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -239,6 +239,6 @@
...
@@ -239,6 +239,6 @@
<if
test=
"endTime != null "
>
<if
test=
"endTime != null "
>
and time_end
<
#{endTime}
and time_end
<
#{endTime}
</if>
</if>
and
status = 1
and
delete_flag = 0
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingSmsPackageRecordMapper.xml
View file @
776c0582
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<result
column=
"item_fee"
jdbcType=
"DOUBLE"
property=
"itemFee"
/>
<result
column=
"item_fee"
jdbcType=
"DOUBLE"
property=
"itemFee"
/>
<result
column=
"total_fee"
jdbcType=
"DOUBLE"
property=
"totalFee"
/>
<result
column=
"total_fee"
jdbcType=
"DOUBLE"
property=
"totalFee"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"order_id"
jdbcType=
"INTEGER"
property=
"orderId"
/>
<result
column=
"order_id"
jdbcType=
"INTEGER"
property=
"orderId"
/>
<result
column=
"deduction_time"
jdbcType=
"TIMESTAMP"
property=
"deductionTime"
/>
<result
column=
"deduction_time"
jdbcType=
"TIMESTAMP"
property=
"deductionTime"
/>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<result
column=
"operator_name"
jdbcType=
"VARCHAR"
property=
"operatorName"
/>
<result
column=
"operator_name"
jdbcType=
"VARCHAR"
property=
"operatorName"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
sms_package_record_id, product_name, item_count, item_fee, total_fee, pay_type,
status,
sms_package_record_id, product_name, item_count, item_fee, total_fee, pay_type,
delete_flag,
create_time, order_id, deduction_time, enterprise_id, discount_type, card_name, card_amount,
create_time, order_id, deduction_time, enterprise_id, discount_type, card_name, card_amount,
paid_fee, operator_id, operator_name
paid_fee, operator_id, operator_name
</sql>
</sql>
...
@@ -35,14 +35,14 @@
...
@@ -35,14 +35,14 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingSmsPackageRecord"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingSmsPackageRecord"
>
insert into tab_billing_sms_package_record (sms_package_record_id, product_name,
insert into tab_billing_sms_package_record (sms_package_record_id, product_name,
item_count, item_fee, total_fee,
item_count, item_fee, total_fee,
pay_type,
status, create_time,
pay_type,
delete_flag, create_time,
order_id, deduction_time, enterprise_id,
order_id, deduction_time, enterprise_id,
discount_type, card_name, card_amount,
discount_type, card_name, card_amount,
paid_fee, operator_id, operator_name
paid_fee, operator_id, operator_name
)
)
values (#{smsPackageRecordId,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR},
values (#{smsPackageRecordId,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR},
#{itemCount,jdbcType=INTEGER}, #{itemFee,jdbcType=DOUBLE}, #{totalFee,jdbcType=DOUBLE},
#{itemCount,jdbcType=INTEGER}, #{itemFee,jdbcType=DOUBLE}, #{totalFee,jdbcType=DOUBLE},
#{payType,jdbcType=INTEGER}, #{
status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{payType,jdbcType=INTEGER}, #{
deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{orderId,jdbcType=INTEGER}, #{deductionTime,jdbcType=TIMESTAMP}, #{enterpriseId,jdbcType=INTEGER},
#{orderId,jdbcType=INTEGER}, #{deductionTime,jdbcType=TIMESTAMP}, #{enterpriseId,jdbcType=INTEGER},
#{discountType,jdbcType=INTEGER}, #{cardName,jdbcType=VARCHAR}, #{cardAmount,jdbcType=DOUBLE},
#{discountType,jdbcType=INTEGER}, #{cardName,jdbcType=VARCHAR}, #{cardAmount,jdbcType=DOUBLE},
#{paidFee,jdbcType=DOUBLE}, #{operatorId,jdbcType=INTEGER}, #{operatorName,jdbcType=VARCHAR}
#{paidFee,jdbcType=DOUBLE}, #{operatorId,jdbcType=INTEGER}, #{operatorName,jdbcType=VARCHAR}
...
@@ -69,8 +69,8 @@
...
@@ -69,8 +69,8 @@
<if
test=
"payType != null"
>
<if
test=
"payType != null"
>
pay_type,
pay_type,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -122,8 +122,8 @@
...
@@ -122,8 +122,8 @@
<if
test=
"payType != null"
>
<if
test=
"payType != null"
>
#{payType,jdbcType=INTEGER},
#{payType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -175,8 +175,8 @@
...
@@ -175,8 +175,8 @@
<if
test=
"payType != null"
>
<if
test=
"payType != null"
>
pay_type = #{payType,jdbcType=INTEGER},
pay_type = #{payType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -218,7 +218,7 @@
...
@@ -218,7 +218,7 @@
item_fee = #{itemFee,jdbcType=DOUBLE},
item_fee = #{itemFee,jdbcType=DOUBLE},
total_fee = #{totalFee,jdbcType=DOUBLE},
total_fee = #{totalFee,jdbcType=DOUBLE},
pay_type = #{payType,jdbcType=INTEGER},
pay_type = #{payType,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
order_id = #{orderId,jdbcType=INTEGER},
order_id = #{orderId,jdbcType=INTEGER},
deduction_time = #{deductionTime,jdbcType=TIMESTAMP},
deduction_time = #{deductionTime,jdbcType=TIMESTAMP},
...
@@ -237,7 +237,7 @@
...
@@ -237,7 +237,7 @@
DATE_FORMAT(deduction_time,'%Y-%m-%d') statisticsDate,
DATE_FORMAT(deduction_time,'%Y-%m-%d') statisticsDate,
ifnull(sum(total_fee), 0) fee
ifnull(sum(total_fee), 0) fee
from tab_billing_sms_package_record
from tab_billing_sms_package_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and pay_type = 4
and pay_type = 4
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
select
select
ifnull(sum(total_fee), 0)
ifnull(sum(total_fee), 0)
from tab_billing_sms_package_record
from tab_billing_sms_package_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and pay_type = 4
and pay_type = 4
<if
test=
"dateType == 1 "
>
<if
test=
"dateType == 1 "
>
...
@@ -268,7 +268,7 @@
...
@@ -268,7 +268,7 @@
select
select
ifnull(sum(total_fee), 0)
ifnull(sum(total_fee), 0)
from tab_billing_sms_package_record
from tab_billing_sms_package_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
<if
test=
"startTime != null and startTime != '' "
>
<if
test=
"startTime != null and startTime != '' "
>
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
and DATE_FORMAT(deduction_time,'%Y-%m-%d')
>
= #{startTime}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingSmsRecordMapper.xml
View file @
776c0582
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"com.gic.enterprise.dao.mapper.TabBillingSmsRecordMapper"
>
<mapper
namespace=
"com.gic.enterprise.dao.mapper.TabBillingSmsRecordMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.enterprise.entity.TabBillingSmsRecord"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.enterprise.entity.TabBillingSmsRecord"
>
<id
column=
"sms_record_id"
jdbcType=
"BIGINT"
property=
"smsRecordId"
/>
<id
column=
"sms_record_id"
jdbcType=
"BIGINT"
property=
"smsRecordId"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"send_time"
jdbcType=
"TIMESTAMP"
property=
"sendTime"
/>
<result
column=
"send_time"
jdbcType=
"TIMESTAMP"
property=
"sendTime"
/>
<result
column=
"receive_phone"
jdbcType=
"VARCHAR"
property=
"receivePhone"
/>
<result
column=
"receive_phone"
jdbcType=
"VARCHAR"
property=
"receivePhone"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<result
column=
"database_status"
jdbcType=
"INTEGER"
property=
"databaseStatus"
/>
<result
column=
"database_status"
jdbcType=
"INTEGER"
property=
"databaseStatus"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
sms_record_id,
status, send_time, receive_phone, pay_type, app_code, app_name, sms_type,
sms_record_id,
delete_flag, send_time, receive_phone, pay_type, app_code, app_name, sms_type,
bill_number, fee, sms_content, create_time, update_time, deduction_time, enterprise_id,
bill_number, fee, sms_content, create_time, update_time, deduction_time, enterprise_id,
enterprise_sms_package_id, ecu_id, mcu_id, member_card_id, member_card_name, member_name,
enterprise_sms_package_id, ecu_id, mcu_id, member_card_id, member_card_name, member_name,
store_brand_name, store_id, store_name, store_group_id, store_group_name, user_id,
store_brand_name, store_id, store_name, store_group_id, store_group_name, user_id,
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
</select>
</select>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingSmsRecord"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingSmsRecord"
>
insert into tab_billing_sms_record (sms_record_id,
status, send_time,
insert into tab_billing_sms_record (sms_record_id,
delete_flag, send_time,
receive_phone, pay_type, app_code,
receive_phone, pay_type, app_code,
app_name, sms_type, bill_number,
app_name, sms_type, bill_number,
fee, sms_content, create_time,
fee, sms_content, create_time,
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
store_group_id, store_group_name, user_id,
store_group_id, store_group_name, user_id,
user_name, cache_status, database_status
user_name, cache_status, database_status
)
)
values (#{smsRecordId,jdbcType=BIGINT}, #{
status,jdbcType=INTEGER}, #{sendTime,jdbcType=TIMESTAMP},
values (#{smsRecordId,jdbcType=BIGINT}, #{
delete_flag,jdbcType=INTEGER}, #{sendTime,jdbcType=TIMESTAMP},
#{receivePhone,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, #{appCode,jdbcType=VARCHAR},
#{receivePhone,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, #{appCode,jdbcType=VARCHAR},
#{appName,jdbcType=VARCHAR}, #{smsType,jdbcType=INTEGER}, #{billNumber,jdbcType=INTEGER},
#{appName,jdbcType=VARCHAR}, #{smsType,jdbcType=INTEGER}, #{billNumber,jdbcType=INTEGER},
#{fee,jdbcType=DOUBLE}, #{smsContent,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{fee,jdbcType=DOUBLE}, #{smsContent,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
...
@@ -80,8 +80,8 @@
...
@@ -80,8 +80,8 @@
<if
test=
"smsRecordId != null"
>
<if
test=
"smsRecordId != null"
>
sms_record_id,
sms_record_id,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"sendTime != null"
>
<if
test=
"sendTime != null"
>
send_time,
send_time,
...
@@ -172,8 +172,8 @@
...
@@ -172,8 +172,8 @@
<if
test=
"smsRecordId != null"
>
<if
test=
"smsRecordId != null"
>
#{smsRecordId,jdbcType=BIGINT},
#{smsRecordId,jdbcType=BIGINT},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"sendTime != null"
>
<if
test=
"sendTime != null"
>
#{sendTime,jdbcType=TIMESTAMP},
#{sendTime,jdbcType=TIMESTAMP},
...
@@ -264,8 +264,8 @@
...
@@ -264,8 +264,8 @@
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabBillingSmsRecord"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabBillingSmsRecord"
>
update tab_billing_sms_record
update tab_billing_sms_record
<set>
<set>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"sendTime != null"
>
<if
test=
"sendTime != null"
>
send_time = #{sendTime,jdbcType=TIMESTAMP},
send_time = #{sendTime,jdbcType=TIMESTAMP},
...
@@ -356,7 +356,7 @@
...
@@ -356,7 +356,7 @@
</update>
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.enterprise.entity.TabBillingSmsRecord"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.enterprise.entity.TabBillingSmsRecord"
>
update tab_billing_sms_record
update tab_billing_sms_record
set
status = #{status
,jdbcType=INTEGER},
set
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
send_time = #{sendTime,jdbcType=TIMESTAMP},
send_time = #{sendTime,jdbcType=TIMESTAMP},
receive_phone = #{receivePhone,jdbcType=VARCHAR},
receive_phone = #{receivePhone,jdbcType=VARCHAR},
pay_type = #{payType,jdbcType=INTEGER},
pay_type = #{payType,jdbcType=INTEGER},
...
@@ -392,7 +392,7 @@
...
@@ -392,7 +392,7 @@
DATE_FORMAT(deduction_time,'%Y-%m-%d') statisticsDate,
DATE_FORMAT(deduction_time,'%Y-%m-%d') statisticsDate,
ifnull(sum(fee), 0) fee
ifnull(sum(fee), 0) fee
from tab_billing_sms_record
from tab_billing_sms_record
where
status = 1
where
delete_flag = 0
and cache_status = 1
and cache_status = 1
and database_status = 1
and database_status = 1
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
...
@@ -410,7 +410,7 @@
...
@@ -410,7 +410,7 @@
select
select
ifnull(sum(fee), 0)
ifnull(sum(fee), 0)
from tab_billing_sms_record
from tab_billing_sms_record
where
status = 1
where
delete_flag = 0
and cache_status = 1
and cache_status = 1
and database_status = 1
and database_status = 1
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
...
@@ -426,7 +426,7 @@
...
@@ -426,7 +426,7 @@
select
select
ifnull(sum(fee), 0)
ifnull(sum(fee), 0)
from tab_billing_sms_record
from tab_billing_sms_record
where
status = 1
where
delete_flag = 0
and cache_status = 1
and cache_status = 1
and database_status = 1
and database_status = 1
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
...
@@ -441,7 +441,7 @@
...
@@ -441,7 +441,7 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_billing_sms_record
from tab_billing_sms_record
where
status = 1
where
delete_flag = 0
and cache_status = 1
and cache_status = 1
and database_status = 1
and database_status = 1
and enterprise_sms_package_id=#{smsPackageId}
and enterprise_sms_package_id=#{smsPackageId}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabBillingVoiceCodeRecordMapper.xml
View file @
776c0582
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<resultMap
id=
"BaseResultMap"
type=
"com.gic.enterprise.entity.TabBillingVoiceCodeRecord"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.enterprise.entity.TabBillingVoiceCodeRecord"
>
<id
column=
"voice_code_record_id"
jdbcType=
"INTEGER"
property=
"voiceCodeRecordId"
/>
<id
column=
"voice_code_record_id"
jdbcType=
"INTEGER"
property=
"voiceCodeRecordId"
/>
<result
column=
"pay_serial_number"
jdbcType=
"VARCHAR"
property=
"paySerialNumber"
/>
<result
column=
"pay_serial_number"
jdbcType=
"VARCHAR"
property=
"paySerialNumber"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"send_time"
jdbcType=
"TIMESTAMP"
property=
"sendTime"
/>
<result
column=
"send_time"
jdbcType=
"TIMESTAMP"
property=
"sendTime"
/>
<result
column=
"receive_phone"
jdbcType=
"VARCHAR"
property=
"receivePhone"
/>
<result
column=
"receive_phone"
jdbcType=
"VARCHAR"
property=
"receivePhone"
/>
<result
column=
"voice_time"
jdbcType=
"VARCHAR"
property=
"voiceTime"
/>
<result
column=
"voice_time"
jdbcType=
"VARCHAR"
property=
"voiceTime"
/>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<result
column=
"store_group_name"
jdbcType=
"VARCHAR"
property=
"storeGroupName"
/>
<result
column=
"store_group_name"
jdbcType=
"VARCHAR"
property=
"storeGroupName"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
voice_code_record_id, pay_serial_number,
status, send_time, receive_phone, voice_time,
voice_code_record_id, pay_serial_number,
delete_flag, send_time, receive_phone, voice_time,
app_code, app_name, fee, create_time, update_time, enterprise_id, unit_fee, deduction_time,
app_code, app_name, fee, create_time, update_time, enterprise_id, unit_fee, deduction_time,
member_name, store_id, store_name, store_group_id, store_group_name
member_name, store_id, store_name, store_group_id, store_group_name
</sql>
</sql>
...
@@ -36,14 +36,14 @@
...
@@ -36,14 +36,14 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingVoiceCodeRecord"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabBillingVoiceCodeRecord"
>
insert into tab_billing_voice_code_record (voice_code_record_id, pay_serial_number,
insert into tab_billing_voice_code_record (voice_code_record_id, pay_serial_number,
status, send_time, receive_phone,
delete_flag, send_time, receive_phone,
voice_time, app_code, app_name,
voice_time, app_code, app_name,
fee, create_time, update_time,
fee, create_time, update_time,
enterprise_id, unit_fee, deduction_time,
enterprise_id, unit_fee, deduction_time,
member_name, store_id, store_name,
member_name, store_id, store_name,
store_group_id, store_group_name)
store_group_id, store_group_name)
values (#{voiceCodeRecordId,jdbcType=INTEGER}, #{paySerialNumber,jdbcType=VARCHAR},
values (#{voiceCodeRecordId,jdbcType=INTEGER}, #{paySerialNumber,jdbcType=VARCHAR},
#{
status,jdbcType=INTEGER}, #{sendTime,jdbcType=TIMESTAMP}, #{receivePhone,jdbcType=VARCHAR},
#{
deleteFlag,jdbcType=INTEGER}, #{sendTime,jdbcType=TIMESTAMP}, #{receivePhone,jdbcType=VARCHAR},
#{voiceTime,jdbcType=VARCHAR}, #{appCode,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR},
#{voiceTime,jdbcType=VARCHAR}, #{appCode,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR},
#{fee,jdbcType=DOUBLE}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{fee,jdbcType=DOUBLE}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{enterpriseId,jdbcType=INTEGER}, #{unitFee,jdbcType=BIGINT}, #{deductionTime,jdbcType=TIMESTAMP},
#{enterpriseId,jdbcType=INTEGER}, #{unitFee,jdbcType=BIGINT}, #{deductionTime,jdbcType=TIMESTAMP},
...
@@ -59,8 +59,8 @@
...
@@ -59,8 +59,8 @@
<if
test=
"paySerialNumber != null"
>
<if
test=
"paySerialNumber != null"
>
pay_serial_number,
pay_serial_number,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"sendTime != null"
>
<if
test=
"sendTime != null"
>
send_time,
send_time,
...
@@ -118,8 +118,8 @@
...
@@ -118,8 +118,8 @@
<if
test=
"paySerialNumber != null"
>
<if
test=
"paySerialNumber != null"
>
#{paySerialNumber,jdbcType=VARCHAR},
#{paySerialNumber,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"sendTime != null"
>
<if
test=
"sendTime != null"
>
#{sendTime,jdbcType=TIMESTAMP},
#{sendTime,jdbcType=TIMESTAMP},
...
@@ -177,8 +177,8 @@
...
@@ -177,8 +177,8 @@
<if
test=
"paySerialNumber != null"
>
<if
test=
"paySerialNumber != null"
>
pay_serial_number = #{paySerialNumber,jdbcType=VARCHAR},
pay_serial_number = #{paySerialNumber,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"sendTime != null"
>
<if
test=
"sendTime != null"
>
send_time = #{sendTime,jdbcType=TIMESTAMP},
send_time = #{sendTime,jdbcType=TIMESTAMP},
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.enterprise.entity.TabBillingVoiceCodeRecord"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.enterprise.entity.TabBillingVoiceCodeRecord"
>
update tab_billing_voice_code_record
update tab_billing_voice_code_record
set pay_serial_number = #{paySerialNumber,jdbcType=VARCHAR},
set pay_serial_number = #{paySerialNumber,jdbcType=VARCHAR},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
send_time = #{sendTime,jdbcType=TIMESTAMP},
send_time = #{sendTime,jdbcType=TIMESTAMP},
receive_phone = #{receivePhone,jdbcType=VARCHAR},
receive_phone = #{receivePhone,jdbcType=VARCHAR},
voice_time = #{voiceTime,jdbcType=VARCHAR},
voice_time = #{voiceTime,jdbcType=VARCHAR},
...
@@ -259,7 +259,7 @@
...
@@ -259,7 +259,7 @@
DATE_FORMAT(send_time,'%Y-%m-%d') statisticsDate,
DATE_FORMAT(send_time,'%Y-%m-%d') statisticsDate,
ifnull(sum(fee), 0) fee
ifnull(sum(fee), 0) fee
from tab_billing_voice_code_record
from tab_billing_voice_code_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
and DATE_FORMAT(send_time,'%Y-%m-%d')
>
= #{startTime}
and DATE_FORMAT(send_time,'%Y-%m-%d')
>
= #{startTime}
...
@@ -274,7 +274,7 @@
...
@@ -274,7 +274,7 @@
select
select
ifnull(sum(fee), 0)
ifnull(sum(fee), 0)
from tab_billing_voice_code_record
from tab_billing_voice_code_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
<if
test=
"dateType == 1 "
>
<if
test=
"dateType == 1 "
>
and date_format(send_time,'%Y-%m') = date_format(now(),'%Y-%m')
and date_format(send_time,'%Y-%m') = date_format(now(),'%Y-%m')
...
@@ -287,7 +287,7 @@
...
@@ -287,7 +287,7 @@
select
select
ifnull(sum(fee), 0)
ifnull(sum(fee), 0)
from tab_billing_voice_code_record
from tab_billing_voice_code_record
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
<if
test=
"startTime != null and startTime != '' "
>
<if
test=
"startTime != null and startTime != '' "
>
and DATE_FORMAT(send_time,'%Y-%m-%d')
>
= #{startTime}
and DATE_FORMAT(send_time,'%Y-%m-%d')
>
= #{startTime}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabConfigRuleEnterpriseMapper.xml
View file @
776c0582
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
<id
column=
"enterprise_rule_id"
jdbcType=
"INTEGER"
property=
"enterpriseRuleId"
/>
<id
column=
"enterprise_rule_id"
jdbcType=
"INTEGER"
property=
"enterpriseRuleId"
/>
<result
column=
"rule_name"
jdbcType=
"VARCHAR"
property=
"ruleName"
/>
<result
column=
"rule_name"
jdbcType=
"VARCHAR"
property=
"ruleName"
/>
<result
column=
"enterprise_type"
jdbcType=
"INTEGER"
property=
"enterpriseType"
/>
<result
column=
"enterprise_type"
jdbcType=
"INTEGER"
property=
"enterpriseType"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
enterprise_rule_id, rule_name, enterprise_type,
status
, create_time, update_time
enterprise_rule_id, rule_name, enterprise_type,
delete_flag
, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabConfigRuleEnterprise"
useGeneratedKeys=
"true"
keyProperty=
"enterpriseRuleId"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabConfigRuleEnterprise"
useGeneratedKeys=
"true"
keyProperty=
"enterpriseRuleId"
>
insert into tab_config_rule_enterprise (enterprise_rule_id, rule_name, enterprise_type,
insert into tab_config_rule_enterprise (enterprise_rule_id, rule_name, enterprise_type,
status
, create_time, update_time
delete_flag
, create_time, update_time
)
)
values (#{enterpriseRuleId,jdbcType=INTEGER}, #{ruleName,jdbcType=VARCHAR}, #{enterpriseType,jdbcType=INTEGER},
values (#{enterpriseRuleId,jdbcType=INTEGER}, #{ruleName,jdbcType=VARCHAR}, #{enterpriseType,jdbcType=INTEGER},
#{
status
,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
#{
deleteFlag
,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabConfigRuleEnterprise"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabConfigRuleEnterprise"
>
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
<if
test=
"enterpriseType != null"
>
<if
test=
"enterpriseType != null"
>
enterprise_type,
enterprise_type,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -59,8 +59,8 @@
...
@@ -59,8 +59,8 @@
<if
test=
"enterpriseType != null"
>
<if
test=
"enterpriseType != null"
>
#{enterpriseType,jdbcType=INTEGER},
#{enterpriseType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -79,8 +79,8 @@
...
@@ -79,8 +79,8 @@
<if
test=
"enterpriseType != null"
>
<if
test=
"enterpriseType != null"
>
enterprise_type = #{enterpriseType,jdbcType=INTEGER},
enterprise_type = #{enterpriseType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
update tab_config_rule_enterprise
update tab_config_rule_enterprise
set rule_name = #{ruleName,jdbcType=VARCHAR},
set rule_name = #{ruleName,jdbcType=VARCHAR},
enterprise_type = #{enterpriseType,jdbcType=INTEGER},
enterprise_type = #{enterpriseType,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where enterprise_rule_id = #{enterpriseRuleId,jdbcType=INTEGER}
where enterprise_rule_id = #{enterpriseRuleId,jdbcType=INTEGER}
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
<select
id=
"countRepeatName"
resultType=
"int"
>
<select
id=
"countRepeatName"
resultType=
"int"
>
select count(1) from tab_config_rule_enterprise
select count(1) from tab_config_rule_enterprise
where
status = 1
where
delete_flag = 0
and rule_name = #{ruleName}
and rule_name = #{ruleName}
<if
test=
"enterpriseRuleId != null"
>
<if
test=
"enterpriseRuleId != null"
>
and enterprise_rule_id
<>
#{enterpriseRuleId}
and enterprise_rule_id
<>
#{enterpriseRuleId}
...
@@ -114,14 +114,14 @@
...
@@ -114,14 +114,14 @@
select t1.enterprise_rule_id enterpriseRuleId, t1.rule_name ruleName, count(DISTINCT t2.enterprise_id) countEnterpriseId
select t1.enterprise_rule_id enterpriseRuleId, t1.rule_name ruleName, count(DISTINCT t2.enterprise_id) countEnterpriseId
from tab_config_rule_enterprise t1
from tab_config_rule_enterprise t1
left join tab_config_rule_enterprise_rel t2 on t1.enterprise_rule_id = t2.enterprise_rule_id
left join tab_config_rule_enterprise_rel t2 on t1.enterprise_rule_id = t2.enterprise_rule_id
and t2.
status = 1
and t2.
delete_flag = 0
<if
test=
"search == null or search == '' "
>
<if
test=
"search == null or search == '' "
>
and t2.enterprise_id != -1
and t2.enterprise_id != -1
</if>
</if>
<if
test=
"search != null and search != '' "
>
<if
test=
"search != null and search != '' "
>
left join tab_enterprise t3 on t2.enterprise_id = t3.enterprise_id
left join tab_enterprise t3 on t2.enterprise_id = t3.enterprise_id
</if>
</if>
where t1.
status = 1
where t1.
delete_flag = 0
<if
test=
"search != null and search != '' "
>
<if
test=
"search != null and search != '' "
>
and ( t1.rule_name like concat('%', #{search}, '%')
and ( t1.rule_name like concat('%', #{search}, '%')
or t3.enterprise_name like concat('%', #{search}, '%')
or t3.enterprise_name like concat('%', #{search}, '%')
...
@@ -135,8 +135,8 @@
...
@@ -135,8 +135,8 @@
select t2.enterprise_name enterpriseName, t2.company_name companyName, t2.logo logo, t2.enterprise_id enterpriseId
select t2.enterprise_name enterpriseName, t2.company_name companyName, t2.logo logo, t2.enterprise_id enterpriseId
from tab_config_rule_enterprise_rel t1
from tab_config_rule_enterprise_rel t1
left join tab_enterprise t2 on t1.enterprise_id = t2.enterprise_id
left join tab_enterprise t2 on t1.enterprise_id = t2.enterprise_id
where t1.
status = 1
where t1.
delete_flag = 0
and t2.
status = 1
and t2.
delete_flag = 0
and t1.enterprise_id != -1
and t1.enterprise_id != -1
and t1.enterprise_rule_id = #{enterpriseRuleId}
and t1.enterprise_rule_id = #{enterpriseRuleId}
<if
test=
"search != null and search != '' "
>
<if
test=
"search != null and search != '' "
>
...
@@ -149,6 +149,6 @@
...
@@ -149,6 +149,6 @@
<select
id=
"listEnterpriseRuleAll"
resultMap=
"BaseResultMap"
>
<select
id=
"listEnterpriseRuleAll"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_config_rule_enterprise
from tab_config_rule_enterprise
where
status = 1
where
delete_flag = 0
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabConfigRuleEnterpriseRelMapper.xml
View file @
776c0582
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
<id
column=
"enterprise_rel_id"
jdbcType=
"INTEGER"
property=
"enterpriseRelId"
/>
<id
column=
"enterprise_rel_id"
jdbcType=
"INTEGER"
property=
"enterpriseRelId"
/>
<result
column=
"enterprise_rule_id"
jdbcType=
"INTEGER"
property=
"enterpriseRuleId"
/>
<result
column=
"enterprise_rule_id"
jdbcType=
"INTEGER"
property=
"enterpriseRuleId"
/>
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
enterprise_rel_id, enterprise_rule_id, enterprise_id,
status
, create_time, update_time
enterprise_rel_id, enterprise_rule_id, enterprise_id,
delete_flag
, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabConfigRuleEnterpriseRel"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabConfigRuleEnterpriseRel"
>
insert into tab_config_rule_enterprise_rel (enterprise_rel_id, enterprise_rule_id,
insert into tab_config_rule_enterprise_rel (enterprise_rel_id, enterprise_rule_id,
enterprise_id,
status, create_time,
enterprise_id,
delete_flag, create_time,
update_time)
update_time)
values (#{enterpriseRelId,jdbcType=INTEGER}, #{enterpriseRuleId,jdbcType=INTEGER},
values (#{enterpriseRelId,jdbcType=INTEGER}, #{enterpriseRuleId,jdbcType=INTEGER},
#{enterpriseId,jdbcType=INTEGER}, #{
status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{enterpriseId,jdbcType=INTEGER}, #{
deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
#{updateTime,jdbcType=TIMESTAMP})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabConfigRuleEnterpriseRel"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabConfigRuleEnterpriseRel"
>
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
<if
test=
"enterpriseId != null"
>
<if
test=
"enterpriseId != null"
>
enterprise_id,
enterprise_id,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -59,8 +59,8 @@
...
@@ -59,8 +59,8 @@
<if
test=
"enterpriseId != null"
>
<if
test=
"enterpriseId != null"
>
#{enterpriseId,jdbcType=INTEGER},
#{enterpriseId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -79,8 +79,8 @@
...
@@ -79,8 +79,8 @@
<if
test=
"enterpriseId != null"
>
<if
test=
"enterpriseId != null"
>
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
update tab_config_rule_enterprise_rel
update tab_config_rule_enterprise_rel
set enterprise_rule_id = #{enterpriseRuleId,jdbcType=INTEGER},
set enterprise_rule_id = #{enterpriseRuleId,jdbcType=INTEGER},
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where enterprise_rel_id = #{enterpriseRelId,jdbcType=INTEGER}
where enterprise_rel_id = #{enterpriseRelId,jdbcType=INTEGER}
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
>
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
>
insert into tab_config_rule_enterprise_rel (enterprise_rel_id, enterprise_rule_id,
insert into tab_config_rule_enterprise_rel (enterprise_rel_id, enterprise_rule_id,
enterprise_id,
status
, create_time,
enterprise_id,
delete_flag
, create_time,
update_time)
update_time)
values
values
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
#{item.enterpriseRelId},
#{item.enterpriseRelId},
#{item.enterpriseRuleId},
#{item.enterpriseRuleId},
#{item.enterpriseId},
#{item.enterpriseId},
#{item.
status
},
#{item.
deleteFlag
},
#{item.createTime},
#{item.createTime},
#{item.updateTime}
#{item.updateTime}
)
)
...
@@ -119,14 +119,14 @@
...
@@ -119,14 +119,14 @@
</insert>
</insert>
<update
id=
"deleteByEnterpriseRuleId"
>
<update
id=
"deleteByEnterpriseRuleId"
>
update tab_config_rule_enterprise_rel set
status = 0
update tab_config_rule_enterprise_rel set
delete_flag = 1
where
status = 1
where
delete_flag = 0
and enterprise_rule_id = #{enterpriseRuleId}
and enterprise_rule_id = #{enterpriseRuleId}
</update>
</update>
<update
id=
"deleteByEnterpriseIdList"
>
<update
id=
"deleteByEnterpriseIdList"
>
update tab_config_rule_enterprise_rel set
status = 0
update tab_config_rule_enterprise_rel set
delete_flag = 1
where
status = 1
where
delete_flag = 0
<if
test=
"list != null and list.size() > 0"
>
<if
test=
"list != null and list.size() > 0"
>
and enterprise_id in
and enterprise_id in
<foreach
collection=
"list"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
...
@@ -138,14 +138,14 @@
...
@@ -138,14 +138,14 @@
<select
id=
"listEnterprise"
resultMap=
"BaseResultMap"
>
<select
id=
"listEnterprise"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_config_rule_enterprise_rel
from tab_config_rule_enterprise_rel
where
status = 1
where
delete_flag = 0
group by enterprise_id
group by enterprise_id
</select>
</select>
<select
id=
"getByEnterpriseId"
resultMap=
"BaseResultMap"
>
<select
id=
"getByEnterpriseId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_config_rule_enterprise_rel
from tab_config_rule_enterprise_rel
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
limit 1
limit 1
</select>
</select>
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabConfigRuleMapper.xml
View file @
776c0582
...
@@ -15,18 +15,18 @@
...
@@ -15,18 +15,18 @@
<result
column=
"parent_rule_id"
jdbcType=
"INTEGER"
property=
"parentRuleId"
/>
<result
column=
"parent_rule_id"
jdbcType=
"INTEGER"
property=
"parentRuleId"
/>
<result
column=
"rule_level"
jdbcType=
"INTEGER"
property=
"ruleLevel"
/>
<result
column=
"rule_level"
jdbcType=
"INTEGER"
property=
"ruleLevel"
/>
<result
column=
"rule_chain"
jdbcType=
"VARCHAR"
property=
"ruleChain"
/>
<result
column=
"rule_chain"
jdbcType=
"VARCHAR"
property=
"ruleChain"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
rule_id, rule_name, app_name, app_code, classify_icon, rule_desc, remark, market_name, market_scene, market_object,
rule_id, rule_name, app_name, app_code, classify_icon, rule_desc, remark, market_name, market_scene, market_object,
parent_rule_id, rule_level, rule_chain,
status
, create_time, update_time
parent_rule_id, rule_level, rule_chain,
delete_flag
, create_time, update_time
</sql>
</sql>
<sql
id=
"Base_Column_List_alias"
>
<sql
id=
"Base_Column_List_alias"
>
${alias}.rule_id, ${alias}.rule_name, ${alias}.app_name, ${alias}.app_code, ${alias}.classify_icon,
${alias}.rule_id, ${alias}.rule_name, ${alias}.app_name, ${alias}.app_code, ${alias}.classify_icon,
${alias}.rule_desc, ${alias}.remark, ${alias}.market_name, ${alias}.market_scene, ${alias}.market_object,
${alias}.rule_desc, ${alias}.remark, ${alias}.market_name, ${alias}.market_scene, ${alias}.market_object,
${alias}.parent_rule_id, ${alias}.rule_level, ${alias}.rule_chain, ${alias}.
status
, ${alias}.create_time, ${alias}.update_time
${alias}.parent_rule_id, ${alias}.rule_level, ${alias}.rule_chain, ${alias}.
delete_flag
, ${alias}.create_time, ${alias}.update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -40,13 +40,13 @@
...
@@ -40,13 +40,13 @@
app_code, classify_icon, rule_desc,
app_code, classify_icon, rule_desc,
remark, market_name, market_scene, market_object,
remark, market_name, market_scene, market_object,
parent_rule_id, rule_level, rule_chain,
parent_rule_id, rule_level, rule_chain,
status
, create_time, update_time
delete_flag
, create_time, update_time
)
)
values (#{ruleId,jdbcType=INTEGER}, #{ruleName,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR},
values (#{ruleId,jdbcType=INTEGER}, #{ruleName,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR},
#{appCode,jdbcType=VARCHAR}, #{classifyIcon,jdbcType=VARCHAR}, #{ruleDesc,jdbcType=VARCHAR},
#{appCode,jdbcType=VARCHAR}, #{classifyIcon,jdbcType=VARCHAR}, #{ruleDesc,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR}, #{marketName,jdbcType=VARCHAR}, #{marketScene,jdbcType=VARCHAR}, #{marketObject,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR}, #{marketName,jdbcType=VARCHAR}, #{marketScene,jdbcType=VARCHAR}, #{marketObject,jdbcType=INTEGER},
#{parentRuleId,jdbcType=INTEGER}, #{ruleLevel,jdbcType=INTEGER}, #{ruleChain,jdbcType=VARCHAR},
#{parentRuleId,jdbcType=INTEGER}, #{ruleLevel,jdbcType=INTEGER}, #{ruleChain,jdbcType=VARCHAR},
#{
status
,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
#{
deleteFlag
,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabConfigRule"
useGeneratedKeys=
"true"
keyProperty=
"ruleId"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabConfigRule"
useGeneratedKeys=
"true"
keyProperty=
"ruleId"
>
...
@@ -91,8 +91,8 @@
...
@@ -91,8 +91,8 @@
<if
test=
"ruleChain != null"
>
<if
test=
"ruleChain != null"
>
rule_chain,
rule_chain,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -141,8 +141,8 @@
...
@@ -141,8 +141,8 @@
<if
test=
"ruleChain != null"
>
<if
test=
"ruleChain != null"
>
#{ruleChain,jdbcType=VARCHAR},
#{ruleChain,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -191,8 +191,8 @@
...
@@ -191,8 +191,8 @@
<if
test=
"ruleChain != null"
>
<if
test=
"ruleChain != null"
>
rule_chain = #{ruleChain,jdbcType=VARCHAR},
rule_chain = #{ruleChain,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -217,7 +217,7 @@
...
@@ -217,7 +217,7 @@
parent_rule_id = #{parentRuleId,jdbcType=INTEGER},
parent_rule_id = #{parentRuleId,jdbcType=INTEGER},
rule_level = #{ruleLevel,jdbcType=INTEGER},
rule_level = #{ruleLevel,jdbcType=INTEGER},
rule_chain = #{ruleChain,jdbcType=VARCHAR},
rule_chain = #{ruleChain,jdbcType=VARCHAR},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where rule_id = #{ruleId,jdbcType=INTEGER}
where rule_id = #{ruleId,jdbcType=INTEGER}
...
@@ -225,7 +225,7 @@
...
@@ -225,7 +225,7 @@
<select
id=
"countRepeatName"
resultType=
"int"
>
<select
id=
"countRepeatName"
resultType=
"int"
>
select count(1) from tab_config_rule
select count(1) from tab_config_rule
where
status = 1
where
delete_flag = 0
and rule_level = #{ruleLevel}
and rule_level = #{ruleLevel}
and rule_name = #{name}
and rule_name = #{name}
<if
test=
"ruleLevel == 1"
>
<if
test=
"ruleLevel == 1"
>
...
@@ -243,7 +243,7 @@
...
@@ -243,7 +243,7 @@
<select
id=
"countRepeatAppCode"
resultType=
"int"
>
<select
id=
"countRepeatAppCode"
resultType=
"int"
>
select count(1) from tab_config_rule
select count(1) from tab_config_rule
where
status = 1
where
delete_flag = 0
and app_code = #{appCode}
and app_code = #{appCode}
and rule_level = 1
and rule_level = 1
<if
test=
"ruleId != null"
>
<if
test=
"ruleId != null"
>
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
<select
id=
"listRule"
resultMap=
"BaseResultMap"
>
<select
id=
"listRule"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_config_rule
from tab_config_rule
where
status = 1
where
delete_flag = 0
and rule_level = #{ruleLevel}
and rule_level = #{ruleLevel}
<if
test=
"ruleLevel != 1 "
>
<if
test=
"ruleLevel != 1 "
>
and parent_rule_id = #{ruleId}
and parent_rule_id = #{ruleId}
...
@@ -268,7 +268,7 @@
...
@@ -268,7 +268,7 @@
<select
id=
"listAll"
resultMap=
"BaseResultMap"
>
<select
id=
"listAll"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_config_rule
from tab_config_rule
where
status = 1
where
delete_flag = 0
<if
test=
"ruleId != null"
>
<if
test=
"ruleId != null"
>
and parent_rule_id = #{ruleId}
and parent_rule_id = #{ruleId}
</if>
</if>
...
@@ -283,7 +283,7 @@
...
@@ -283,7 +283,7 @@
FROM
FROM
tab_config_rule
tab_config_rule
WHERE
WHERE
STATUS = 1
delete_flag = 0
AND ( rule_name LIKE concat('%', #{search}, '%') or app_name like concat('%', #{search}, '%') )
AND ( rule_name LIKE concat('%', #{search}, '%') or app_name like concat('%', #{search}, '%') )
) t1,
) t1,
(
(
...
@@ -292,7 +292,7 @@
...
@@ -292,7 +292,7 @@
FROM
FROM
tab_config_rule
tab_config_rule
WHERE
WHERE
STATUS = 1
delete_flag = 0
) t2
) t2
where t1.rule_chain LIKE concat('%', t2.rule_chain, '%')
where t1.rule_chain LIKE concat('%', t2.rule_chain, '%')
</select>
</select>
...
@@ -300,7 +300,7 @@
...
@@ -300,7 +300,7 @@
<select
id=
"getByAppCode"
resultMap=
"BaseResultMap"
>
<select
id=
"getByAppCode"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_config_rule
from tab_config_rule
where
status = 1
where
delete_flag = 0
and app_code = #{appCode}
and app_code = #{appCode}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabConfigRuleRelMapper.xml
View file @
776c0582
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
<id
column=
"rule_rel_id"
jdbcType=
"INTEGER"
property=
"ruleRelId"
/>
<id
column=
"rule_rel_id"
jdbcType=
"INTEGER"
property=
"ruleRelId"
/>
<result
column=
"enterprise_rule_id"
jdbcType=
"INTEGER"
property=
"enterpriseRuleId"
/>
<result
column=
"enterprise_rule_id"
jdbcType=
"INTEGER"
property=
"enterpriseRuleId"
/>
<result
column=
"rule_id"
jdbcType=
"INTEGER"
property=
"ruleId"
/>
<result
column=
"rule_id"
jdbcType=
"INTEGER"
property=
"ruleId"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
rule_rel_id, enterprise_rule_id, rule_id,
status
, create_time, update_time
rule_rel_id, enterprise_rule_id, rule_id,
delete_flag
, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabConfigRuleRel"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabConfigRuleRel"
>
insert into tab_config_rule_rel (rule_rel_id, enterprise_rule_id, rule_id,
insert into tab_config_rule_rel (rule_rel_id, enterprise_rule_id, rule_id,
status
, create_time, update_time
delete_flag
, create_time, update_time
)
)
values (#{ruleRelId,jdbcType=INTEGER}, #{enterpriseRuleId,jdbcType=INTEGER}, #{ruleId,jdbcType=INTEGER},
values (#{ruleRelId,jdbcType=INTEGER}, #{enterpriseRuleId,jdbcType=INTEGER}, #{ruleId,jdbcType=INTEGER},
#{
status
,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
#{
deleteFlag
,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabConfigRuleRel"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabConfigRuleRel"
>
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
<if
test=
"ruleId != null"
>
<if
test=
"ruleId != null"
>
rule_id,
rule_id,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -59,8 +59,8 @@
...
@@ -59,8 +59,8 @@
<if
test=
"ruleId != null"
>
<if
test=
"ruleId != null"
>
#{ruleId,jdbcType=INTEGER},
#{ruleId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -79,8 +79,8 @@
...
@@ -79,8 +79,8 @@
<if
test=
"ruleId != null"
>
<if
test=
"ruleId != null"
>
rule_id = #{ruleId,jdbcType=INTEGER},
rule_id = #{ruleId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
update tab_config_rule_rel
update tab_config_rule_rel
set enterprise_rule_id = #{enterpriseRuleId,jdbcType=INTEGER},
set enterprise_rule_id = #{enterpriseRuleId,jdbcType=INTEGER},
rule_id = #{ruleId,jdbcType=INTEGER},
rule_id = #{ruleId,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where rule_rel_id = #{ruleRelId,jdbcType=INTEGER}
where rule_rel_id = #{ruleRelId,jdbcType=INTEGER}
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
>
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
>
insert into tab_config_rule_rel (rule_rel_id, enterprise_rule_id,
insert into tab_config_rule_rel (rule_rel_id, enterprise_rule_id,
rule_id,
status
, create_time,
rule_id,
delete_flag
, create_time,
update_time)
update_time)
values
values
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
#{item.ruleRelId},
#{item.ruleRelId},
#{item.enterpriseRuleId},
#{item.enterpriseRuleId},
#{item.ruleId},
#{item.ruleId},
#{item.
status
},
#{item.
deleteFlag
},
#{item.createTime},
#{item.createTime},
#{item.updateTime}
#{item.updateTime}
)
)
...
@@ -119,15 +119,15 @@
...
@@ -119,15 +119,15 @@
</insert>
</insert>
<update
id=
"deleteByEnterpriseRuleId"
>
<update
id=
"deleteByEnterpriseRuleId"
>
update tab_config_rule_rel set
status = 0
update tab_config_rule_rel set
delete_flag = 1
where
status = 1
where
delete_flag = 0
and enterprise_rule_id = #{enterpriseRuleId}
and enterprise_rule_id = #{enterpriseRuleId}
</update>
</update>
<select
id=
"listRuleRel"
resultMap=
"BaseResultMap"
>
<select
id=
"listRuleRel"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_config_rule_rel
from tab_config_rule_rel
where
status = 1
where
delete_flag = 0
and enterprise_rule_id = #{enterpriseRuleId}
and enterprise_rule_id = #{enterpriseRuleId}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabCustomGuideMapper.xml
View file @
776c0582
...
@@ -18,11 +18,12 @@
...
@@ -18,11 +18,12 @@
<result
column=
"custom_link_type"
jdbcType=
"INTEGER"
property=
"customLinkType"
/>
<result
column=
"custom_link_type"
jdbcType=
"INTEGER"
property=
"customLinkType"
/>
<result
column=
"custom_page"
jdbcType=
"VARCHAR"
property=
"customPage"
/>
<result
column=
"custom_page"
jdbcType=
"VARCHAR"
property=
"customPage"
/>
<result
column=
"appid"
jdbcType=
"VARCHAR"
property=
"appid"
/>
<result
column=
"appid"
jdbcType=
"VARCHAR"
property=
"appid"
/>
<result
column=
"delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
guide_id, enterprise_id, icon, title, entry_condition, link, status, sort, create_time,
guide_id, enterprise_id, icon, title, entry_condition, link, status, sort, create_time,
update_time, version, icon_path, selected_icon_path, custom_link_type, custom_page,
update_time, version, icon_path, selected_icon_path, custom_link_type, custom_page,
appid
appid
, delete_flag
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -37,13 +38,13 @@
...
@@ -37,13 +38,13 @@
status, sort, create_time,
status, sort, create_time,
update_time, version, icon_path,
update_time, version, icon_path,
selected_icon_path, custom_link_type, custom_page,
selected_icon_path, custom_link_type, custom_page,
appid)
appid
, delete_flag
)
values (#{guideId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{icon,jdbcType=VARCHAR},
values (#{guideId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{icon,jdbcType=VARCHAR},
#{title,jdbcType=VARCHAR}, #{entryCondition,jdbcType=INTEGER}, #{link,jdbcType=VARCHAR},
#{title,jdbcType=VARCHAR}, #{entryCondition,jdbcType=INTEGER}, #{link,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{version,jdbcType=INTEGER}, #{iconPath,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{version,jdbcType=INTEGER}, #{iconPath,jdbcType=VARCHAR},
#{selectedIconPath,jdbcType=VARCHAR}, #{customLinkType,jdbcType=INTEGER}, #{customPage,jdbcType=VARCHAR},
#{selectedIconPath,jdbcType=VARCHAR}, #{customLinkType,jdbcType=INTEGER}, #{customPage,jdbcType=VARCHAR},
#{appid,jdbcType=VARCHAR})
#{appid,jdbcType=VARCHAR}
, #{deleteFlag,jdbcType=INTEGER}
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabCustomGuide"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabCustomGuide"
>
insert into tab_custom_guide
insert into tab_custom_guide
...
@@ -96,6 +97,9 @@
...
@@ -96,6 +97,9 @@
<if
test=
"appid != null"
>
<if
test=
"appid != null"
>
appid,
appid,
</if>
</if>
<if
test=
"deleteFlag != null"
>
delete_flag,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"guideId != null"
>
<if
test=
"guideId != null"
>
...
@@ -146,6 +150,9 @@
...
@@ -146,6 +150,9 @@
<if
test=
"appid != null"
>
<if
test=
"appid != null"
>
#{appid,jdbcType=VARCHAR},
#{appid,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"deleteFlag != null"
>
#{deleteFlag,jdbcType=INTEGER},
</if>
</trim>
</trim>
</insert>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabCustomGuide"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabCustomGuide"
>
...
@@ -196,6 +203,9 @@
...
@@ -196,6 +203,9 @@
<if
test=
"appid != null"
>
<if
test=
"appid != null"
>
appid = #{appid,jdbcType=VARCHAR},
appid = #{appid,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"deleteFlag != null"
>
delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if>
</set>
</set>
where guide_id = #{guideId,jdbcType=INTEGER}
where guide_id = #{guideId,jdbcType=INTEGER}
</update>
</update>
...
@@ -215,7 +225,8 @@
...
@@ -215,7 +225,8 @@
selected_icon_path = #{selectedIconPath,jdbcType=VARCHAR},
selected_icon_path = #{selectedIconPath,jdbcType=VARCHAR},
custom_link_type = #{customLinkType,jdbcType=INTEGER},
custom_link_type = #{customLinkType,jdbcType=INTEGER},
custom_page = #{customPage,jdbcType=VARCHAR},
custom_page = #{customPage,jdbcType=VARCHAR},
appid = #{appid,jdbcType=VARCHAR}
appid = #{appid,jdbcType=VARCHAR},
delete_flag = #{deleteFlag,jdbcType=INTEGER}
where guide_id = #{guideId,jdbcType=INTEGER}
where guide_id = #{guideId,jdbcType=INTEGER}
</update>
</update>
<select
id=
"getVersion"
resultType=
"integer"
>
<select
id=
"getVersion"
resultType=
"integer"
>
...
@@ -240,7 +251,7 @@
...
@@ -240,7 +251,7 @@
<if
test=
"version != null"
>
<if
test=
"version != null"
>
and version = #{version}
and version = #{version}
</if>
</if>
and (status = 1 or status = 2)
and (status = 1 or status = 2)
and delete_flag = 0
<if
test=
"appid != null and appid != ''"
>
<if
test=
"appid != null and appid != ''"
>
and appid = #{appid}
and appid = #{appid}
</if>
</if>
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabCustomStoreMapper.xml
View file @
776c0582
...
@@ -12,10 +12,11 @@
...
@@ -12,10 +12,11 @@
<result
column=
"store_widget_id"
jdbcType=
"INTEGER"
property=
"storeWidgetId"
/>
<result
column=
"store_widget_id"
jdbcType=
"INTEGER"
property=
"storeWidgetId"
/>
<result
column=
"app_type"
jdbcType=
"INTEGER"
property=
"appType"
/>
<result
column=
"app_type"
jdbcType=
"INTEGER"
property=
"appType"
/>
<result
column=
"quick_guide_switch"
jdbcType=
"INTEGER"
property=
"quickGuideSwitch"
/>
<result
column=
"quick_guide_switch"
jdbcType=
"INTEGER"
property=
"quickGuideSwitch"
/>
<result
column=
"delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
custom_store_id, title, enterprise_id, appid, status, create_time, update_time, store_widget_id,
custom_store_id, title, enterprise_id, appid, status, create_time, update_time, store_widget_id,
app_type, quick_guide_switch
app_type, quick_guide_switch
, delete_flag
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -27,11 +28,12 @@
...
@@ -27,11 +28,12 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabCustomStore"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabCustomStore"
>
insert into tab_custom_store (custom_store_id, title, enterprise_id,
insert into tab_custom_store (custom_store_id, title, enterprise_id,
appid, status, create_time,
appid, status, create_time,
update_time, store_widget_id, app_type, quick_guide_switch
update_time, store_widget_id, app_type, quick_guide_switch
, delete_flag
)
)
values (#{customStoreId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER},
values (#{customStoreId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER},
#{appid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{appid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{storeWidgetId,jdbcType=INTEGER}, #{appType,jdbcType=INTEGER} #{quickGuideSwitch,jdbcType=INTEGER}
#{updateTime,jdbcType=TIMESTAMP}, #{storeWidgetId,jdbcType=INTEGER}, #{appType,jdbcType=INTEGER} #{quickGuideSwitch,jdbcType=INTEGER}
,#{deleteFlag,jdbcType=INTEGER}
)
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabCustomStore"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabCustomStore"
>
...
@@ -67,6 +69,9 @@
...
@@ -67,6 +69,9 @@
<if
test=
"quickGuideSwitch != null"
>
<if
test=
"quickGuideSwitch != null"
>
quick_guide_switch,
quick_guide_switch,
</if>
</if>
<if
test=
"deleteFlag != null"
>
delete_flag,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"customStoreId != null"
>
<if
test=
"customStoreId != null"
>
...
@@ -99,6 +104,9 @@
...
@@ -99,6 +104,9 @@
<if
test=
"quickGuideSwitch != null"
>
<if
test=
"quickGuideSwitch != null"
>
#{quickGuideSwitch,jdbcType=INTEGER},
#{quickGuideSwitch,jdbcType=INTEGER},
</if>
</if>
<if
test=
"deleteFlag != null"
>
#{deleteFlag,jdbcType=INTEGER},
</if>
</trim>
</trim>
</insert>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabCustomStore"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabCustomStore"
>
...
@@ -131,6 +139,9 @@
...
@@ -131,6 +139,9 @@
<if
test=
"quickGuideSwitch != null"
>
<if
test=
"quickGuideSwitch != null"
>
quick_guide_switch = #{quickGuideSwitch,jdbcType=INTEGER},
quick_guide_switch = #{quickGuideSwitch,jdbcType=INTEGER},
</if>
</if>
<if
test=
"deleteFlag != null"
>
delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if>
</set>
</set>
where custom_store_id = #{customStoreId,jdbcType=INTEGER}
where custom_store_id = #{customStoreId,jdbcType=INTEGER}
</update>
</update>
...
@@ -144,14 +155,15 @@
...
@@ -144,14 +155,15 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
store_widget_id = #{storeWidgetId,jdbcType=INTEGER},
store_widget_id = #{storeWidgetId,jdbcType=INTEGER},
app_type = #{appType,jdbcType=INTEGER},
app_type = #{appType,jdbcType=INTEGER},
quick_guide_switch = #{quickGuideSwitch,jdbcType=INTEGER}
quick_guide_switch = #{quickGuideSwitch,jdbcType=INTEGER},
delete_flag = #{deleteFlag,jdbcType=INTEGER}
where custom_store_id = #{customStoreId,jdbcType=INTEGER}
where custom_store_id = #{customStoreId,jdbcType=INTEGER}
</update>
</update>
<select
id=
"pageCustomStore"
resultMap=
"BaseResultMap"
>
<select
id=
"pageCustomStore"
resultMap=
"BaseResultMap"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_custom_store
from tab_custom_store
where enterprise_id = #{enterpriseId,jdbcType=INTEGER} and (status=1 or status=2)
where enterprise_id = #{enterpriseId,jdbcType=INTEGER} and (status=1 or status=2)
and delete_flag = 0
<if
test=
"appid != null and appid != ''"
>
<if
test=
"appid != null and appid != ''"
>
and appid= #{appid}
and appid= #{appid}
</if>
</if>
...
@@ -163,7 +175,7 @@
...
@@ -163,7 +175,7 @@
update tab_custom_store
update tab_custom_store
set status = 2
set status = 2
where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
and appid = #{appid,jdbcType=VARCHAR} and status=1
and appid = #{appid,jdbcType=VARCHAR} and status=1
and delete_flag = 0
</update>
</update>
<select
id=
"getCustomStore"
resultMap=
"BaseResultMap"
>
<select
id=
"getCustomStore"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -171,6 +183,6 @@
...
@@ -171,6 +183,6 @@
from tab_custom_store
from tab_custom_store
where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
and appid= #{appid}
and appid= #{appid}
and status=1
and status=1
and delete_flag = 0
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabCustomUdeskFieldMapper.xml
View file @
776c0582
...
@@ -12,10 +12,11 @@
...
@@ -12,10 +12,11 @@
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"delete_flag"
jdbcType=
"TIMESTAMP"
property=
"deleteFlag"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, udesk_field_id, gic_field_id, gic_field_name, status, app_id, field_type, enterprise_id, create_time,
id, udesk_field_id, gic_field_id, gic_field_name, status, app_id, field_type, enterprise_id, create_time,
update_time
update_time
, delete_flag
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -27,10 +28,10 @@
...
@@ -27,10 +28,10 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabCustomUdeskField"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabCustomUdeskField"
>
insert into tab_custom_udesk_field (id, udesk_field_id, gic_field_id,
insert into tab_custom_udesk_field (id, udesk_field_id, gic_field_id,
gic_field_name, status, app_id, field_type, enterprise_id,
gic_field_name, status, app_id, field_type, enterprise_id,
create_time, update_time)
create_time, update_time
, delete_flag
)
values (#{id,jdbcType=INTEGER}, #{udeskFieldId,jdbcType=VARCHAR}, #{gicFieldId,jdbcType=INTEGER},
values (#{id,jdbcType=INTEGER}, #{udeskFieldId,jdbcType=VARCHAR}, #{gicFieldId,jdbcType=INTEGER},
#{gicFieldName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{appId,jdbcType=VARCHAR}, #{fieldType,jdbcType=INTEGER},#{enterpriseId,jdbcType=INTEGER},
#{gicFieldName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{appId,jdbcType=VARCHAR}, #{fieldType,jdbcType=INTEGER},#{enterpriseId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
, #{deleteFlag,jdbcType=INTEGER}
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabCustomUdeskField"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabCustomUdeskField"
>
insert into tab_custom_udesk_field
insert into tab_custom_udesk_field
...
@@ -65,6 +66,9 @@
...
@@ -65,6 +66,9 @@
<if
test=
"updateTime != null"
>
<if
test=
"updateTime != null"
>
update_time,
update_time,
</if>
</if>
<if
test=
"deleteFlag != null"
>
delete_flag,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
<if
test=
"id != null"
>
...
@@ -97,6 +101,9 @@
...
@@ -97,6 +101,9 @@
<if
test=
"updateTime != null"
>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"deleteFlag != null"
>
#{deleteFlag,jdbcType=INTEGER},
</if>
</trim>
</trim>
</insert>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabCustomUdeskField"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.enterprise.entity.TabCustomUdeskField"
>
...
@@ -129,6 +136,9 @@
...
@@ -129,6 +136,9 @@
<if
test=
"updateTime != null"
>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"deleteFlag != null"
>
delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if>
</set>
</set>
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
...
@@ -137,7 +147,7 @@
...
@@ -137,7 +147,7 @@
set udesk_field_id = #{udeskFieldId,jdbcType=VARCHAR},
set udesk_field_id = #{udeskFieldId,jdbcType=VARCHAR},
gic_field_id = #{gicFieldId,jdbcType=INTEGER},
gic_field_id = #{gicFieldId,jdbcType=INTEGER},
gic_field_name = #{gicFieldName,jdbcType=VARCHAR},
gic_field_name = #{gicFieldName,jdbcType=VARCHAR},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
app_id = #{appId,jdbcType=VARCHAR},
app_id = #{appId,jdbcType=VARCHAR},
field_type = #{fieldType,jdbcType=INTEGER},
field_type = #{fieldType,jdbcType=INTEGER},
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
...
@@ -149,7 +159,7 @@
...
@@ -149,7 +159,7 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_custom_udesk_field
from tab_custom_udesk_field
where enterprise_id = #{enterpriseId,jdbcType=INTEGER} and status != 0
where enterprise_id = #{enterpriseId,jdbcType=INTEGER} and status != 0
and delete_flag = 0
and app_id = #{appId}
and app_id = #{appId}
</select>
</select>
...
@@ -157,7 +167,7 @@
...
@@ -157,7 +167,7 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_custom_udesk_field
from tab_custom_udesk_field
where enterprise_id = #{enterpriseId,jdbcType=INTEGER} and status = 1
where enterprise_id = #{enterpriseId,jdbcType=INTEGER} and status = 1
and delete_flag = 0
and app_id = #{appId}
and app_id = #{appId}
</select>
</select>
...
@@ -165,7 +175,7 @@
...
@@ -165,7 +175,7 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_custom_udesk_field
from tab_custom_udesk_field
where enterprise_id = #{enterpriseId,jdbcType=INTEGER} and status != 0
where enterprise_id = #{enterpriseId,jdbcType=INTEGER} and status != 0
and delete_flag = 0
and app_id = #{appId}
and app_id = #{appId}
and gic_field_id = #{gicFieldId}
and gic_field_id = #{gicFieldId}
</select>
</select>
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabDataActuallyPaidConfigMapper.xml
View file @
776c0582
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
<result
column=
"classify"
jdbcType=
"INTEGER"
property=
"classify"
/>
<result
column=
"classify"
jdbcType=
"INTEGER"
property=
"classify"
/>
<result
column=
"config_status"
jdbcType=
"INTEGER"
property=
"configStatus"
/>
<result
column=
"config_status"
jdbcType=
"INTEGER"
property=
"configStatus"
/>
<result
column=
"has_config"
jdbcType=
"INTEGER"
property=
"hasConfig"
/>
<result
column=
"has_config"
jdbcType=
"INTEGER"
property=
"hasConfig"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
actually_paid_config_id, enterprise_id, classify, config_status, has_config,
status
, create_time,
actually_paid_config_id, enterprise_id, classify, config_status, has_config,
delete_flag
, create_time,
update_time
update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
...
@@ -24,10 +24,10 @@
...
@@ -24,10 +24,10 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabDataActuallyPaidConfig"
useGeneratedKeys=
"true"
keyProperty=
"actuallyPaidConfigId"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabDataActuallyPaidConfig"
useGeneratedKeys=
"true"
keyProperty=
"actuallyPaidConfigId"
>
insert into tab_data_actually_paid_config (actually_paid_config_id, enterprise_id,
insert into tab_data_actually_paid_config (actually_paid_config_id, enterprise_id,
classify, config_status, has_config,
status
,
classify, config_status, has_config,
delete_flag
,
create_time, update_time)
create_time, update_time)
values (#{actuallyPaidConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
values (#{actuallyPaidConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
#{classify,jdbcType=INTEGER}, #{configStatus,jdbcType=INTEGER}, #{hasConfig,jdbcType=INTEGER}, #{
status
,jdbcType=INTEGER},
#{classify,jdbcType=INTEGER}, #{configStatus,jdbcType=INTEGER}, #{hasConfig,jdbcType=INTEGER}, #{
deleteFlag
,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabDataActuallyPaidConfig"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabDataActuallyPaidConfig"
>
...
@@ -48,8 +48,8 @@
...
@@ -48,8 +48,8 @@
<if
test=
"hasConfig != null"
>
<if
test=
"hasConfig != null"
>
has_config,
has_config,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -74,8 +74,8 @@
...
@@ -74,8 +74,8 @@
<if
test=
"hasConfig != null"
>
<if
test=
"hasConfig != null"
>
#{hasConfig,jdbcType=INTEGER},
#{hasConfig,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -100,8 +100,8 @@
...
@@ -100,8 +100,8 @@
<if
test=
"hasConfig != null"
>
<if
test=
"hasConfig != null"
>
has_config = #{hasConfig,jdbcType=INTEGER},
has_config = #{hasConfig,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
classify = #{classify,jdbcType=INTEGER},
classify = #{classify,jdbcType=INTEGER},
config_status = #{configStatus,jdbcType=INTEGER},
config_status = #{configStatus,jdbcType=INTEGER},
has_config = #{hasConfig,jdbcType=INTEGER},
has_config = #{hasConfig,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where actually_paid_config_id = #{actuallyPaidConfigId,jdbcType=INTEGER}
where actually_paid_config_id = #{actuallyPaidConfigId,jdbcType=INTEGER}
...
@@ -128,21 +128,21 @@
...
@@ -128,21 +128,21 @@
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_data_actually_paid_config
from tab_data_actually_paid_config
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and
status = 1
and
delete_flag = 0
order by classify
order by classify
</select>
</select>
<update
id=
"delete"
>
<update
id=
"delete"
>
update tab_data_actually_paid_config set
status = 0
update tab_data_actually_paid_config set
delete_flag = 1
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and classify = #{classify}
and classify = #{classify}
and
status = 1
and
delete_flag = 0
</update>
</update>
<select
id=
"get"
resultMap=
"BaseResultMap"
>
<select
id=
"get"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
from tab_data_actually_paid_config
select
<include
refid=
"Base_Column_List"
></include>
from tab_data_actually_paid_config
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and classify = #{classify}
and classify = #{classify}
and
status = 1
and
delete_flag = 0
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabDataGenerationConfigMapper.xml
View file @
776c0582
...
@@ -10,13 +10,13 @@
...
@@ -10,13 +10,13 @@
<result
column=
"second_sign"
jdbcType=
"INTEGER"
property=
"secondSign"
/>
<result
column=
"second_sign"
jdbcType=
"INTEGER"
property=
"secondSign"
/>
<result
column=
"age_second_value"
jdbcType=
"INTEGER"
property=
"ageSecondValue"
/>
<result
column=
"age_second_value"
jdbcType=
"INTEGER"
property=
"ageSecondValue"
/>
<result
column=
"description"
jdbcType=
"VARCHAR"
property=
"description"
/>
<result
column=
"description"
jdbcType=
"VARCHAR"
property=
"description"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
generation_config_id, enterprise_id, age_level, first_sign, age_first_value, second_sign,
generation_config_id, enterprise_id, age_level, first_sign, age_first_value, second_sign,
age_second_value, description,
status
, create_time, update_time
age_second_value, description,
delete_flag
, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -29,12 +29,12 @@
...
@@ -29,12 +29,12 @@
insert into tab_data_generation_config (generation_config_id, enterprise_id,
insert into tab_data_generation_config (generation_config_id, enterprise_id,
age_level, first_sign, age_first_value,
age_level, first_sign, age_first_value,
second_sign, age_second_value, description,
second_sign, age_second_value, description,
status
, create_time, update_time
delete_flag
, create_time, update_time
)
)
values (#{generationConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
values (#{generationConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
#{ageLevel,jdbcType=INTEGER}, #{firstSign,jdbcType=INTEGER}, #{ageFirstValue,jdbcType=INTEGER},
#{ageLevel,jdbcType=INTEGER}, #{firstSign,jdbcType=INTEGER}, #{ageFirstValue,jdbcType=INTEGER},
#{secondSign,jdbcType=INTEGER}, #{ageSecondValue,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR},
#{secondSign,jdbcType=INTEGER}, #{ageSecondValue,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR},
#{
status
,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
#{
deleteFlag
,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabDataGenerationConfig"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabDataGenerationConfig"
>
...
@@ -64,8 +64,8 @@
...
@@ -64,8 +64,8 @@
<if
test=
"description != null"
>
<if
test=
"description != null"
>
description,
description,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -99,8 +99,8 @@
...
@@ -99,8 +99,8 @@
<if
test=
"description != null"
>
<if
test=
"description != null"
>
#{description,jdbcType=VARCHAR},
#{description,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -134,8 +134,8 @@
...
@@ -134,8 +134,8 @@
<if
test=
"description != null"
>
<if
test=
"description != null"
>
description = #{description,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -155,23 +155,23 @@
...
@@ -155,23 +155,23 @@
second_sign = #{secondSign,jdbcType=INTEGER},
second_sign = #{secondSign,jdbcType=INTEGER},
age_second_value = #{ageSecondValue,jdbcType=INTEGER},
age_second_value = #{ageSecondValue,jdbcType=INTEGER},
description = #{description,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where generation_config_id = #{generationConfigId,jdbcType=INTEGER}
where generation_config_id = #{generationConfigId,jdbcType=INTEGER}
</update>
</update>
<update
id=
"deleteGenerationConfig"
>
<update
id=
"deleteGenerationConfig"
>
update tab_data_generation_config set
status = 0
update tab_data_generation_config set
delete_flag = 1
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and
status = 1
and
delete_flag = 0
</update>
</update>
<select
id=
"listGenerationByEnterpriseId"
resultMap=
"BaseResultMap"
>
<select
id=
"listGenerationByEnterpriseId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_data_generation_config
from tab_data_generation_config
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and
status = 1
and
delete_flag = 0
order by age_level
order by age_level
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabDataMemberConsumeConfigMapper.xml
View file @
776c0582
...
@@ -9,13 +9,13 @@
...
@@ -9,13 +9,13 @@
<result
column=
"member_consume_times_default"
jdbcType=
"INTEGER"
property=
"memberConsumeTimesDefault"
/>
<result
column=
"member_consume_times_default"
jdbcType=
"INTEGER"
property=
"memberConsumeTimesDefault"
/>
<result
column=
"member_consume_max_goods"
jdbcType=
"INTEGER"
property=
"memberConsumeMaxGoods"
/>
<result
column=
"member_consume_max_goods"
jdbcType=
"INTEGER"
property=
"memberConsumeMaxGoods"
/>
<result
column=
"member_consume_times_goods"
jdbcType=
"INTEGER"
property=
"memberConsumeTimesGoods"
/>
<result
column=
"member_consume_times_goods"
jdbcType=
"INTEGER"
property=
"memberConsumeTimesGoods"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
member_consume_config_id, enterprise_id, member_consume_count, member_consume_max_default, member_consume_times_default,
member_consume_config_id, enterprise_id, member_consume_count, member_consume_max_default, member_consume_times_default,
member_consume_max_goods, member_consume_times_goods,
status
, create_time, update_time
member_consume_max_goods, member_consume_times_goods,
delete_flag
, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -28,12 +28,12 @@
...
@@ -28,12 +28,12 @@
insert into tab_data_member_consume_config (member_consume_config_id, enterprise_id,
insert into tab_data_member_consume_config (member_consume_config_id, enterprise_id,
member_consume_count, member_consume_max_default, member_consume_times_default,
member_consume_count, member_consume_max_default, member_consume_times_default,
member_consume_max_goods, member_consume_times_goods,
member_consume_max_goods, member_consume_times_goods,
status
, create_time, update_time
delete_flag
, create_time, update_time
)
)
values (#{memberConsumeConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
values (#{memberConsumeConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
#{memberConsumeCount,jdbcType=INTEGER}, #{memberConsumeMaxDefault,jdbcType=INTEGER}, #{memberConsumeTimesDefault,jdbcType=INTEGER},
#{memberConsumeCount,jdbcType=INTEGER}, #{memberConsumeMaxDefault,jdbcType=INTEGER}, #{memberConsumeTimesDefault,jdbcType=INTEGER},
#{memberConsumeMaxGoods,jdbcType=INTEGER}, #{memberConsumeTimesGoods,jdbcType=INTEGER},
#{memberConsumeMaxGoods,jdbcType=INTEGER}, #{memberConsumeTimesGoods,jdbcType=INTEGER},
#{
status
,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
#{
deleteFlag
,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabDataMemberConsumeConfig"
useGeneratedKeys=
"true"
keyProperty=
"memberConsumeConfigId"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabDataMemberConsumeConfig"
useGeneratedKeys=
"true"
keyProperty=
"memberConsumeConfigId"
>
...
@@ -60,8 +60,8 @@
...
@@ -60,8 +60,8 @@
<if
test=
"memberConsumeTimesGoods != null"
>
<if
test=
"memberConsumeTimesGoods != null"
>
member_consume_times_goods,
member_consume_times_goods,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -92,8 +92,8 @@
...
@@ -92,8 +92,8 @@
<if
test=
"memberConsumeTimesGoods != null"
>
<if
test=
"memberConsumeTimesGoods != null"
>
#{memberConsumeTimesGoods,jdbcType=INTEGER},
#{memberConsumeTimesGoods,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -124,8 +124,8 @@
...
@@ -124,8 +124,8 @@
<if
test=
"memberConsumeTimesGoods != null"
>
<if
test=
"memberConsumeTimesGoods != null"
>
member_consume_times_goods = #{memberConsumeTimesGoods,jdbcType=INTEGER},
member_consume_times_goods = #{memberConsumeTimesGoods,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
member_consume_times_default = #{memberConsumeTimesDefault,jdbcType=INTEGER},
member_consume_times_default = #{memberConsumeTimesDefault,jdbcType=INTEGER},
member_consume_max_goods = #{memberConsumeMaxGoods,jdbcType=INTEGER},
member_consume_max_goods = #{memberConsumeMaxGoods,jdbcType=INTEGER},
member_consume_times_goods = #{memberConsumeTimesGoods,jdbcType=INTEGER},
member_consume_times_goods = #{memberConsumeTimesGoods,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where member_consume_config_id = #{memberConsumeConfigId,jdbcType=INTEGER}
where member_consume_config_id = #{memberConsumeConfigId,jdbcType=INTEGER}
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
<select
id=
"getByEnterpriseId"
resultMap=
"BaseResultMap"
>
<select
id=
"getByEnterpriseId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_data_member_consume_config
from tab_data_member_consume_config
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabDataPerformanceConfigMapper.xml
View file @
776c0582
...
@@ -6,12 +6,12 @@
...
@@ -6,12 +6,12 @@
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"order_number"
jdbcType=
"INTEGER"
property=
"orderNumber"
/>
<result
column=
"order_number"
jdbcType=
"INTEGER"
property=
"orderNumber"
/>
<result
column=
"order_people_number"
jdbcType=
"INTEGER"
property=
"orderPeopleNumber"
/>
<result
column=
"order_people_number"
jdbcType=
"INTEGER"
property=
"orderPeopleNumber"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
performance_config_id, enterprise_id, order_number, order_people_number,
status,
performance_config_id, enterprise_id, order_number, order_people_number,
delete_flag,
create_time, update_time
create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
...
@@ -23,10 +23,10 @@
...
@@ -23,10 +23,10 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabDataPerformanceConfig"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabDataPerformanceConfig"
>
insert into tab_data_performance_config (performance_config_id, enterprise_id,
insert into tab_data_performance_config (performance_config_id, enterprise_id,
order_number, order_people_number,
status,
order_number, order_people_number,
delete_flag,
create_time, update_time)
create_time, update_time)
values (#{performanceConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
values (#{performanceConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
#{orderNumber,jdbcType=INTEGER}, #{orderPeopleNumber,jdbcType=INTEGER}, #{
status,jdbcType=INTEGER},
#{orderNumber,jdbcType=INTEGER}, #{orderPeopleNumber,jdbcType=INTEGER}, #{
deleteFlag,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabDataPerformanceConfig"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabDataPerformanceConfig"
>
...
@@ -44,8 +44,8 @@
...
@@ -44,8 +44,8 @@
<if
test=
"orderPeopleNumber != null"
>
<if
test=
"orderPeopleNumber != null"
>
order_people_number,
order_people_number,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -67,8 +67,8 @@
...
@@ -67,8 +67,8 @@
<if
test=
"orderPeopleNumber != null"
>
<if
test=
"orderPeopleNumber != null"
>
#{orderPeopleNumber,jdbcType=INTEGER},
#{orderPeopleNumber,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -90,8 +90,8 @@
...
@@ -90,8 +90,8 @@
<if
test=
"orderPeopleNumber != null"
>
<if
test=
"orderPeopleNumber != null"
>
order_people_number = #{orderPeopleNumber,jdbcType=INTEGER},
order_people_number = #{orderPeopleNumber,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
order_number = #{orderNumber,jdbcType=INTEGER},
order_number = #{orderNumber,jdbcType=INTEGER},
order_people_number = #{orderPeopleNumber,jdbcType=INTEGER},
order_people_number = #{orderPeopleNumber,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where performance_config_id = #{performanceConfigId,jdbcType=INTEGER}
where performance_config_id = #{performanceConfigId,jdbcType=INTEGER}
...
@@ -117,6 +117,6 @@
...
@@ -117,6 +117,6 @@
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_data_performance_config
from tab_data_performance_config
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and
status = 1
and
delete_flag = 0
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabDataSingleEffectConfigMapper.xml
View file @
776c0582
...
@@ -10,13 +10,13 @@
...
@@ -10,13 +10,13 @@
<result
column=
"order_number"
jdbcType=
"INTEGER"
property=
"orderNumber"
/>
<result
column=
"order_number"
jdbcType=
"INTEGER"
property=
"orderNumber"
/>
<result
column=
"sale_number"
jdbcType=
"INTEGER"
property=
"saleNumber"
/>
<result
column=
"sale_number"
jdbcType=
"INTEGER"
property=
"saleNumber"
/>
<result
column=
"sale_number_target"
jdbcType=
"INTEGER"
property=
"saleNumberTarget"
/>
<result
column=
"sale_number_target"
jdbcType=
"INTEGER"
property=
"saleNumberTarget"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
single_effect_config_id, enterprise_id, order_grain, sale, tag, order_number, sale_number, sale_number_target,
single_effect_config_id, enterprise_id, order_grain, sale, tag, order_number, sale_number, sale_number_target,
status
, create_time, update_time
delete_flag
, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -28,11 +28,11 @@
...
@@ -28,11 +28,11 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabDataSingleEffectConfig"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabDataSingleEffectConfig"
>
insert into tab_data_single_effect_config (single_effect_config_id, enterprise_id, order_grain,
insert into tab_data_single_effect_config (single_effect_config_id, enterprise_id, order_grain,
sale, tag, order_number, sale_number,
sale, tag, order_number, sale_number,
sale_number_target,
status, create_time,
sale_number_target,
delete_flag, create_time,
update_time)
update_time)
values (#{singleEffectConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{orderGrain,jdbcType=INTEGER},
values (#{singleEffectConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{orderGrain,jdbcType=INTEGER},
#{sale,jdbcType=INTEGER}, #{tag,jdbcType=INTEGER}, #{orderNumber,jdbcType=INTEGER}, #{saleNumber,jdbcType=INTEGER},
#{sale,jdbcType=INTEGER}, #{tag,jdbcType=INTEGER}, #{orderNumber,jdbcType=INTEGER}, #{saleNumber,jdbcType=INTEGER},
#{saleNumberTarget,jdbcType=INTEGER}, #{
status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{saleNumberTarget,jdbcType=INTEGER}, #{
deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
#{updateTime,jdbcType=TIMESTAMP})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabDataSingleEffectConfig"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabDataSingleEffectConfig"
>
...
@@ -62,8 +62,8 @@
...
@@ -62,8 +62,8 @@
<if
test=
"saleNumberTarget != null"
>
<if
test=
"saleNumberTarget != null"
>
sale_number_target,
sale_number_target,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -97,8 +97,8 @@
...
@@ -97,8 +97,8 @@
<if
test=
"saleNumberTarget != null"
>
<if
test=
"saleNumberTarget != null"
>
#{saleNumberTarget,jdbcType=INTEGER},
#{saleNumberTarget,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -132,8 +132,8 @@
...
@@ -132,8 +132,8 @@
<if
test=
"saleNumberTarget != null"
>
<if
test=
"saleNumberTarget != null"
>
sale_number_target = #{saleNumberTarget,jdbcType=INTEGER},
sale_number_target = #{saleNumberTarget,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
order_number = #{orderNumber,jdbcType=INTEGER},
order_number = #{orderNumber,jdbcType=INTEGER},
sale_number = #{saleNumber,jdbcType=INTEGER},
sale_number = #{saleNumber,jdbcType=INTEGER},
sale_number_target = #{saleNumberTarget,jdbcType=INTEGER},
sale_number_target = #{saleNumberTarget,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where single_effect_config_id = #{singleEffectConfigId,jdbcType=INTEGER}
where single_effect_config_id = #{singleEffectConfigId,jdbcType=INTEGER}
...
@@ -163,15 +163,15 @@
...
@@ -163,15 +163,15 @@
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_data_single_effect_config
from tab_data_single_effect_config
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and
status = 1
and
delete_flag = 0
order by order_grain
order by order_grain
</select>
</select>
<update
id=
"deleteSingleEffectConfig"
>
<update
id=
"deleteSingleEffectConfig"
>
update tab_data_single_effect_config set
status = 0
update tab_data_single_effect_config set
delete_flag = 1
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and order_grain = #{orderGrain}
and order_grain = #{orderGrain}
and
status = 1
and
delete_flag = 0
</update>
</update>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabDataWechatMemberConfigMapper.xml
View file @
776c0582
...
@@ -8,13 +8,13 @@
...
@@ -8,13 +8,13 @@
<result
column=
"relate_service"
jdbcType=
"VARCHAR"
property=
"relateService"
/>
<result
column=
"relate_service"
jdbcType=
"VARCHAR"
property=
"relateService"
/>
<result
column=
"relate_wechat"
jdbcType=
"VARCHAR"
property=
"relateWechat"
/>
<result
column=
"relate_wechat"
jdbcType=
"VARCHAR"
property=
"relateWechat"
/>
<result
column=
"valid_save"
jdbcType=
"INTEGER"
property=
"validSave"
/>
<result
column=
"valid_save"
jdbcType=
"INTEGER"
property=
"validSave"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
wechat_member_config_id, enterprise_id, member_card_area, relate_service, relate_wechat, valid_save,
wechat_member_config_id, enterprise_id, member_card_area, relate_service, relate_wechat, valid_save,
status
, create_time, update_time
delete_flag
, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -26,11 +26,11 @@
...
@@ -26,11 +26,11 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabDataWechatMemberConfig"
useGeneratedKeys=
"true"
keyProperty=
"wechatMemberConfigId"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabDataWechatMemberConfig"
useGeneratedKeys=
"true"
keyProperty=
"wechatMemberConfigId"
>
insert into tab_data_wechat_member_config (wechat_member_config_id, enterprise_id,
insert into tab_data_wechat_member_config (wechat_member_config_id, enterprise_id,
member_card_area, relate_service, relate_wechat, valid_save,
member_card_area, relate_service, relate_wechat, valid_save,
status
, create_time, update_time
delete_flag
, create_time, update_time
)
)
values (#{wechatMemberConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
values (#{wechatMemberConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
#{memberCardArea,jdbcType=VARCHAR}, #{relateService,jdbcType=VARCHAR}, #{relateWechat,jdbcType=VARCHAR}, #{validSave,jdbcType=INTEGER},
#{memberCardArea,jdbcType=VARCHAR}, #{relateService,jdbcType=VARCHAR}, #{relateWechat,jdbcType=VARCHAR}, #{validSave,jdbcType=INTEGER},
#{
status
,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
#{
deleteFlag
,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabDataWechatMemberConfig"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabDataWechatMemberConfig"
>
...
@@ -54,8 +54,8 @@
...
@@ -54,8 +54,8 @@
<if
test=
"validSave != null"
>
<if
test=
"validSave != null"
>
valid_save,
valid_save,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -83,8 +83,8 @@
...
@@ -83,8 +83,8 @@
<if
test=
"validSave != null"
>
<if
test=
"validSave != null"
>
#{valid_save,jdbcType=INTEGER},
#{valid_save,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -112,8 +112,8 @@
...
@@ -112,8 +112,8 @@
<if
test=
"validSave != null"
>
<if
test=
"validSave != null"
>
valid_save = #{validSave,jdbcType=INTEGER},
valid_save = #{validSave,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
relate_service = #{relateService,jdbcType=VARCHAR},
relate_service = #{relateService,jdbcType=VARCHAR},
relate_wechat = #{relateWechat,jdbcType=VARCHAR},
relate_wechat = #{relateWechat,jdbcType=VARCHAR},
valid_save = #{validSave,jdbcType=INTEGER},
valid_save = #{validSave,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where wechat_member_config_id = #{wechatMemberConfigId,jdbcType=INTEGER}
where wechat_member_config_id = #{wechatMemberConfigId,jdbcType=INTEGER}
...
@@ -142,14 +142,14 @@
...
@@ -142,14 +142,14 @@
from tab_data_wechat_member_config
from tab_data_wechat_member_config
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and member_card_area = #{memberCardId}
and member_card_area = #{memberCardId}
and
status = 1
and
delete_flag = 0
</select>
</select>
<select
id=
"listByEnterpriseId"
resultMap=
"BaseResultMap"
>
<select
id=
"listByEnterpriseId"
resultMap=
"BaseResultMap"
>
SELECT
<include
refid=
"Base_Column_List"
></include>
SELECT
<include
refid=
"Base_Column_List"
></include>
from tab_data_wechat_member_config
from tab_data_wechat_member_config
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and
status = 1
and
delete_flag = 0
order by create_time desc
order by create_time desc
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabEnterpriseResourceRelMapper.xml
View file @
776c0582
...
@@ -6,13 +6,13 @@
...
@@ -6,13 +6,13 @@
<result
column=
"resource_code"
jdbcType=
"VARCHAR"
property=
"resourceCode"
/>
<result
column=
"resource_code"
jdbcType=
"VARCHAR"
property=
"resourceCode"
/>
<result
column=
"resource_name"
jdbcType=
"VARCHAR"
property=
"resourceName"
/>
<result
column=
"resource_name"
jdbcType=
"VARCHAR"
property=
"resourceName"
/>
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"resource_switch"
jdbcType=
"INTEGER"
property=
"resourceSwitch"
/>
<result
column=
"resource_switch"
jdbcType=
"INTEGER"
property=
"resourceSwitch"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
enterprise_resource_id, resource_code, resource_name, enterprise_id,
status, create_time,
enterprise_resource_id, resource_code, resource_name, enterprise_id,
delete_flag, create_time,
update_time, resource_switch
update_time, resource_switch
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
...
@@ -24,11 +24,11 @@
...
@@ -24,11 +24,11 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabEnterpriseResourceRel"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabEnterpriseResourceRel"
>
insert into tab_enterprise_resource_rel (enterprise_resource_id, resource_code,
insert into tab_enterprise_resource_rel (enterprise_resource_id, resource_code,
resource_name, enterprise_id,
status,
resource_name, enterprise_id,
delete_flag,
create_time, update_time, resource_switch
create_time, update_time, resource_switch
)
)
values (#{enterpriseResourceId,jdbcType=INTEGER}, #{resourceCode,jdbcType=VARCHAR},
values (#{enterpriseResourceId,jdbcType=INTEGER}, #{resourceCode,jdbcType=VARCHAR},
#{resourceName,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER}, #{
status,jdbcType=INTEGER},
#{resourceName,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER}, #{
deleteFlag,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{resourceSwitch,jdbcType=INTEGER}
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{resourceSwitch,jdbcType=INTEGER}
)
)
</insert>
</insert>
...
@@ -47,8 +47,8 @@
...
@@ -47,8 +47,8 @@
<if
test=
"enterpriseId != null"
>
<if
test=
"enterpriseId != null"
>
enterprise_id,
enterprise_id,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -73,8 +73,8 @@
...
@@ -73,8 +73,8 @@
<if
test=
"enterpriseId != null"
>
<if
test=
"enterpriseId != null"
>
#{enterpriseId,jdbcType=INTEGER},
#{enterpriseId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -99,8 +99,8 @@
...
@@ -99,8 +99,8 @@
<if
test=
"enterpriseId != null"
>
<if
test=
"enterpriseId != null"
>
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
set resource_code = #{resourceCode,jdbcType=VARCHAR},
set resource_code = #{resourceCode,jdbcType=VARCHAR},
resource_name = #{resourceName,jdbcType=VARCHAR},
resource_name = #{resourceName,jdbcType=VARCHAR},
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
resource_switch = #{resourceSwitch,jdbcType=INTEGER}
resource_switch = #{resourceSwitch,jdbcType=INTEGER}
...
@@ -127,8 +127,8 @@
...
@@ -127,8 +127,8 @@
</update>
</update>
<update
id=
"deleteResource"
>
<update
id=
"deleteResource"
>
update tab_enterprise_resource_rel set
status = 0
update tab_enterprise_resource_rel set
delete_flag = 1
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and resource_code = #{resourceCode}
and resource_code = #{resourceCode}
</update>
</update>
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
select
<include
refid=
"Base_Column_List"
></include>
select
<include
refid=
"Base_Column_List"
></include>
from tab_enterprise_resource_rel
from tab_enterprise_resource_rel
where
status = 1
where
delete_flag = 0
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabEnterpriseWhiteListMapper.xml
View file @
776c0582
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"enterprise_name"
jdbcType=
"VARCHAR"
property=
"enterpriseName"
/>
<result
column=
"enterprise_name"
jdbcType=
"VARCHAR"
property=
"enterpriseName"
/>
<result
column=
"company_name"
jdbcType=
"VARCHAR"
property=
"companyName"
/>
<result
column=
"company_name"
jdbcType=
"VARCHAR"
property=
"companyName"
/>
<result
column=
"
status"
jdbcType=
"INTEGER"
property=
"status
"
/>
<result
column=
"
delete_flag"
jdbcType=
"INTEGER"
property=
"deleteFlag
"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
...
@@ -23,10 +23,10 @@
...
@@ -23,10 +23,10 @@
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabEnterpriseWhiteList"
>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabEnterpriseWhiteList"
>
insert into tab_enterprise_white_list (white_list_id, enterprise_id, enterprise_name,
insert into tab_enterprise_white_list (white_list_id, enterprise_id, enterprise_name,
company_name,
status, create_time,
company_name,
delete_flag, create_time,
update_time)
update_time)
values (#{whiteListId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{enterpriseName,jdbcType=VARCHAR},
values (#{whiteListId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{enterpriseName,jdbcType=VARCHAR},
#{companyName,jdbcType=VARCHAR}, #{
status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{companyName,jdbcType=VARCHAR}, #{
deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
#{updateTime,jdbcType=TIMESTAMP})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabEnterpriseWhiteList"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabEnterpriseWhiteList"
>
...
@@ -44,8 +44,8 @@
...
@@ -44,8 +44,8 @@
<if
test=
"companyName != null"
>
<if
test=
"companyName != null"
>
company_name,
company_name,
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status
,
delete_flag
,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
...
@@ -67,8 +67,8 @@
...
@@ -67,8 +67,8 @@
<if
test=
"companyName != null"
>
<if
test=
"companyName != null"
>
#{companyName,jdbcType=VARCHAR},
#{companyName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
#{
status
,jdbcType=INTEGER},
#{
deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
...
@@ -90,8 +90,8 @@
...
@@ -90,8 +90,8 @@
<if
test=
"companyName != null"
>
<if
test=
"companyName != null"
>
company_name = #{companyName,jdbcType=VARCHAR},
company_name = #{companyName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
status
!= null"
>
<if
test=
"
deleteFlag
!= null"
>
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
enterprise_name = #{enterpriseName,jdbcType=VARCHAR},
enterprise_name = #{enterpriseName,jdbcType=VARCHAR},
company_name = #{companyName,jdbcType=VARCHAR},
company_name = #{companyName,jdbcType=VARCHAR},
status = #{status
,jdbcType=INTEGER},
delete_flag = #{deleteFlag
,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where white_list_id = #{whiteListId,jdbcType=INTEGER}
where white_list_id = #{whiteListId,jdbcType=INTEGER}
...
@@ -117,13 +117,13 @@
...
@@ -117,13 +117,13 @@
SELECT
<include
refid=
"Base_Column_List"
></include>
SELECT
<include
refid=
"Base_Column_List"
></include>
from tab_enterprise_white_list
from tab_enterprise_white_list
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and
status = 1
and
delete_flag = 0
</select>
</select>
<select
id=
"listEnterpriseWhiteList"
resultMap=
"BaseResultMap"
>
<select
id=
"listEnterpriseWhiteList"
resultMap=
"BaseResultMap"
>
SELECT
<include
refid=
"Base_Column_List"
></include>
SELECT
<include
refid=
"Base_Column_List"
></include>
from tab_enterprise_white_list
from tab_enterprise_white_list
where
status = 1
where
delete_flag = 0
<if
test=
"search != null and search != ''"
>
<if
test=
"search != null and search != ''"
>
and (enterprise_name like concat('%', #{search}, '%') or company_name like concat('%', #{search}, '%'))
and (enterprise_name like concat('%', #{search}, '%') or company_name like concat('%', #{search}, '%'))
</if>
</if>
...
...
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