Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
57378487
Commit
57378487
authored
Jan 24, 2019
by
gary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、其他信息补充日志
// todo 1、机构国际化修改
parent
95d03507
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
115 additions
and
34 deletions
+115
-34
OperationModule.java
...rc/main/java/pwc/taxtech/atms/common/OperationModule.java
+7
-1
LogMessage.java
...main/java/pwc/taxtech/atms/common/message/LogMessage.java
+26
-0
OrganizationExtraController.java
.../taxtech/atms/controller/OrganizationExtraController.java
+27
-27
OrganizationExtraServiceImpl.java
...xtech/atms/service/impl/OrganizationExtraServiceImpl.java
+53
-6
OrganizationReturnRateMapper.java
...va/pwc/taxtech/atms/dao/OrganizationReturnRateMapper.java
+2
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/OperationModule.java
View file @
57378487
...
...
@@ -43,7 +43,13 @@ public enum OperationModule {
Workflow
(
32
),
Stock
(
33
),
/** 股权变更 */
ChangeEquity
(
34
);
ChangeEquity
(
34
),
OrganizationInvoice
(
35
),
OrganizationAccountingRate
(
36
),
OrganizationReturnRate
(
37
),
OrganizationApprovedLevyInfo
(
38
),
OrganizationTaxOfficer
(
39
),
OrganizationTaxRule
(
40
);
private
int
value
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/common/message/LogMessage.java
View file @
57378487
...
...
@@ -16,6 +16,32 @@ public class LogMessage {
public
static
final
String
AddOrganization
=
"AddOrganization"
;
public
static
final
String
UpdateOrganization
=
"UpdateOrganization"
;
public
static
final
String
AddOrganizationInvoice
=
"AddOrganizationInvoice"
;
public
static
final
String
UpdateOrganizationInvoice
=
"UpdateOrganizationInvoice"
;
public
static
final
String
DeleteOrganizationInvoice
=
"DeleteOrganizationInvoice"
;
public
static
final
String
AddOrganizationAccountingRate
=
"AddOrganizationAccountingRate"
;
public
static
final
String
UpdateOrganizationAccountingRate
=
"UpdateOrganizationAccountingRate"
;
public
static
final
String
DeleteOrganizationAccountingRate
=
"DeleteOrganizationAccountingRate"
;
public
static
final
String
AddOrganizationReturnRate
=
"AddOrganizationReturnRate"
;
public
static
final
String
UpdateOrganizationReturnRate
=
"UpdateOrganizationReturnRate"
;
public
static
final
String
DeleteOrganizationReturnRate
=
"DeleteOrganizationReturnRate"
;
public
static
final
String
AddOrganizationApprovedLevyInfo
=
"AddOrganizationApprovedLevyInfo"
;
public
static
final
String
UpdateOrganizationApprovedLevyInfo
=
"UpdateOrganizationApprovedLevyInfo"
;
public
static
final
String
DeleteOrganizationApprovedLevyInfo
=
"DeleteOrganizationApprovedLevyInfo"
;
public
static
final
String
AddOrganizationTaxOfficer
=
"AddOrganizationTaxOfficer"
;
public
static
final
String
UpdateOrganizationTaxOfficer
=
"UpdateOrganizationTaxOfficer"
;
public
static
final
String
DeleteOrganizationTaxOfficer
=
"DeleteOrganizationTaxOfficer"
;
public
static
final
String
AddOrganizationTaxRule
=
"AddOrganizationTaxRule"
;
public
static
final
String
UpdateOrganizationTaxRule
=
"UpdateOrganizationTaxRule"
;
public
static
final
String
DeleteOrganizationTaxRule
=
"DeleteOrganizationTaxRule"
;
public
static
final
String
AddProject
=
"AddProject"
;
public
static
final
String
AddProjectServiceType
=
"AddProjectServiceType"
;
public
static
final
String
ProjectServiceType
=
"ProjectServiceType"
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/OrgExtraController.java
→
atms-api/src/main/java/pwc/taxtech/atms/controller/Org
anization
ExtraController.java
View file @
57378487
...
...
@@ -5,41 +5,41 @@ import org.springframework.http.MediaType;
import
org.springframework.web.bind.annotation.*
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.organization.*
;
import
pwc.taxtech.atms.service.impl.OrgExtraServiceImpl
;
import
pwc.taxtech.atms.service.impl.Org
anization
ExtraServiceImpl
;
import
java.util.List
;
@RestController
@RequestMapping
(
"/api/v1/orgExtra"
)
public
class
OrgExtraController
{
public
class
Org
anization
ExtraController
{
@Autowired
private
Org
ExtraServiceImpl
org
ExtraServiceImpl
;
private
Org
anizationExtraServiceImpl
organization
ExtraServiceImpl
;
// 机构其他信息-发票信息
@RequestMapping
(
value
=
"invoice/getListByOrgId"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
OrganizationInvoiceDto
>
getInvoiceListByOrgId
(
@RequestParam
(
"orgId"
)
String
orgId
)
{
return
orgExtraServiceImpl
.
getInvoiceListByOrgId
(
orgId
);
return
org
anization
ExtraServiceImpl
.
getInvoiceListByOrgId
(
orgId
);
}
@RequestMapping
(
value
=
"invoice/insert"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
@ResponseBody
OperationResultDto
<
Object
>
insertInvoice
(
@RequestBody
List
<
OrganizationInvoiceDto
>
organizationInvoiceDtos
)
{
return
orgExtraServiceImpl
.
insertAllInvoice
(
organizationInvoiceDtos
);
return
org
anization
ExtraServiceImpl
.
insertAllInvoice
(
organizationInvoiceDtos
);
}
@RequestMapping
(
value
=
"invoice/update"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
OperationResultDto
<
Object
>
updateInvoice
(
@RequestBody
OrganizationInvoiceDto
organizationInvoiceDto
)
{
return
orgExtraServiceImpl
.
updateInvoice
(
organizationInvoiceDto
);
return
org
anization
ExtraServiceImpl
.
updateInvoice
(
organizationInvoiceDto
);
}
@RequestMapping
(
value
=
"invoice/delete"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
OperationResultDto
<
Object
>
deleteInvoice
(
@RequestParam
Long
id
)
{
return
orgExtraServiceImpl
.
deleteInvoice
(
id
);
return
org
anization
ExtraServiceImpl
.
deleteInvoice
(
id
);
}
// 机构其他信息-税种信息
...
...
@@ -47,25 +47,25 @@ public class OrgExtraController {
@RequestMapping
(
value
=
"taxRule/getListByOrgId"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
OrganizationTaxRuleDto
>
getTaxRuleListByOrgId
(
@RequestParam
(
"orgId"
)
String
orgId
)
{
return
orgExtraServiceImpl
.
getTaxRuleListByOrgId
(
orgId
);
return
org
anization
ExtraServiceImpl
.
getTaxRuleListByOrgId
(
orgId
);
}
@RequestMapping
(
value
=
"taxRule/insert"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
@ResponseBody
OperationResultDto
<
Object
>
insertTaxRule
(
@RequestBody
List
<
OrganizationTaxRuleDto
>
organizationTaxRuleDtos
)
{
return
orgExtraServiceImpl
.
insertAllTaxRule
(
organizationTaxRuleDtos
);
return
org
anization
ExtraServiceImpl
.
insertAllTaxRule
(
organizationTaxRuleDtos
);
}
@RequestMapping
(
value
=
"taxRule/update"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
OperationResultDto
<
Object
>
updateTaxRule
(
@RequestBody
OrganizationTaxRuleDto
organizationTaxRuleDto
)
{
return
orgExtraServiceImpl
.
updateTaxRule
(
organizationTaxRuleDto
);
return
org
anization
ExtraServiceImpl
.
updateTaxRule
(
organizationTaxRuleDto
);
}
@RequestMapping
(
value
=
"taxRule/delete"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
OperationResultDto
<
Object
>
deleteTaxRule
(
@RequestParam
Long
id
)
{
return
orgExtraServiceImpl
.
deleteTaxRule
(
id
);
return
org
anization
ExtraServiceImpl
.
deleteTaxRule
(
id
);
}
// 机构其他信息-入账汇率信息
...
...
@@ -73,25 +73,25 @@ public class OrgExtraController {
@RequestMapping
(
value
=
"accountingRate/getListByOrgId"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
OrganizationAccountingRateDto
>
getAccountingRateListByOrgId
(
@RequestParam
(
"orgId"
)
String
orgId
)
{
return
orgExtraServiceImpl
.
getAccountingRateListByOrgId
(
orgId
);
return
org
anization
ExtraServiceImpl
.
getAccountingRateListByOrgId
(
orgId
);
}
@RequestMapping
(
value
=
"accountingRate/insert"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
@ResponseBody
OperationResultDto
<
Object
>
insertAccountingRate
(
@RequestBody
List
<
OrganizationAccountingRateDto
>
organizationAccountingRateDtos
)
{
return
orgExtraServiceImpl
.
insertAllAccountingRate
(
organizationAccountingRateDtos
);
return
org
anization
ExtraServiceImpl
.
insertAllAccountingRate
(
organizationAccountingRateDtos
);
}
@RequestMapping
(
value
=
"accountingRate/update"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
OperationResultDto
<
Object
>
updateAccountingRate
(
@RequestBody
OrganizationAccountingRateDto
organizationAccountingRateDto
)
{
return
orgExtraServiceImpl
.
updateAccountingRate
(
organizationAccountingRateDto
);
return
org
anization
ExtraServiceImpl
.
updateAccountingRate
(
organizationAccountingRateDto
);
}
@RequestMapping
(
value
=
"accountingRate/delete"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
OperationResultDto
<
Object
>
deleteAccountingRate
(
@RequestParam
Long
id
)
{
return
orgExtraServiceImpl
.
deleteAccountingRate
(
id
);
return
org
anization
ExtraServiceImpl
.
deleteAccountingRate
(
id
);
}
// 机构其他信息-返还率信息
...
...
@@ -99,25 +99,25 @@ public class OrgExtraController {
@RequestMapping
(
value
=
"returnRate/getListByOrgId"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
OrganizationReturnRateDto
>
getReturnRateListByOrgId
(
@RequestParam
(
"orgId"
)
String
orgId
)
{
return
orgExtraServiceImpl
.
getReturnRateListByOrgId
(
orgId
);
return
org
anization
ExtraServiceImpl
.
getReturnRateListByOrgId
(
orgId
);
}
@RequestMapping
(
value
=
"returnRate/insert"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
@ResponseBody
OperationResultDto
<
Object
>
insertReturnRate
(
@RequestBody
List
<
OrganizationReturnRateDto
>
organizationReturnRateDtos
)
{
return
orgExtraServiceImpl
.
insertAllReturnRate
(
organizationReturnRateDtos
);
return
org
anization
ExtraServiceImpl
.
insertAllReturnRate
(
organizationReturnRateDtos
);
}
@RequestMapping
(
value
=
"returnRate/update"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
OperationResultDto
<
Object
>
updateReturnRate
(
@RequestBody
OrganizationReturnRateDto
organizationReturnRateDto
)
{
return
orgExtraServiceImpl
.
updateReturnRate
(
organizationReturnRateDto
);
return
org
anization
ExtraServiceImpl
.
updateReturnRate
(
organizationReturnRateDto
);
}
@RequestMapping
(
value
=
"returnRate/delete"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
OperationResultDto
<
Object
>
deleteReturnRate
(
@RequestParam
Long
id
)
{
return
orgExtraServiceImpl
.
deleteReturnRate
(
id
);
return
org
anization
ExtraServiceImpl
.
deleteReturnRate
(
id
);
}
// 机构其他信息-核定征收信息
...
...
@@ -125,25 +125,25 @@ public class OrgExtraController {
@RequestMapping
(
value
=
"approvedLevyInfo/getListByOrgId"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
OrganizationApprovedLevyInfoDto
>
getApprovedLevyInfoListByOrgId
(
@RequestParam
(
"orgId"
)
String
orgId
)
{
return
orgExtraServiceImpl
.
getApprovedLevyInfoListByOrgId
(
orgId
);
return
org
anization
ExtraServiceImpl
.
getApprovedLevyInfoListByOrgId
(
orgId
);
}
@RequestMapping
(
value
=
"approvedLevyInfo/insert"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
@ResponseBody
OperationResultDto
<
Object
>
insertApprovedLevyInfo
(
@RequestBody
List
<
OrganizationApprovedLevyInfoDto
>
organizationApprovedLevyInfoDtos
)
{
return
orgExtraServiceImpl
.
insertAllApprovedLevyInfo
(
organizationApprovedLevyInfoDtos
);
return
org
anization
ExtraServiceImpl
.
insertAllApprovedLevyInfo
(
organizationApprovedLevyInfoDtos
);
}
@RequestMapping
(
value
=
"approvedLevyInfo/update"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
OperationResultDto
<
Object
>
updateApprovedLevyInfo
(
@RequestBody
OrganizationApprovedLevyInfoDto
organizationApprovedLevyInfoDto
)
{
return
orgExtraServiceImpl
.
updateApprovedLevyInfo
(
organizationApprovedLevyInfoDto
);
return
org
anization
ExtraServiceImpl
.
updateApprovedLevyInfo
(
organizationApprovedLevyInfoDto
);
}
@RequestMapping
(
value
=
"approvedLevyInfo/delete"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
OperationResultDto
<
Object
>
deleteApprovedLevyInfo
(
@RequestParam
Long
id
)
{
return
orgExtraServiceImpl
.
deleteApprovedLevyInfo
(
id
);
return
org
anization
ExtraServiceImpl
.
deleteApprovedLevyInfo
(
id
);
}
// 机构其他信息-专管员列表
...
...
@@ -151,25 +151,25 @@ public class OrgExtraController {
@RequestMapping
(
value
=
"taxOfficer/getListByOrgId"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
OrganizationTaxOfficerDto
>
getTaxOfficerListByOrgId
(
@RequestParam
(
"orgId"
)
String
orgId
)
{
return
orgExtraServiceImpl
.
getTaxOfficerListByOrgId
(
orgId
);
return
org
anization
ExtraServiceImpl
.
getTaxOfficerListByOrgId
(
orgId
);
}
@RequestMapping
(
value
=
"taxOfficer/insert"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
@ResponseBody
OperationResultDto
<
Object
>
insertTaxOfficer
(
@RequestBody
List
<
OrganizationTaxOfficerDto
>
organizationTaxOfficerDtos
)
{
return
orgExtraServiceImpl
.
insertAllTaxOfficer
(
organizationTaxOfficerDtos
);
return
org
anization
ExtraServiceImpl
.
insertAllTaxOfficer
(
organizationTaxOfficerDtos
);
}
@RequestMapping
(
value
=
"taxOfficer/update"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
OperationResultDto
<
Object
>
updateTaxOfficer
(
@RequestBody
OrganizationTaxOfficerDto
organizationTaxOfficerDto
)
{
return
orgExtraServiceImpl
.
updateTaxOfficer
(
organizationTaxOfficerDto
);
return
org
anization
ExtraServiceImpl
.
updateTaxOfficer
(
organizationTaxOfficerDto
);
}
@RequestMapping
(
value
=
"taxOfficer/delete"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
OperationResultDto
<
Object
>
deleteTaxOfficer
(
@RequestParam
Long
id
)
{
return
orgExtraServiceImpl
.
deleteTaxOfficer
(
id
);
return
org
anization
ExtraServiceImpl
.
deleteTaxOfficer
(
id
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OrgExtraServiceImpl.java
→
atms-api/src/main/java/pwc/taxtech/atms/service/impl/Org
anization
ExtraServiceImpl.java
View file @
57378487
...
...
@@ -2,33 +2,38 @@ package pwc.taxtech.atms.service.impl;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
pwc.taxtech.atms.common.OperateLogType
;
import
pwc.taxtech.atms.common.OperationAction
;
import
pwc.taxtech.atms.common.OperationModule
;
import
pwc.taxtech.atms.common.message.LogMessage
;
import
pwc.taxtech.atms.dao.*
;
import
pwc.taxtech.atms.dto.OperationLogDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.organization.*
;
import
pwc.taxtech.atms.entity.*
;
import
java.util.ArrayList
;
import
java.util.List
;
@Service
public
class
OrgExtraServiceImpl
extends
BaseService
{
public
class
Org
anization
ExtraServiceImpl
extends
BaseService
{
@Autowired
private
OperationLogServiceImpl
operationLogServiceImpl
;
@Autowired
private
OrganizationInvoiceMapper
organizationInvoiceMapper
;
@Autowired
private
OrganizationAccountingRateMapper
organizationAccountingRateMapper
;
@Autowired
private
OrganizationReturnRateMapper
organizationReturnRateMapper
;
@Autowired
private
OrganizationApprovedLevyInfoMapper
organizationApprovedLevyInfoMapper
;
@Autowired
private
OrganizationTaxOfficerMapper
organizationTaxOfficerMapper
;
@Autowired
private
OrganizationTaxRuleMapper
organizationTaxRuleMapper
;
public
List
<
OrganizationInvoiceDto
>
getInvoiceListByOrgId
(
String
orgId
)
{
List
<
OrganizationInvoiceDto
>
res
=
new
ArrayList
<>();
OrganizationInvoiceExample
example
=
new
OrganizationInvoiceExample
();
...
...
@@ -43,12 +48,15 @@ public class OrgExtraServiceImpl extends BaseService{
}
public
OperationResultDto
<
Object
>
insertAllInvoice
(
List
<
OrganizationInvoiceDto
>
organizationInvoiceDtos
)
{
List
<
String
>
taxGroupList
=
new
ArrayList
<>();
organizationInvoiceDtos
.
forEach
(
oid
->{
OrganizationInvoice
organizationInvoice
=
new
OrganizationInvoice
();
beanUtil
.
copyProperties
(
oid
,
organizationInvoice
);
organizationInvoice
.
setId
(
idService
.
nextId
());
organizationInvoiceMapper
.
insertSelective
(
organizationInvoice
);
taxGroupList
.
add
(
oid
.
getInvoiceTypeName
());
});
AddOrgExtraLog
(
OperationAction
.
New
.
value
(),
LogMessage
.
AddOrganizationInvoice
,
organizationInvoiceDtos
.
get
(
0
).
getOrganizationId
(),
OperationModule
.
OrganizationInvoice
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -58,6 +66,7 @@ public class OrgExtraServiceImpl extends BaseService{
OrganizationInvoice
organizationInvoice
=
new
OrganizationInvoice
();
beanUtil
.
copyProperties
(
organizationInvoiceDto
,
organizationInvoice
);
organizationInvoiceMapper
.
updateByExampleSelective
(
organizationInvoice
,
example
);
AddOrgExtraLog
(
OperationAction
.
Update
.
value
(),
LogMessage
.
UpdateOrganizationInvoice
,
organizationInvoiceDto
.
getOrganizationId
(),
OperationModule
.
OrganizationInvoice
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -65,6 +74,7 @@ public class OrgExtraServiceImpl extends BaseService{
OrganizationInvoiceExample
example
=
new
OrganizationInvoiceExample
();
example
.
createCriteria
().
andIdEqualTo
(
id
);
organizationInvoiceMapper
.
deleteByExample
(
example
);
AddOrgExtraLog
(
OperationAction
.
Delete
.
value
(),
LogMessage
.
DeleteOrganizationInvoice
,
String
.
valueOf
(
id
),
OperationModule
.
OrganizationInvoice
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -89,6 +99,7 @@ public class OrgExtraServiceImpl extends BaseService{
organizationAccountingRate
.
setId
(
idService
.
nextId
());
organizationAccountingRateMapper
.
insertSelective
(
organizationAccountingRate
);
});
AddOrgExtraLog
(
OperationAction
.
New
.
value
(),
LogMessage
.
AddOrganizationAccountingRate
,
organizationAccountingRateDtos
.
get
(
0
).
getOrganizationId
(),
OperationModule
.
OrganizationAccountingRate
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -98,6 +109,7 @@ public class OrgExtraServiceImpl extends BaseService{
OrganizationAccountingRate
organizationAccountingRate
=
new
OrganizationAccountingRate
();
beanUtil
.
copyProperties
(
organizationAccountingRateDto
,
organizationAccountingRate
);
organizationAccountingRateMapper
.
updateByExampleSelective
(
organizationAccountingRate
,
example
);
AddOrgExtraLog
(
OperationAction
.
Update
.
value
(),
LogMessage
.
UpdateOrganizationAccountingRate
,
organizationAccountingRateDto
.
getOrganizationId
(),
OperationModule
.
OrganizationAccountingRate
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -105,6 +117,7 @@ public class OrgExtraServiceImpl extends BaseService{
OrganizationAccountingRateExample
example
=
new
OrganizationAccountingRateExample
();
example
.
createCriteria
().
andIdEqualTo
(
id
);
organizationAccountingRateMapper
.
deleteByExample
(
example
);
AddOrgExtraLog
(
OperationAction
.
Delete
.
value
(),
LogMessage
.
DeleteOrganizationAccountingRate
,
String
.
valueOf
(
id
),
OperationModule
.
OrganizationAccountingRate
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -129,6 +142,7 @@ public class OrgExtraServiceImpl extends BaseService{
organizationReturnRate
.
setId
(
idService
.
nextId
());
organizationReturnRateMapper
.
insertSelective
(
organizationReturnRate
);
});
AddOrgExtraLog
(
OperationAction
.
New
.
value
(),
LogMessage
.
AddOrganizationReturnRate
,
organizationReturnRateDtos
.
get
(
0
).
getOrganizationId
(),
OperationModule
.
OrganizationReturnRate
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -138,6 +152,7 @@ public class OrgExtraServiceImpl extends BaseService{
OrganizationReturnRate
organizationReturnRate
=
new
OrganizationReturnRate
();
beanUtil
.
copyProperties
(
organizationReturnRateDto
,
organizationReturnRate
);
organizationReturnRateMapper
.
updateByExampleSelective
(
organizationReturnRate
,
example
);
AddOrgExtraLog
(
OperationAction
.
Update
.
value
(),
LogMessage
.
UpdateOrganizationReturnRate
,
organizationReturnRateDto
.
getOrganizationId
(),
OperationModule
.
OrganizationReturnRate
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -145,6 +160,7 @@ public class OrgExtraServiceImpl extends BaseService{
OrganizationReturnRateExample
example
=
new
OrganizationReturnRateExample
();
example
.
createCriteria
().
andIdEqualTo
(
id
);
organizationReturnRateMapper
.
deleteByExample
(
example
);
AddOrgExtraLog
(
OperationAction
.
Delete
.
value
(),
LogMessage
.
DeleteOrganizationReturnRate
,
String
.
valueOf
(
id
),
OperationModule
.
OrganizationReturnRate
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -169,6 +185,7 @@ public class OrgExtraServiceImpl extends BaseService{
organizationApprovedLevyInfo
.
setId
(
idService
.
nextId
());
organizationApprovedLevyInfoMapper
.
insertSelective
(
organizationApprovedLevyInfo
);
});
AddOrgExtraLog
(
OperationAction
.
New
.
value
(),
LogMessage
.
AddOrganizationApprovedLevyInfo
,
organizationApprovedLevyInfoDtos
.
get
(
0
).
getOrganizationId
(),
OperationModule
.
OrganizationApprovedLevyInfo
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -178,6 +195,7 @@ public class OrgExtraServiceImpl extends BaseService{
OrganizationApprovedLevyInfo
organizationApprovedLevyInfo
=
new
OrganizationApprovedLevyInfo
();
beanUtil
.
copyProperties
(
organizationApprovedLevyInfoDto
,
organizationApprovedLevyInfo
);
organizationApprovedLevyInfoMapper
.
updateByExampleSelective
(
organizationApprovedLevyInfo
,
example
);
AddOrgExtraLog
(
OperationAction
.
Update
.
value
(),
LogMessage
.
UpdateOrganizationApprovedLevyInfo
,
organizationApprovedLevyInfoDto
.
getOrganizationId
(),
OperationModule
.
OrganizationApprovedLevyInfo
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -185,6 +203,7 @@ public class OrgExtraServiceImpl extends BaseService{
OrganizationApprovedLevyInfoExample
example
=
new
OrganizationApprovedLevyInfoExample
();
example
.
createCriteria
().
andIdEqualTo
(
id
);
organizationApprovedLevyInfoMapper
.
deleteByExample
(
example
);
AddOrgExtraLog
(
OperationAction
.
Delete
.
value
(),
LogMessage
.
DeleteOrganizationApprovedLevyInfo
,
String
.
valueOf
(
id
),
OperationModule
.
OrganizationApprovedLevyInfo
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -209,6 +228,7 @@ public class OrgExtraServiceImpl extends BaseService{
organizationTaxOfficer
.
setId
(
idService
.
nextId
());
organizationTaxOfficerMapper
.
insertSelective
(
organizationTaxOfficer
);
});
AddOrgExtraLog
(
OperationAction
.
New
.
value
(),
LogMessage
.
AddOrganizationTaxOfficer
,
organizationTaxOfficerDtos
.
get
(
0
).
getOrganizationId
(),
OperationModule
.
OrganizationTaxOfficer
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -218,6 +238,7 @@ public class OrgExtraServiceImpl extends BaseService{
OrganizationTaxOfficer
organizationTaxOfficer
=
new
OrganizationTaxOfficer
();
beanUtil
.
copyProperties
(
organizationTaxOfficerDto
,
organizationTaxOfficer
);
organizationTaxOfficerMapper
.
updateByExampleSelective
(
organizationTaxOfficer
,
example
);
AddOrgExtraLog
(
OperationAction
.
Update
.
value
(),
LogMessage
.
UpdateOrganizationTaxOfficer
,
organizationTaxOfficerDto
.
getOrganizationId
(),
OperationModule
.
OrganizationTaxOfficer
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -225,6 +246,7 @@ public class OrgExtraServiceImpl extends BaseService{
OrganizationTaxOfficerExample
example
=
new
OrganizationTaxOfficerExample
();
example
.
createCriteria
().
andIdEqualTo
(
id
);
organizationTaxOfficerMapper
.
deleteByExample
(
example
);
AddOrgExtraLog
(
OperationAction
.
Delete
.
value
(),
LogMessage
.
DeleteOrganizationTaxOfficer
,
String
.
valueOf
(
id
),
OperationModule
.
OrganizationTaxOfficer
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -249,6 +271,7 @@ public class OrgExtraServiceImpl extends BaseService{
organizationTaxRule
.
setId
(
idService
.
nextId
());
organizationTaxRuleMapper
.
insertSelective
(
organizationTaxRule
);
});
AddOrgExtraLog
(
OperationAction
.
New
.
value
(),
LogMessage
.
AddOrganizationTaxRule
,
organizationTaxRuleDtos
.
get
(
0
).
getOrganizationId
(),
OperationModule
.
OrganizationTaxRule
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -258,6 +281,7 @@ public class OrgExtraServiceImpl extends BaseService{
OrganizationTaxRule
organizationTaxRule
=
new
OrganizationTaxRule
();
beanUtil
.
copyProperties
(
organizationTaxRuleDto
,
organizationTaxRule
);
organizationTaxRuleMapper
.
updateByExampleSelective
(
organizationTaxRule
,
example
);
AddOrgExtraLog
(
OperationAction
.
Update
.
value
(),
LogMessage
.
UpdateOrganizationTaxRule
,
organizationTaxRuleDto
.
getOrganizationId
(),
OperationModule
.
OrganizationTaxRule
.
value
());
return
new
OperationResultDto
(
true
);
}
...
...
@@ -265,6 +289,29 @@ public class OrgExtraServiceImpl extends BaseService{
OrganizationTaxRuleExample
example
=
new
OrganizationTaxRuleExample
();
example
.
createCriteria
().
andIdEqualTo
(
id
);
organizationTaxRuleMapper
.
deleteByExample
(
example
);
AddOrgExtraLog
(
OperationAction
.
Delete
.
value
(),
LogMessage
.
DeleteOrganizationTaxRule
,
String
.
valueOf
(
id
),
OperationModule
.
OrganizationTaxRule
.
value
());
return
new
OperationResultDto
(
true
);
}
/**
* 24/01/2019 10:41
* [增删改查,操作描述,操作对象,操作模块]
* [actionValue, content, object, module]
* @author Gary J Li
* @return
*/
private
void
AddOrgExtraLog
(
int
actionValue
,
String
content
,
String
object
,
Integer
module
)
{
OperationLogDto
opLog
=
new
OperationLogDto
();
opLog
.
setAction
(
actionValue
);
opLog
.
setOperationContent
(
content
);
opLog
.
setOperationObject
(
object
);
opLog
.
setOriginalState
(
""
);
opLog
.
setUpdateState
(
""
);
opLog
.
setIp
(
""
);
opLog
.
setModule
(
module
);
opLog
.
setComment
(
""
);
opLog
.
setLogType
(
OperateLogType
.
OperationLogOrganization
.
value
());
operationLogService
.
addOperationLog
(
opLog
);
}
}
atms-dao/src/main/java/pwc/taxtech/atms/dao/OrganizationReturnRateMapper.java
View file @
57378487
...
...
@@ -4,11 +4,13 @@ import java.util.List;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.session.RowBounds
;
import
org.springframework.stereotype.Repository
;
import
pwc.taxtech.atms.MyMapper
;
import
pwc.taxtech.atms.entity.OrganizationReturnRate
;
import
pwc.taxtech.atms.entity.OrganizationReturnRateExample
;
@Mapper
@Repository
public
interface
OrganizationReturnRateMapper
extends
MyMapper
{
/**
* This method was generated by MyBatis Generator.
...
...
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