Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
6a1a7a38
Commit
6a1a7a38
authored
May 25, 2020
by
Water Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize
parent
a148a4ea
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
926 additions
and
3 deletions
+926
-3
yd-api/src/main/java/com/yd/api/practitioner/PractitionerController.java
+16
-0
yd-api/src/main/java/com/yd/api/practitioner/service/PractitionerService.java
+9
-0
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+0
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/rank/AclCustomerFortuneStatistics.java
+3
-3
yd-api/src/main/java/com/yd/api/practitioner/vo/subordinate/SubordinateSystemMemberInfo.java
+67
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/subordinate/SubordinateSystemMemberQueryRequestVO.java
+32
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/subordinate/SubordinateSystemMemberQueryResponseVO.java
+81
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/subordinate/SubordinateSystemStatisticInfo.java
+40
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclCustomerFortune.java
+116
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerSetting.java
+72
-0
yd-api/src/main/java/com/yd/dal/entity/marketing/MktLeadsGoals.java
+102
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclCustomerFortuneMapper.java
+24
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerMapper.java
+3
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerSettingMapper.java
+23
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerSubordinateSystemMapper.java
+6
-0
yd-api/src/main/java/com/yd/dal/mapper/marketing/MktLeadsGoalsMapper.java
+23
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclCustomerFortuneDALService.java
+11
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerDALService.java
+7
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerSettingDALService.java
+11
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerSubordinateSystemDALService.java
+5
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclCustomerFortuneDALServiceImpl.java
+19
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerDALServiceImpl.java
+5
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerSettingDALServiceImpl.java
+19
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerSubordinateSystemDALServiceImpl.java
+7
-0
yd-api/src/main/java/com/yd/dal/service/marketing/Impl/MktLeadsGoalsDALServiceImpl.java
+19
-0
yd-api/src/main/java/com/yd/dal/service/marketing/MktLeadsGoalsDALService.java
+11
-0
yd-api/src/main/resources/mapper/customer/AclCustomerFortuneMapper.xml
+0
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerMapper.xml
+7
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerSettingMapper.xml
+181
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerSubordinateSystemMapper.xml
+7
-0
yd-api/src/main/resources/mapper/marketing/MktLeadsGoalsMapper.xml
+0
-0
No files found.
yd-api/src/main/java/com/yd/api/practitioner/PractitionerController.java
View file @
6a1a7a38
...
@@ -10,6 +10,8 @@ import com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO;
...
@@ -10,6 +10,8 @@ import com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO;
import
com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO
;
import
com.yd.api.practitioner.vo.recruit.*
;
import
com.yd.api.practitioner.vo.recruit.*
;
import
com.yd.api.practitioner.vo.setting.*
;
import
com.yd.api.practitioner.vo.setting.*
;
import
com.yd.api.practitioner.vo.subordinate.SubordinateSystemMemberQueryRequestVO
;
import
com.yd.api.practitioner.vo.subordinate.SubordinateSystemMemberQueryResponseVO
;
import
com.yd.api.result.JsonResult
;
import
com.yd.api.result.JsonResult
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
...
@@ -207,4 +209,18 @@ public class PractitionerController {
...
@@ -207,4 +209,18 @@ public class PractitionerController {
result
.
setData
(
responseVO
);
result
.
setData
(
responseVO
);
return
result
;
return
result
;
}
}
/**
* 体系团队成员信息查询
* @param requestVO
* @return AnnouncementQueryResponseVO
*/
@RequestMapping
(
"/subordinateSystemMemberQuery"
)
public
Object
subordinateSystemMemberQuery
(
@RequestBody
SubordinateSystemMemberQueryRequestVO
requestVO
){
JsonResult
result
=
new
JsonResult
();
SubordinateSystemMemberQueryResponseVO
responseVO
=
practitionerService
.
subordinateSystemMemberQuery
(
requestVO
);
result
.
setData
(
responseVO
);
result
.
addResult
(
responseVO
);
return
result
;
}
}
}
yd-api/src/main/java/com/yd/api/practitioner/service/PractitionerService.java
View file @
6a1a7a38
...
@@ -9,6 +9,8 @@ import com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO;
...
@@ -9,6 +9,8 @@ import com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO;
import
com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO
;
import
com.yd.api.practitioner.vo.recruit.*
;
import
com.yd.api.practitioner.vo.recruit.*
;
import
com.yd.api.practitioner.vo.setting.*
;
import
com.yd.api.practitioner.vo.setting.*
;
import
com.yd.api.practitioner.vo.subordinate.SubordinateSystemMemberQueryRequestVO
;
import
com.yd.api.practitioner.vo.subordinate.SubordinateSystemMemberQueryResponseVO
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
@Service
(
"practitionerService"
)
@Service
(
"practitionerService"
)
...
@@ -109,4 +111,11 @@ public interface PractitionerService {
...
@@ -109,4 +111,11 @@ public interface PractitionerService {
* @return
* @return
*/
*/
OwnOpportunityRecordSaveResponseVO
ownOpportunityRecordSave
(
OwnOpportunityRecordSaveRequestVO
requestVO
);
OwnOpportunityRecordSaveResponseVO
ownOpportunityRecordSave
(
OwnOpportunityRecordSaveRequestVO
requestVO
);
/**
* 体系团队成员信息查询
* @param requestVO
* @return
*/
SubordinateSystemMemberQueryResponseVO
subordinateSystemMemberQuery
(
SubordinateSystemMemberQueryRequestVO
requestVO
);
}
}
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
6a1a7a38
This diff is collapsed.
Click to expand it.
yd-api/src/main/java/com/yd/api/practitioner/vo/rank/AclCustomerFortuneStatistics.java
View file @
6a1a7a38
...
@@ -4,7 +4,7 @@ import java.io.Serializable;
...
@@ -4,7 +4,7 @@ import java.io.Serializable;
public
class
AclCustomerFortuneStatistics
implements
Serializable
{
public
class
AclCustomerFortuneStatistics
implements
Serializable
{
private
Integer
rank
;
private
Integer
rank
;
private
Long
customerId
;
private
Long
customerId
;
private
Stri
ng
practitionerId
;
private
Lo
ng
practitionerId
;
private
String
name
;
private
String
name
;
private
Long
subordinateSystemId
;
//所属体系id
private
Long
subordinateSystemId
;
//所属体系id
private
String
subordinateSystemName
;
//所属体系名称
private
String
subordinateSystemName
;
//所属体系名称
...
@@ -29,11 +29,11 @@ public class AclCustomerFortuneStatistics implements Serializable {
...
@@ -29,11 +29,11 @@ public class AclCustomerFortuneStatistics implements Serializable {
this
.
customerId
=
customerId
;
this
.
customerId
=
customerId
;
}
}
public
Stri
ng
getPractitionerId
()
{
public
Lo
ng
getPractitionerId
()
{
return
practitionerId
;
return
practitionerId
;
}
}
public
void
setPractitionerId
(
Stri
ng
practitionerId
)
{
public
void
setPractitionerId
(
Lo
ng
practitionerId
)
{
this
.
practitionerId
=
practitionerId
;
this
.
practitionerId
=
practitionerId
;
}
}
...
...
yd-api/src/main/java/com/yd/api/practitioner/vo/subordinate/SubordinateSystemMemberInfo.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
api
.
practitioner
.
vo
.
subordinate
;
public
class
SubordinateSystemMemberInfo
{
private
Long
practitionerId
;
private
String
name
;
private
String
levelCode
;
private
String
levelName
;
private
Double
fyp
;
private
Double
fyc
;
private
Integer
count
;
public
Long
getPractitionerId
()
{
return
practitionerId
;
}
public
void
setPractitionerId
(
Long
practitionerId
)
{
this
.
practitionerId
=
practitionerId
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getLevelCode
()
{
return
levelCode
;
}
public
void
setLevelCode
(
String
levelCode
)
{
this
.
levelCode
=
levelCode
;
}
public
String
getLevelName
()
{
return
levelName
;
}
public
void
setLevelName
(
String
levelName
)
{
this
.
levelName
=
levelName
;
}
public
Double
getFyp
()
{
return
fyp
;
}
public
void
setFyp
(
Double
fyp
)
{
this
.
fyp
=
fyp
;
}
public
Double
getFyc
()
{
return
fyc
;
}
public
void
setFyc
(
Double
fyc
)
{
this
.
fyc
=
fyc
;
}
public
Integer
getCount
()
{
return
count
;
}
public
void
setCount
(
Integer
count
)
{
this
.
count
=
count
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/subordinate/SubordinateSystemMemberQueryRequestVO.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
api
.
practitioner
.
vo
.
subordinate
;
public
class
SubordinateSystemMemberQueryRequestVO
{
private
Long
practitionerId
;
private
Integer
time
;
//1=month,3=quarter,2=year
private
Integer
type
;
//1=online,2=offLine
public
Long
getPractitionerId
()
{
return
practitionerId
;
}
public
void
setPractitionerId
(
Long
practitionerId
)
{
this
.
practitionerId
=
practitionerId
;
}
public
Integer
getTime
()
{
return
time
;
}
public
void
setTime
(
Integer
time
)
{
this
.
time
=
time
;
}
public
Integer
getType
()
{
return
type
;
}
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/subordinate/SubordinateSystemMemberQueryResponseVO.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
api
.
practitioner
.
vo
.
subordinate
;
import
com.yd.api.result.CommonResult
;
import
java.util.List
;
public
class
SubordinateSystemMemberQueryResponseVO
{
private
Long
id
;
private
String
subordinateSystemName
;
private
String
contactName
;
private
String
contactNo
;
private
String
remark
;
private
SubordinateSystemStatisticInfo
statisticInfo
;
private
List
<
SubordinateSystemMemberInfo
>
memberInfoList
;
private
CommonResult
commonResult
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getSubordinateSystemName
()
{
return
subordinateSystemName
;
}
public
void
setSubordinateSystemName
(
String
subordinateSystemName
)
{
this
.
subordinateSystemName
=
subordinateSystemName
;
}
public
String
getContactName
()
{
return
contactName
;
}
public
void
setContactName
(
String
contactName
)
{
this
.
contactName
=
contactName
;
}
public
String
getContactNo
()
{
return
contactNo
;
}
public
void
setContactNo
(
String
contactNo
)
{
this
.
contactNo
=
contactNo
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
SubordinateSystemStatisticInfo
getStatisticInfo
()
{
return
statisticInfo
;
}
public
void
setStatisticInfo
(
SubordinateSystemStatisticInfo
statisticInfo
)
{
this
.
statisticInfo
=
statisticInfo
;
}
public
List
<
SubordinateSystemMemberInfo
>
getMemberInfoList
()
{
return
memberInfoList
;
}
public
void
setMemberInfoList
(
List
<
SubordinateSystemMemberInfo
>
memberInfoList
)
{
this
.
memberInfoList
=
memberInfoList
;
}
public
CommonResult
getCommonResult
()
{
return
commonResult
;
}
public
void
setCommonResult
(
CommonResult
commonResult
)
{
this
.
commonResult
=
commonResult
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/subordinate/SubordinateSystemStatisticInfo.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
api
.
practitioner
.
vo
.
subordinate
;
public
class
SubordinateSystemStatisticInfo
{
private
Double
fyc
;
private
Double
fyp
;
private
Integer
count
;
private
Double
completionRate
;
public
Double
getFyc
()
{
return
fyc
;
}
public
void
setFyc
(
Double
fyc
)
{
this
.
fyc
=
fyc
;
}
public
Double
getFyp
()
{
return
fyp
;
}
public
void
setFyp
(
Double
fyp
)
{
this
.
fyp
=
fyp
;
}
public
Integer
getCount
()
{
return
count
;
}
public
void
setCount
(
Integer
count
)
{
this
.
count
=
count
;
}
public
Double
getCompletionRate
()
{
return
completionRate
;
}
public
void
setCompletionRate
(
Double
completionRate
)
{
this
.
completionRate
=
completionRate
;
}
}
yd-api/src/main/java/com/yd/dal/entity/customer/AclCustomerFortune.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
lombok.Data
;
/**
* ag_acl_customer_fortune
* @author
*/
@Data
public
class
AclCustomerFortune
implements
Serializable
{
/**
* serial id
*/
private
Long
id
;
/**
* FK ag_acl_customer_share.id
*/
private
Long
shareId
;
/**
* FK ag_acl_customer.id
*/
private
Long
customerId
;
/**
* FK ag_po_order.id
*/
private
Long
orderId
;
private
Date
orderDate
;
private
BigDecimal
orderPrice
;
/**
* FK ag_product_plan_commission,ag_product_life_plan_commission银盾来佣佣金率
*/
private
BigDecimal
commissionRate
;
/**
* 银盾来佣佣金
*/
private
BigDecimal
commissionAmount
;
/**
* FK ag_product_plan_commission,ag_product_life_plan_commission公告佣金率
*/
private
BigDecimal
announcementCommissionRate
;
/**
* 公告佣金
*/
private
BigDecimal
announcementCommissionAmount
;
/**
* FK ag_acl_channel_referral_rate个人职级佣金率
*/
private
BigDecimal
gradeCommissionRate
;
/**
* %=referral amount / order price
*/
private
BigDecimal
referralRate
;
private
BigDecimal
referralAmount
;
/**
* 扣除6个点的企业增值税(6%)
*/
private
BigDecimal
referralAmountAfterValueadded
;
/**
* 0=No, 1=Yes
*/
private
Integer
isTax
;
private
BigDecimal
taxAmount
;
private
BigDecimal
netAmount
;
/**
* FK ag_md_mk_campaign.id
*/
private
Long
campaignId
;
/**
* 可提现日期,在生产记录时就算好
*/
private
Date
withdrawableDate
;
/**
* FK ag_acl_customer_fortune_withdraw.id 提现表的id
*/
private
Long
withdrawedId
;
/**
* FK ag_acl_customer_fortune_pay.id 支付表的id
*/
private
Long
fortunePayedId
;
/**
* 创建时间
*/
private
Date
createdAt
;
/**
* FK ag_acl_customer.id
*/
private
Long
createdBy
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerSetting.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
* ag_acl_practitioner_setting
* @author
*/
@Data
public
class
AclPractitionerSetting
implements
Serializable
{
/**
* serial id
*/
private
Long
id
;
/**
* FK ag_acl_practitioner.id
*/
private
Long
practitionerId
;
/**
* FK ag_md_drop_options.id,经纪人:1产险、2寿险、3商业
*/
private
Long
practitionerTypeId
;
/**
* FK ag_md_drop_options.id,经纪人分成5个级别 : S2 、S1、 A3、 A2、 A1,level决定佣金比例
*/
private
Long
practitionerLevel
;
/**
* 比例有效期起日
*/
private
Date
levelStartDate
;
/**
* 比例有效期终日
*/
private
Date
levelEndDate
;
/**
* 备注
*/
private
String
remark
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 建置日
*/
private
Date
createdAt
;
/**
* 建置者
*/
private
Long
createdBy
;
/**
* 更新日
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/marketing/MktLeadsGoals.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
dal
.
entity
.
marketing
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
* ag_mkt_leads_goals
* @author
*/
@Data
public
class
MktLeadsGoals
implements
Serializable
{
/**
* serial id
*/
private
Long
id
;
/**
* 目标类型:1:经纪人指标,2:团队指标
*/
private
Integer
goalsType
;
/**
* FK ag_acl_practitioner.id 经纪人(或团队长)
*/
private
Long
practitionerId
;
/**
* FK ag_acl_practitioner_subordinate_system.id 团队ID
*/
private
Long
subordinateSystemId
;
/**
* FK ag_acl_practitioner_subordinate_system.name 团队Name
*/
private
String
subordinateSystemName
;
/**
* 目标所属年度
*/
private
Integer
currentYear
;
/**
* 1:年度,3:月度
*/
private
Integer
statisticTimeUnit
;
/**
* 1:年度,3:月度
*/
private
Integer
seqTime
;
/**
* 保费
*/
private
Double
premium
;
/**
* 佣金
*/
private
Double
commission
;
/**
* 件数
*/
private
Integer
pieces
;
/**
* 件均保费: 计算生成 FYP/件数
*/
private
Double
pieceAveragePremium
;
/**
* 版本控制
*/
private
Date
currentVersion
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 创建时间
*/
private
Date
createdAt
;
/**
* 创建人
*/
private
Long
createdBy
;
/**
* 修改时间
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclCustomerFortuneMapper.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.api.practitioner.vo.rank.AclCustomerFortuneStatistics
;
import
com.yd.dal.entity.customer.AclCustomerFortune
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
AclCustomerFortuneMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclCustomerFortune
record
);
int
insertSelective
(
AclCustomerFortune
record
);
AclCustomerFortune
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclCustomerFortune
record
);
int
updateByPrimaryKey
(
AclCustomerFortune
record
);
List
<
AclCustomerFortuneStatistics
>
findBySubordinateSystemStatistics
(
@Param
(
"subordinateSystemId"
)
Long
subordinateSystemId
,
@Param
(
"time"
)
Integer
time
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerMapper.java
View file @
6a1a7a38
...
@@ -39,4 +39,6 @@ public interface AclPractitionerMapper {
...
@@ -39,4 +39,6 @@ public interface AclPractitionerMapper {
List
<
OwnOpportunityInfo
>
ownOpportunityQuery
(
@Param
(
"practitionerId"
)
Long
practitionerId
);
List
<
OwnOpportunityInfo
>
ownOpportunityQuery
(
@Param
(
"practitionerId"
)
Long
practitionerId
);
List
<
AclPractitioner
>
findByIds
(
@Param
(
"practitionerIdList"
)
List
<
Long
>
practitionerIdList
);
List
<
AclPractitioner
>
findByIds
(
@Param
(
"practitionerIdList"
)
List
<
Long
>
practitionerIdList
);
List
<
AclPractitioner
>
findBySubordinateSystemId
(
@Param
(
"subordinateSystemId"
)
Long
subordinateSystemId
);
}
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerSettingMapper.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclPractitionerSetting
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
AclPractitionerSettingMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclPractitionerSetting
record
);
int
insertSelective
(
AclPractitionerSetting
record
);
AclPractitionerSetting
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclPractitionerSetting
record
);
int
updateByPrimaryKey
(
AclPractitionerSetting
record
);
List
<
AclPractitionerSetting
>
findByPractitionerIdList
(
@Param
(
"practitionerIds"
)
List
<
Long
>
practitionerIds
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerSubordinateSystemMapper.java
View file @
6a1a7a38
...
@@ -2,6 +2,9 @@ package com.yd.dal.mapper.customer;
...
@@ -2,6 +2,9 @@ package com.yd.dal.mapper.customer;
import
com.yd.dal.entity.customer.AclPractitionerSubordinateSystem
;
import
com.yd.dal.entity.customer.AclPractitionerSubordinateSystem
;
import
com.yd.dal.entity.customer.practitioner.PractitionerSubordinateInfo
;
import
com.yd.dal.entity.customer.practitioner.PractitionerSubordinateInfo
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
AclPractitionerSubordinateSystemMapper
{
public
interface
AclPractitionerSubordinateSystemMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
deleteByPrimaryKey
(
Long
id
);
...
@@ -17,4 +20,6 @@ public interface AclPractitionerSubordinateSystemMapper {
...
@@ -17,4 +20,6 @@ public interface AclPractitionerSubordinateSystemMapper {
int
updateByPrimaryKey
(
AclPractitionerSubordinateSystem
record
);
int
updateByPrimaryKey
(
AclPractitionerSubordinateSystem
record
);
PractitionerSubordinateInfo
findSubordinateInfo
(
Long
subordinateId
);
PractitionerSubordinateInfo
findSubordinateInfo
(
Long
subordinateId
);
List
<
AclPractitionerSubordinateSystem
>
findByOwner
(
@Param
(
"practitionerId"
)
Long
practitionerId
);
}
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/marketing/MktLeadsGoalsMapper.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
dal
.
mapper
.
marketing
;
import
com.yd.dal.entity.marketing.MktLeadsGoals
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
MktLeadsGoalsMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
MktLeadsGoals
record
);
int
insertSelective
(
MktLeadsGoals
record
);
MktLeadsGoals
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
MktLeadsGoals
record
);
int
updateByPrimaryKey
(
MktLeadsGoals
record
);
List
<
MktLeadsGoals
>
findByTypeAndTimeUnitAndSubordinateSystemId
(
@Param
(
"goalsType"
)
Integer
goalsType
,
@Param
(
"statisticTimeUnit"
)
Integer
statisticTimeUnit
,
@Param
(
"subordinateSystemId"
)
Long
subordinateSystemId
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/service/customer/AclCustomerFortuneDALService.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
dal
.
service
.
customer
;
import
com.yd.api.practitioner.vo.rank.AclCustomerFortuneStatistics
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
(
"aclCustomerFortuneDALService"
)
public
interface
AclCustomerFortuneDALService
{
List
<
AclCustomerFortuneStatistics
>
findBySubordinateSystemStatistics
(
Long
subordinateSystemId
,
Integer
time
);
}
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerDALService.java
View file @
6a1a7a38
...
@@ -82,4 +82,11 @@ public interface AclPractitionerDALService {
...
@@ -82,4 +82,11 @@ public interface AclPractitionerDALService {
* @return
* @return
*/
*/
List
<
AclPractitioner
>
findByIds
(
List
<
Long
>
practitionerIdList
);
List
<
AclPractitioner
>
findByIds
(
List
<
Long
>
practitionerIdList
);
/**
* 根据体系id查询经纪人
* @param subordinateSystemId 体系id
* @return
*/
List
<
AclPractitioner
>
findBySubordinateSystemId
(
Long
subordinateSystemId
);
}
}
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerSettingDALService.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
dal
.
service
.
customer
;
import
com.yd.dal.entity.customer.AclPractitionerSetting
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
(
"aclPractitionerSettingDALService"
)
public
interface
AclPractitionerSettingDALService
{
List
<
AclPractitionerSetting
>
findByPractitionerIdList
(
List
<
Long
>
practitionerIds
);
}
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerSubordinateSystemDALService.java
View file @
6a1a7a38
package
com
.
yd
.
dal
.
service
.
customer
;
package
com
.
yd
.
dal
.
service
.
customer
;
import
com.yd.dal.entity.customer.AclPractitionerSubordinateSystem
;
import
com.yd.dal.entity.customer.practitioner.PractitionerSubordinateInfo
;
import
com.yd.dal.entity.customer.practitioner.PractitionerSubordinateInfo
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
(
"aclPractitionerSubordinateSystemDALService"
)
@Service
(
"aclPractitionerSubordinateSystemDALService"
)
public
interface
AclPractitionerSubordinateSystemDALService
{
public
interface
AclPractitionerSubordinateSystemDALService
{
PractitionerSubordinateInfo
findSubordinateInfo
(
Long
subordinateId
);
PractitionerSubordinateInfo
findSubordinateInfo
(
Long
subordinateId
);
List
<
AclPractitionerSubordinateSystem
>
findByOwner
(
Long
practitionerId
);
}
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclCustomerFortuneDALServiceImpl.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.api.practitioner.vo.rank.AclCustomerFortuneStatistics
;
import
com.yd.dal.mapper.customer.AclCustomerFortuneMapper
;
import
com.yd.dal.service.customer.AclCustomerFortuneDALService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
@Service
(
"aclCustomerFortuneDALService"
)
public
class
AclCustomerFortuneDALServiceImpl
implements
AclCustomerFortuneDALService
{
@Resource
private
AclCustomerFortuneMapper
aclCustomerFortuneMapper
;
@Override
public
List
<
AclCustomerFortuneStatistics
>
findBySubordinateSystemStatistics
(
Long
subordinateSystemId
,
Integer
time
)
{
return
aclCustomerFortuneMapper
.
findBySubordinateSystemStatistics
(
subordinateSystemId
,
time
);
}
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerDALServiceImpl.java
View file @
6a1a7a38
...
@@ -88,4 +88,9 @@ public class AclPractitionerDALServiceImpl implements AclPractitionerDALService
...
@@ -88,4 +88,9 @@ public class AclPractitionerDALServiceImpl implements AclPractitionerDALService
public
List
<
AclPractitioner
>
findByIds
(
List
<
Long
>
practitionerIdList
)
{
public
List
<
AclPractitioner
>
findByIds
(
List
<
Long
>
practitionerIdList
)
{
return
aclPractitionerMapper
.
findByIds
(
practitionerIdList
);
return
aclPractitionerMapper
.
findByIds
(
practitionerIdList
);
}
}
@Override
public
List
<
AclPractitioner
>
findBySubordinateSystemId
(
Long
subordinateSystemId
)
{
return
aclPractitionerMapper
.
findBySubordinateSystemId
(
subordinateSystemId
);
}
}
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerSettingDALServiceImpl.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.entity.customer.AclPractitionerSetting
;
import
com.yd.dal.mapper.customer.AclPractitionerSettingMapper
;
import
com.yd.dal.service.customer.AclPractitionerSettingDALService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
(
"aclPractitionerSettingDALService"
)
public
class
AclPractitionerSettingDALServiceImpl
implements
AclPractitionerSettingDALService
{
@Autowired
private
AclPractitionerSettingMapper
aclPractitionerSettingMapper
;
@Override
public
List
<
AclPractitionerSetting
>
findByPractitionerIdList
(
List
<
Long
>
practitionerIds
)
{
return
aclPractitionerSettingMapper
.
findByPractitionerIdList
(
practitionerIds
);
}
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerSubordinateSystemDALServiceImpl.java
View file @
6a1a7a38
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.entity.customer.AclPractitionerSubordinateSystem
;
import
com.yd.dal.entity.customer.practitioner.PractitionerSubordinateInfo
;
import
com.yd.dal.entity.customer.practitioner.PractitionerSubordinateInfo
;
import
com.yd.dal.mapper.customer.AclPractitionerSubordinateSystemMapper
;
import
com.yd.dal.mapper.customer.AclPractitionerSubordinateSystemMapper
;
import
com.yd.dal.service.customer.AclPractitionerSubordinateSystemDALService
;
import
com.yd.dal.service.customer.AclPractitionerSubordinateSystemDALService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
@Service
(
"aclPractitionerSubordinateSystemDALService"
)
@Service
(
"aclPractitionerSubordinateSystemDALService"
)
public
class
AclPractitionerSubordinateSystemDALServiceImpl
implements
AclPractitionerSubordinateSystemDALService
{
public
class
AclPractitionerSubordinateSystemDALServiceImpl
implements
AclPractitionerSubordinateSystemDALService
{
...
@@ -24,4 +26,9 @@ public class AclPractitionerSubordinateSystemDALServiceImpl implements AclPracti
...
@@ -24,4 +26,9 @@ public class AclPractitionerSubordinateSystemDALServiceImpl implements AclPracti
}
}
return
subordinateInfo
;
return
subordinateInfo
;
}
}
@Override
public
List
<
AclPractitionerSubordinateSystem
>
findByOwner
(
Long
practitionerId
)
{
return
aclPractitionerSubordinateSystemMapper
.
findByOwner
(
practitionerId
);
}
}
}
yd-api/src/main/java/com/yd/dal/service/marketing/Impl/MktLeadsGoalsDALServiceImpl.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
dal
.
service
.
marketing
.
Impl
;
import
com.yd.dal.entity.marketing.MktLeadsGoals
;
import
com.yd.dal.mapper.marketing.MktLeadsGoalsMapper
;
import
com.yd.dal.service.marketing.MktLeadsGoalsDALService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
(
"mktLeadsGoalsDALService"
)
public
class
MktLeadsGoalsDALServiceImpl
implements
MktLeadsGoalsDALService
{
@Autowired
private
MktLeadsGoalsMapper
mktLeadsGoalsMapper
;
@Override
public
List
<
MktLeadsGoals
>
findByTypeAndTimeUnitAndSubordinateSystemId
(
Integer
goalsType
,
Integer
statisticTimeUnit
,
Long
subordinateSystemId
)
{
return
mktLeadsGoalsMapper
.
findByTypeAndTimeUnitAndSubordinateSystemId
(
goalsType
,
statisticTimeUnit
,
subordinateSystemId
);
}
}
yd-api/src/main/java/com/yd/dal/service/marketing/MktLeadsGoalsDALService.java
0 → 100644
View file @
6a1a7a38
package
com
.
yd
.
dal
.
service
.
marketing
;
import
com.yd.dal.entity.marketing.MktLeadsGoals
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
(
"mktLeadsGoalsDALService"
)
public
interface
MktLeadsGoalsDALService
{
List
<
MktLeadsGoals
>
findByTypeAndTimeUnitAndSubordinateSystemId
(
Integer
goalsType
,
Integer
statisticTimeUnit
,
Long
subordinateSystemId
);
}
yd-api/src/main/resources/mapper/customer/AclCustomerFortuneMapper.xml
0 → 100644
View file @
6a1a7a38
This diff is collapsed.
Click to expand it.
yd-api/src/main/resources/mapper/customer/AclPractitionerMapper.xml
View file @
6a1a7a38
...
@@ -714,4 +714,10 @@
...
@@ -714,4 +714,10 @@
#{item}
#{item}
</foreach>
</foreach>
</select>
</select>
<select
id=
"findBySubordinateSystemId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner
where subordinate_system_id = #{subordinateSystemId,jdbcType=BIGINT} and is_active = 1
</select>
</mapper>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclPractitionerSettingMapper.xml
0 → 100644
View file @
6a1a7a38
<?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.yd.dal.mapper.customer.AclPractitionerSettingMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclPractitionerSetting"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"practitioner_id"
jdbcType=
"BIGINT"
property=
"practitionerId"
/>
<result
column=
"practitioner_type_id"
jdbcType=
"BIGINT"
property=
"practitionerTypeId"
/>
<result
column=
"practitioner_level"
jdbcType=
"BIGINT"
property=
"practitionerLevel"
/>
<result
column=
"level_start_date"
jdbcType=
"DATE"
property=
"levelStartDate"
/>
<result
column=
"level_end_date"
jdbcType=
"DATE"
property=
"levelEndDate"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
<result
column=
"updated_at"
jdbcType=
"TIMESTAMP"
property=
"updatedAt"
/>
<result
column=
"updated_by"
jdbcType=
"BIGINT"
property=
"updatedBy"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, practitioner_id, practitioner_type_id, practitioner_level, level_start_date,
level_end_date, remark, is_active, created_at, created_by, updated_at, updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner_setting
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ag_acl_practitioner_setting
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerSetting"
useGeneratedKeys=
"true"
>
insert into ag_acl_practitioner_setting (practitioner_id, practitioner_type_id,
practitioner_level, level_start_date, level_end_date,
remark, is_active, created_at,
created_by, updated_at, updated_by
)
values (#{practitionerId,jdbcType=BIGINT}, #{practitionerTypeId,jdbcType=BIGINT},
#{practitionerLevel,jdbcType=BIGINT}, #{levelStartDate,jdbcType=DATE}, #{levelEndDate,jdbcType=DATE},
#{remark,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP},
#{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}
)
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerSetting"
useGeneratedKeys=
"true"
>
insert into ag_acl_practitioner_setting
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"practitionerId != null"
>
practitioner_id,
</if>
<if
test=
"practitionerTypeId != null"
>
practitioner_type_id,
</if>
<if
test=
"practitionerLevel != null"
>
practitioner_level,
</if>
<if
test=
"levelStartDate != null"
>
level_start_date,
</if>
<if
test=
"levelEndDate != null"
>
level_end_date,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"isActive != null"
>
is_active,
</if>
<if
test=
"createdAt != null"
>
created_at,
</if>
<if
test=
"createdBy != null"
>
created_by,
</if>
<if
test=
"updatedAt != null"
>
updated_at,
</if>
<if
test=
"updatedBy != null"
>
updated_by,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"practitionerId != null"
>
#{practitionerId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerTypeId != null"
>
#{practitionerTypeId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerLevel != null"
>
#{practitionerLevel,jdbcType=BIGINT},
</if>
<if
test=
"levelStartDate != null"
>
#{levelStartDate,jdbcType=DATE},
</if>
<if
test=
"levelEndDate != null"
>
#{levelEndDate,jdbcType=DATE},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=VARCHAR},
</if>
<if
test=
"isActive != null"
>
#{isActive,jdbcType=INTEGER},
</if>
<if
test=
"createdAt != null"
>
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
#{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
#{updatedBy,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerSetting"
>
update ag_acl_practitioner_setting
<set>
<if
test=
"practitionerId != null"
>
practitioner_id = #{practitionerId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerTypeId != null"
>
practitioner_type_id = #{practitionerTypeId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerLevel != null"
>
practitioner_level = #{practitionerLevel,jdbcType=BIGINT},
</if>
<if
test=
"levelStartDate != null"
>
level_start_date = #{levelStartDate,jdbcType=DATE},
</if>
<if
test=
"levelEndDate != null"
>
level_end_date = #{levelEndDate,jdbcType=DATE},
</if>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=VARCHAR},
</if>
<if
test=
"isActive != null"
>
is_active = #{isActive,jdbcType=INTEGER},
</if>
<if
test=
"createdAt != null"
>
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
created_by = #{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
updated_by = #{updatedBy,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerSetting"
>
update ag_acl_practitioner_setting
set practitioner_id = #{practitionerId,jdbcType=BIGINT},
practitioner_type_id = #{practitionerTypeId,jdbcType=BIGINT},
practitioner_level = #{practitionerLevel,jdbcType=BIGINT},
level_start_date = #{levelStartDate,jdbcType=DATE},
level_end_date = #{levelEndDate,jdbcType=DATE},
remark = #{remark,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=INTEGER},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
updated_by = #{updatedBy,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"findByPractitionerIdList"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner_setting
where practitioner_id in
<foreach
collection=
"practitionerIds"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</select>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclPractitionerSubordinateSystemMapper.xml
View file @
6a1a7a38
...
@@ -242,4 +242,10 @@
...
@@ -242,4 +242,10 @@
and s.id = #{subordinateId}
and s.id = #{subordinateId}
</select>
</select>
<select
id=
"findByOwner"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner_subordinate_system
where owner_practitioner_id = #{practitionerId,jdbcType=BIGINT} and is_active = 1
</select>
</mapper>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/marketing/MktLeadsGoalsMapper.xml
0 → 100644
View file @
6a1a7a38
This diff is collapsed.
Click to expand it.
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