Merge branch 'cc_20250224_fixBug' into 'master'
Cc 20250224 fix bug See merge request hangzhou/java/custom_zxjp!47
This commit is contained in:
@@ -232,7 +232,8 @@ public enum ErrorCodeEnum {
|
|||||||
UPDATE_FAIL(131000,"修改失败,表单不存在!",null),
|
UPDATE_FAIL(131000,"修改失败,表单不存在!",null),
|
||||||
LICENSE_LEGAL_STAGE_FAIL(131001,"营业执照阶段未上传!",null),
|
LICENSE_LEGAL_STAGE_FAIL(131001,"营业执照阶段未上传!",null),
|
||||||
GET_JURIDICAL_ID_CARD_NO_FAIL(131002,"获取法人身份证信息失败!",null),
|
GET_JURIDICAL_ID_CARD_NO_FAIL(131002,"获取法人身份证信息失败!",null),
|
||||||
UPDATE_INVESTMENT_MANAGER_FAIL(131005,"当前用户已经为该门店招商经理",null)
|
UPDATE_INVESTMENT_MANAGER_FAIL(131005,"当前用户已经为该门店招商经理",null),
|
||||||
|
CONFIRM_THE_APPROVER(131006,"您提交的铺位暂时找不到选址审批人,请联系系统管理员配置选址审批权限后再提交铺位审批",null)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,13 @@ public enum UserRoleEnum {
|
|||||||
TENT_PASS_CUSTOMER(380000000L,"营帐通客服"),
|
TENT_PASS_CUSTOMER(380000000L,"营帐通客服"),
|
||||||
DESIGN_CUSTOMER(390000000L,"设计客服"),
|
DESIGN_CUSTOMER(390000000L,"设计客服"),
|
||||||
CONSTRUCTION_CUSTOMER(400000000L,"施工客服"),
|
CONSTRUCTION_CUSTOMER(400000000L,"施工客服"),
|
||||||
BRANCH_OFFICE(1724233283449L,"分布内勤"),
|
BRANCH_OFFICE(1724233283449L,"分部内勤"),
|
||||||
|
JOIN_OFFICE(1719278230274L,"加盟内勤"),
|
||||||
|
REGION_OFFICE(410000000L,"大区内勤"),
|
||||||
|
FINANCE(1735895867344L,"财务"),
|
||||||
|
CHUAN_XIAO_MEI_MANAGER(1731635078802L,"串小妹大区执行总经理"),
|
||||||
|
REGIONAL_MANAGER(420000000L,"大区经理"),
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
||||||
private Long code;
|
private Long code;
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
select a.shop_id AS shopId ,
|
select a.shop_id AS shopId ,
|
||||||
b.pay_time as payTime,
|
b.pay_time as payTime,
|
||||||
a.year_franchise_fee as yearFranchiseFee,
|
a.year_franchise_fee as yearFranchiseFee,
|
||||||
|
a.first_year_manage_fee as firstYearManagementFee,
|
||||||
a.loan_margin as loanMargin,
|
a.loan_margin as loanMargin,
|
||||||
a.first_year_start_time as firstYearStartTime,
|
a.first_year_start_time as firstYearStartTime,
|
||||||
a.first_year_end_time as firstYearEndTime,
|
a.first_year_end_time as firstYearEndTime,
|
||||||
|
|||||||
@@ -391,7 +391,8 @@
|
|||||||
</select>
|
</select>
|
||||||
<select id="selectInvestmentByList" resultType="com.cool.store.entity.ShopInfoDO">
|
<select id="selectInvestmentByList" resultType="com.cool.store.entity.ShopInfoDO">
|
||||||
select line_id as LineId,
|
select line_id as LineId,
|
||||||
investment_manager as InvestmentManager
|
investment_manager as investmentManager,
|
||||||
|
development_manager as developmentManager
|
||||||
from xfsg_shop_info
|
from xfsg_shop_info
|
||||||
where line_id in
|
where line_id in
|
||||||
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
|
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public class ExportBranchShopDTO {
|
|||||||
@ColumnWidth(30)
|
@ColumnWidth(30)
|
||||||
private String firstYearStartTime;
|
private String firstYearStartTime;
|
||||||
|
|
||||||
@ExcelProperty(value = "第一年加盟结束时间",order = 10)
|
@ExcelProperty(value = "第一年管理费到期时间",order = 10)
|
||||||
@ColumnWidth(30)
|
@ColumnWidth(30)
|
||||||
private String firstYearEndTime;
|
private String firstYearEndTime;
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import lombok.Data;
|
|||||||
|
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: WangShuo
|
* @Author: WangShuo
|
||||||
@@ -15,18 +16,22 @@ import java.util.Date;
|
|||||||
@Data
|
@Data
|
||||||
public class FranchiseFeeDTO {
|
public class FranchiseFeeDTO {
|
||||||
private Long shopId;
|
private Long shopId;
|
||||||
|
//缴费时间
|
||||||
private Date payTime;
|
private Date payTime;
|
||||||
|
//每年加盟费
|
||||||
private String yearFranchiseFee;
|
private String yearFranchiseFee;
|
||||||
|
//保证金
|
||||||
private String loanMargin;
|
private String loanMargin;
|
||||||
|
|
||||||
private Date firstYearStartTime;
|
private Date firstYearStartTime;
|
||||||
|
|
||||||
private Date firstYearEndTime;
|
private Date firstYearEndTime;
|
||||||
|
//第一年度管理费
|
||||||
|
private String firstYearManagementFee;
|
||||||
|
//第一年度品牌使用费
|
||||||
private String firstYearFee;
|
private String firstYearFee;
|
||||||
|
//履约保证金
|
||||||
private String performanceBond;
|
private String performanceBond;
|
||||||
|
|
||||||
|
private List<Date> payTimeList;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -224,33 +224,32 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PageInfo<PreparationCommonPendingVO> payFranchiseFeesPendingList(Integer pageNum, Integer pageSize, LoginUserInfo user) {
|
public PageInfo<PreparationCommonPendingVO> payFranchiseFeesPendingList(Integer pageNum, Integer pageSize, LoginUserInfo user) {
|
||||||
List<Long> userRoleIds = enterpriseUserRoleMapper.getUserRoleIds(user.getUserId());
|
List<Long> userRoleIds = enterpriseUserRoleMapper.getUserRoleIds(user.getUserId());
|
||||||
PageInfo<PreparationCommonPendingVO> pageInfo = new PageInfo<>();
|
PageInfo<PreparationCommonPendingVO> pageInfo = new PageInfo<>();
|
||||||
if (CollectionUtils.isNotEmpty(userRoleIds)
|
List<Integer> subStageStatusList = new ArrayList<>();
|
||||||
&& (userRoleIds.contains(UserRoleEnum.SUPERVISION.getCode())
|
if (CollectionUtils.isNotEmpty(userRoleIds)) {
|
||||||
||userRoleIds.contains(UserRoleEnum.INVESTMENT_COMMISSIONER.getCode())
|
if (userRoleIds.contains(UserRoleEnum.JOIN_OFFICE.getCode()) || userRoleIds.contains(UserRoleEnum.REGION_OFFICE.getCode())) {
|
||||||
||userRoleIds.contains(UserRoleEnum.STRONG_INVESTMENT_COMMISSIONER.getCode()))){
|
subStageStatusList.add(SHOP_SUB_STAGE_STATUS_70.getShopSubStageStatus());
|
||||||
pageInfo = commonPendingVOPageInfo(pageNum, pageSize, user, ShopSubStageEnum.SHOP_STAGE_7,
|
}
|
||||||
Collections.singletonList(SHOP_SUB_STAGE_STATUS_70.getShopSubStageStatus()), Boolean.FALSE);
|
if (userRoleIds.contains(UserRoleEnum.BRANCH_OFFICE.getCode()) || userRoleIds.contains(UserRoleEnum.REGION_OFFICE.getCode())) {
|
||||||
|
subStageStatusList.add(SHOP_SUB_STAGE_STATUS_72.getShopSubStageStatus());
|
||||||
|
}
|
||||||
|
if (!subStageStatusList.isEmpty()) {
|
||||||
|
pageInfo = commonPendingVOPageInfo(pageNum, pageSize, user, ShopSubStageEnum.SHOP_STAGE_7,
|
||||||
|
subStageStatusList, Boolean.TRUE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (CollectionUtils.isNotEmpty(userRoleIds)&& userRoleIds.contains(UserRoleEnum.BRANCH_OFFICE.getCode())){
|
|
||||||
pageInfo = commonPendingVOPageInfo(pageNum, pageSize, user, ShopSubStageEnum.SHOP_STAGE_7,
|
|
||||||
Collections.singletonList(SHOP_SUB_STAGE_STATUS_72.getShopSubStageStatus()), Boolean.TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
||||||
if (CollectionUtils.isEmpty(list)){
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
||||||
Map<Long, LinePayDO> shopPayDoMap = linePayDAO.getLinePayByShopIds(shopIds, PayBusinessTypeEnum.FRANCHISE_FEE.getCode());
|
Map<Long, LinePayDO> shopPayDoMap = linePayDAO.getLinePayByShopIds(shopIds, PayBusinessTypeEnum.FRANCHISE_FEE.getCode());
|
||||||
for (PreparationCommonPendingVO vo:list){
|
for (PreparationCommonPendingVO vo : list) {
|
||||||
vo.setSubmitTime(DateUtils.parseDateToStr(DateUtils.SPECIAL_DATE_START, shopPayDoMap.getOrDefault(vo.getShopId(), new LinePayDO()).getCreateTime()));
|
vo.setSubmitTime(DateUtils.parseDateToStr(DateUtils.SPECIAL_DATE_START, shopPayDoMap.getOrDefault(vo.getShopId(), new LinePayDO()).getCreateTime()));
|
||||||
}
|
}
|
||||||
pageInfo.setList(list);
|
pageInfo.setList(list);
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
@@ -261,14 +260,14 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
Arrays.asList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_80.getShopSubStageStatus(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_85.getShopSubStageStatus()), Boolean.TRUE);
|
Arrays.asList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_80.getShopSubStageStatus(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_85.getShopSubStageStatus()), Boolean.TRUE);
|
||||||
|
|
||||||
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
||||||
if (CollectionUtils.isEmpty(list)){
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
||||||
Map<Long, List<DeskStageDTO>> deskStageMap = new HashMap<>();
|
Map<Long, List<DeskStageDTO>> deskStageMap = new HashMap<>();
|
||||||
List<ShopStageInfoDO> subStageList = shopStageInfoDAO.getSubStages(shopIds, ShopSubStageEnum.SHOP_STAGE_7.getShopSubStage());
|
List<ShopStageInfoDO> subStageList = shopStageInfoDAO.getSubStages(shopIds, ShopSubStageEnum.SHOP_STAGE_7.getShopSubStage());
|
||||||
doThing(deskStageMap, subStageList);
|
doThing(deskStageMap, subStageList);
|
||||||
for (PreparationCommonPendingVO vo :list){
|
for (PreparationCommonPendingVO vo : list) {
|
||||||
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
||||||
}
|
}
|
||||||
pageInfo.setList(list);
|
pageInfo.setList(list);
|
||||||
@@ -299,14 +298,14 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, null, ShopSubStageEnum.SHOP_STAGE_23,
|
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, null, ShopSubStageEnum.SHOP_STAGE_23,
|
||||||
Collections.singletonList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_230.getShopSubStageStatus()), Boolean.FALSE);
|
Collections.singletonList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_230.getShopSubStageStatus()), Boolean.FALSE);
|
||||||
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
||||||
if (CollectionUtils.isEmpty(list)){
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
||||||
Map<Long, List<DeskStageDTO>> deskStageMap = new HashMap<>();
|
Map<Long, List<DeskStageDTO>> deskStageMap = new HashMap<>();
|
||||||
List<ShopStageInfoDO> subStageList = shopStageInfoDAO.getSubStages(shopIds, ShopSubStageEnum.SHOP_STAGE_8.getShopSubStage());
|
List<ShopStageInfoDO> subStageList = shopStageInfoDAO.getSubStages(shopIds, ShopSubStageEnum.SHOP_STAGE_8.getShopSubStage());
|
||||||
doThing(deskStageMap, subStageList);
|
doThing(deskStageMap, subStageList);
|
||||||
for (PreparationCommonPendingVO vo :list){
|
for (PreparationCommonPendingVO vo : list) {
|
||||||
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
||||||
}
|
}
|
||||||
pageInfo.setList(list);
|
pageInfo.setList(list);
|
||||||
@@ -320,14 +319,14 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, null, ShopSubStageEnum.SHOP_STAGE_16,
|
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, null, ShopSubStageEnum.SHOP_STAGE_16,
|
||||||
Collections.singletonList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_160.getShopSubStageStatus()), Boolean.FALSE);
|
Collections.singletonList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_160.getShopSubStageStatus()), Boolean.FALSE);
|
||||||
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
||||||
if (CollectionUtils.isEmpty(list)){
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
||||||
Map<Long, List<DeskStageDTO>> deskStageMap = new HashMap<>();
|
Map<Long, List<DeskStageDTO>> deskStageMap = new HashMap<>();
|
||||||
List<ShopStageInfoDO> subStageList = shopStageInfoDAO.getSubStages(shopIds, ShopSubStageEnum.SHOP_STAGE_8.getShopSubStage());
|
List<ShopStageInfoDO> subStageList = shopStageInfoDAO.getSubStages(shopIds, ShopSubStageEnum.SHOP_STAGE_8.getShopSubStage());
|
||||||
doThing(deskStageMap, subStageList);
|
doThing(deskStageMap, subStageList);
|
||||||
for (PreparationCommonPendingVO vo :list){
|
for (PreparationCommonPendingVO vo : list) {
|
||||||
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
||||||
}
|
}
|
||||||
pageInfo.setList(list);
|
pageInfo.setList(list);
|
||||||
@@ -341,14 +340,14 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, null, ShopSubStageEnum.SHOP_STAGE_24,
|
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, null, ShopSubStageEnum.SHOP_STAGE_24,
|
||||||
Collections.singletonList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_240.getShopSubStageStatus()), Boolean.FALSE);
|
Collections.singletonList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_240.getShopSubStageStatus()), Boolean.FALSE);
|
||||||
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
||||||
if (CollectionUtils.isEmpty(list)){
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
||||||
Map<Long, List<DeskStageDTO>> deskStageMap = new HashMap<>();
|
Map<Long, List<DeskStageDTO>> deskStageMap = new HashMap<>();
|
||||||
List<ShopStageInfoDO> subStageList = shopStageInfoDAO.getSubStages(shopIds, ShopSubStageEnum.SHOP_STAGE_8.getShopSubStage());
|
List<ShopStageInfoDO> subStageList = shopStageInfoDAO.getSubStages(shopIds, ShopSubStageEnum.SHOP_STAGE_8.getShopSubStage());
|
||||||
doThing(deskStageMap, subStageList);
|
doThing(deskStageMap, subStageList);
|
||||||
for (PreparationCommonPendingVO vo :list){
|
for (PreparationCommonPendingVO vo : list) {
|
||||||
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
||||||
}
|
}
|
||||||
pageInfo.setList(list);
|
pageInfo.setList(list);
|
||||||
@@ -361,14 +360,14 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, null, ShopSubStageEnum.SHOP_STAGE_17,
|
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, null, ShopSubStageEnum.SHOP_STAGE_17,
|
||||||
Collections.singletonList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_170.getShopSubStageStatus()), Boolean.FALSE);
|
Collections.singletonList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_170.getShopSubStageStatus()), Boolean.FALSE);
|
||||||
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
||||||
if (CollectionUtils.isEmpty(list)){
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
||||||
Map<Long, List<DeskStageDTO>> deskStageMap = new HashMap<>();
|
Map<Long, List<DeskStageDTO>> deskStageMap = new HashMap<>();
|
||||||
List<ShopStageInfoDO> subStageList = shopStageInfoDAO.getSubStages(shopIds, ShopSubStageEnum.SHOP_STAGE_8.getShopSubStage());
|
List<ShopStageInfoDO> subStageList = shopStageInfoDAO.getSubStages(shopIds, ShopSubStageEnum.SHOP_STAGE_8.getShopSubStage());
|
||||||
doThing(deskStageMap, subStageList);
|
doThing(deskStageMap, subStageList);
|
||||||
for (PreparationCommonPendingVO vo :list){
|
for (PreparationCommonPendingVO vo : list) {
|
||||||
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
||||||
}
|
}
|
||||||
pageInfo.setList(list);
|
pageInfo.setList(list);
|
||||||
@@ -380,14 +379,14 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, user, ShopSubStageEnum.SHOP_STAGE_9,
|
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, user, ShopSubStageEnum.SHOP_STAGE_9,
|
||||||
Arrays.asList(SHOP_SUB_STAGE_STATUS_90.getShopSubStageStatus()), Boolean.TRUE);
|
Arrays.asList(SHOP_SUB_STAGE_STATUS_90.getShopSubStageStatus()), Boolean.TRUE);
|
||||||
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
||||||
if (CollectionUtils.isEmpty(list)){
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
||||||
Map<Long, List<DeskStageDTO>> deskStageMap = new HashMap<>();
|
Map<Long, List<DeskStageDTO>> deskStageMap = new HashMap<>();
|
||||||
List<ShopStageInfoDO> subStageList = shopStageInfoDAO.getSubStages(shopIds, ShopSubStageEnum.SHOP_STAGE_8.getShopSubStage());
|
List<ShopStageInfoDO> subStageList = shopStageInfoDAO.getSubStages(shopIds, ShopSubStageEnum.SHOP_STAGE_8.getShopSubStage());
|
||||||
doThing(deskStageMap, subStageList);
|
doThing(deskStageMap, subStageList);
|
||||||
for (PreparationCommonPendingVO vo :list){
|
for (PreparationCommonPendingVO vo : list) {
|
||||||
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
||||||
}
|
}
|
||||||
pageInfo.setList(list);
|
pageInfo.setList(list);
|
||||||
@@ -396,11 +395,11 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PageInfo<PreparationCommonPendingVO> constructionPendingList(Integer pageNum, Integer pageSize, LoginUserInfo user) {
|
public PageInfo<PreparationCommonPendingVO> constructionPendingList(Integer pageNum, Integer pageSize, LoginUserInfo user) {
|
||||||
PageInfo<PreparationCommonPendingVO> pageInfo =commonPendingVOPageInfo(pageNum, pageSize, user, ShopSubStageEnum.SHOP_STAGE_11,
|
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, user, ShopSubStageEnum.SHOP_STAGE_11,
|
||||||
Arrays.asList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_110.getShopSubStageStatus(),
|
Arrays.asList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_110.getShopSubStageStatus(),
|
||||||
ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_111.getShopSubStageStatus()), Boolean.TRUE);
|
ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_111.getShopSubStageStatus()), Boolean.TRUE);
|
||||||
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
||||||
if (CollectionUtils.isEmpty(list)){
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
||||||
@@ -424,7 +423,7 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
deskStageMap.put(decorationDesignInfoDO.getShopId(), deskStages);
|
deskStageMap.put(decorationDesignInfoDO.getShopId(), deskStages);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (PreparationCommonPendingVO vo :list){
|
for (PreparationCommonPendingVO vo : list) {
|
||||||
for (DeskStageDTO deskStageDTO : deskStageMap.get(vo.getShopId())) {
|
for (DeskStageDTO deskStageDTO : deskStageMap.get(vo.getShopId())) {
|
||||||
if (vo.getSubStageStatus().equals(deskStageDTO.getShopSubStageStatus())) {
|
if (vo.getSubStageStatus().equals(deskStageDTO.getShopSubStageStatus())) {
|
||||||
vo.setSubmitTime(deskStageDTO.getActualCompleteTime());
|
vo.setSubmitTime(deskStageDTO.getActualCompleteTime());
|
||||||
@@ -439,10 +438,10 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
@Override
|
@Override
|
||||||
public PageInfo<PreparationCommonPendingVO> fitmentPendingList(Integer pageNum, Integer pageSize, LoginUserInfo user) {
|
public PageInfo<PreparationCommonPendingVO> fitmentPendingList(Integer pageNum, Integer pageSize, LoginUserInfo user) {
|
||||||
|
|
||||||
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, user, ShopSubStageEnum.SHOP_STAGE_12,
|
PageInfo<PreparationCommonPendingVO> pageInfo = commonPendingVOPageInfo(pageNum, pageSize, user, ShopSubStageEnum.SHOP_STAGE_12,
|
||||||
Collections.singletonList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_122.getShopSubStageStatus()), Boolean.FALSE);
|
Collections.singletonList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_122.getShopSubStageStatus()), Boolean.FALSE);
|
||||||
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
List<PreparationCommonPendingVO> list = pageInfo.getList();
|
||||||
if (CollectionUtils.isEmpty(list)){
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
List<Long> shopIds = list.stream().map(PreparationCommonPendingVO::getShopId).collect(Collectors.toList());
|
||||||
@@ -454,7 +453,7 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
dto.setShopSubStageStatus(SHOP_SUB_STAGE_STATUS_122.getShopSubStageStatus());
|
dto.setShopSubStageStatus(SHOP_SUB_STAGE_STATUS_122.getShopSubStageStatus());
|
||||||
deskStageMap.put(acceptanceInfoDO.getShopId(), Collections.singletonList(dto));
|
deskStageMap.put(acceptanceInfoDO.getShopId(), Collections.singletonList(dto));
|
||||||
}
|
}
|
||||||
for (PreparationCommonPendingVO vo :list){
|
for (PreparationCommonPendingVO vo : list) {
|
||||||
for (DeskStageDTO deskStageDTO : deskStageMap.get(vo.getShopId())) {
|
for (DeskStageDTO deskStageDTO : deskStageMap.get(vo.getShopId())) {
|
||||||
if (vo.getSubStageStatus().equals(deskStageDTO.getShopSubStageStatus())) {
|
if (vo.getSubStageStatus().equals(deskStageDTO.getShopSubStageStatus())) {
|
||||||
vo.setSubmitTime(deskStageDTO.getActualCompleteTime());
|
vo.setSubmitTime(deskStageDTO.getActualCompleteTime());
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ import com.cool.store.utils.easyExcel.EasyExcelUtil;
|
|||||||
import com.cool.store.utils.poi.DateUtils;
|
import com.cool.store.utils.poi.DateUtils;
|
||||||
import com.cool.store.utils.poi.StringUtils;
|
import com.cool.store.utils.poi.StringUtils;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.JsonNode;
|
||||||
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
@@ -126,11 +128,15 @@ public class ExportRealizeServiceImpl implements ExportRealizeService {
|
|||||||
dto.setFirstYearStartTime(DateUtils.parseDateToStr(SPECIAL_DATE_START_1, franchiseFeeDTO.getFirstYearStartTime()));
|
dto.setFirstYearStartTime(DateUtils.parseDateToStr(SPECIAL_DATE_START_1, franchiseFeeDTO.getFirstYearStartTime()));
|
||||||
dto.setFirstYearEndTime(DateUtils.parseDateToStr(SPECIAL_DATE_START_1, franchiseFeeDTO.getFirstYearEndTime()));
|
dto.setFirstYearEndTime(DateUtils.parseDateToStr(SPECIAL_DATE_START_1, franchiseFeeDTO.getFirstYearEndTime()));
|
||||||
String total = (new BigInteger(franchiseFeeDTO.getPerformanceBond()).add(new BigInteger(franchiseFeeDTO.getFirstYearFee()))
|
String total = (new BigInteger(franchiseFeeDTO.getPerformanceBond()).add(new BigInteger(franchiseFeeDTO.getFirstYearFee()))
|
||||||
.add(new BigInteger(franchiseFeeDTO.getYearFranchiseFee())).add(new BigInteger(franchiseFeeDTO.getLoanMargin())).toString());
|
.add(new BigInteger(franchiseFeeDTO.getFirstYearManagementFee()))
|
||||||
|
.add(new BigInteger(franchiseFeeDTO.getYearFranchiseFee()))
|
||||||
|
.add(new BigInteger(franchiseFeeDTO.getLoanMargin())).toString());
|
||||||
dto.setTotalAmountContributions(total);
|
dto.setTotalAmountContributions(total);
|
||||||
dto.setFranchiseFeeBill(franchiseFeeDTO.getYearFranchiseFee());
|
dto.setFranchiseFeeBill(franchiseFeeDTO.getYearFranchiseFee());
|
||||||
dto.setLoanMargin(franchiseFeeDTO.getLoanMargin());
|
dto.setLoanMargin(franchiseFeeDTO.getLoanMargin());
|
||||||
dto.setPerformanceBondBill(franchiseFeeDTO.getPerformanceBond());
|
dto.setPerformanceBondBill(franchiseFeeDTO.getPerformanceBond());
|
||||||
|
dto.setFirstYearManagementFeeBill(franchiseFeeDTO.getFirstYearManagementFee());
|
||||||
|
dto.setFirstYearBrandingFeeBill(franchiseFeeDTO.getFirstYearFee());
|
||||||
}
|
}
|
||||||
dto.setUserName(response.getUsername());
|
dto.setUserName(response.getUsername());
|
||||||
dto.setMobile(response.getMobile());
|
dto.setMobile(response.getMobile());
|
||||||
|
|||||||
@@ -102,14 +102,30 @@ public class LineServiceImpl implements LineService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
List<ShopInfoDO> shopInfoDOS = shopInfoDAO.selectInvestmentByLines(Collections.singletonList(lineInfo.getId()));
|
List<ShopInfoDO> shopInfoDOS = shopInfoDAO.selectInvestmentByLines(Collections.singletonList(lineInfo.getId()));
|
||||||
Set<String> userIds = shopInfoDOS.stream().map(ShopInfoDO::getInvestmentManager).collect(Collectors.toSet());
|
Set<String> userIds = new HashSet<>();
|
||||||
userIds.add(lineInfo.getInvestmentManager());
|
//门店的招生和选址人远
|
||||||
|
Set<String> shopInvestmentMserIds = shopInfoDOS.stream().map(ShopInfoDO::getInvestmentManager).filter(StringUtils::isNotBlank).collect(Collectors.toSet());
|
||||||
|
Set<String> developmentMserIds = shopInfoDOS.stream().map(ShopInfoDO::getDevelopmentManager).filter(StringUtils::isNotBlank).collect(Collectors.toSet());
|
||||||
|
//把线索的招商,选址专员放一起
|
||||||
|
shopInvestmentMserIds.add(lineInfo.getInvestmentManager());
|
||||||
|
if (StringUtils.isNotBlank(lineInfo.getDevelopmentManager())){
|
||||||
|
developmentMserIds.add(lineInfo.getDevelopmentManager());
|
||||||
|
}
|
||||||
|
userIds.addAll(shopInvestmentMserIds);
|
||||||
|
userIds.addAll(developmentMserIds);
|
||||||
Map<String, String> userNameMap = enterpriseUserDAO.getUserNameMap(new ArrayList<>(userIds));
|
Map<String, String> userNameMap = enterpriseUserDAO.getUserNameMap(new ArrayList<>(userIds));
|
||||||
StringBuilder investmentManagerName = new StringBuilder();
|
StringBuilder investmentManagerName = new StringBuilder();
|
||||||
for (String userId : userNameMap.keySet()) {
|
for (String userId : shopInvestmentMserIds) {
|
||||||
investmentManagerName.append(userNameMap.get(userId)).append(",");
|
if (StringUtils.isBlank(userId)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (investmentManagerName.length() == 0) {
|
||||||
|
investmentManagerName.append(userNameMap.get(userId));
|
||||||
|
} else {
|
||||||
|
investmentManagerName.append(",").append(userNameMap.get(userId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
result.setInvestmentManagerName(investmentManagerName.toString().substring(0, investmentManagerName.length() - 1));
|
result.setInvestmentManagerName(investmentManagerName.toString());
|
||||||
// if (StringUtil.isNotEmpty(lineInfo.getInvestmentManager())){
|
// if (StringUtil.isNotEmpty(lineInfo.getInvestmentManager())){
|
||||||
// EnterpriseUserDO user = enterpriseUserDAO.getUserInfoById(lineInfo.getInvestmentManager());
|
// EnterpriseUserDO user = enterpriseUserDAO.getUserInfoById(lineInfo.getInvestmentManager());
|
||||||
// result.setInvestmentManagerName(user.getName());
|
// result.setInvestmentManagerName(user.getName());
|
||||||
@@ -140,6 +156,18 @@ public class LineServiceImpl implements LineService {
|
|||||||
result.setJoinType(qualificationsInfoDO.getJoinType());
|
result.setJoinType(qualificationsInfoDO.getJoinType());
|
||||||
}
|
}
|
||||||
BeanUtil.copyProperties(lineInfo, result);
|
BeanUtil.copyProperties(lineInfo, result);
|
||||||
|
StringBuilder developmentManagerName = new StringBuilder();
|
||||||
|
for (String userId : developmentMserIds) {
|
||||||
|
if (StringUtils.isBlank(userId)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (developmentManagerName.length() == 0) {
|
||||||
|
developmentManagerName.append(userNameMap.get(userId));
|
||||||
|
} else {
|
||||||
|
developmentManagerName.append(",").append(userNameMap.get(userId));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
result.setDevelopmentManager(developmentManagerName.toString());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -261,7 +289,10 @@ public class LineServiceImpl implements LineService {
|
|||||||
List<Long> lineIds = lineInfoDOS.stream().map(LineInfoDO::getId).collect(Collectors.toList());
|
List<Long> lineIds = lineInfoDOS.stream().map(LineInfoDO::getId).collect(Collectors.toList());
|
||||||
List<ShopInfoDO> shopInfoDOS = shopInfoDAO.selectInvestmentByLines(lineIds);
|
List<ShopInfoDO> shopInfoDOS = shopInfoDAO.selectInvestmentByLines(lineIds);
|
||||||
Map<Long, Set<String>> investmentManagerIdMapByLineId = shopInfoDOS.stream().collect(Collectors.groupingBy(ShopInfoDO::getLineId, Collectors.mapping(ShopInfoDO::getInvestmentManager, Collectors.toSet())));
|
Map<Long, Set<String>> investmentManagerIdMapByLineId = shopInfoDOS.stream().collect(Collectors.groupingBy(ShopInfoDO::getLineId, Collectors.mapping(ShopInfoDO::getInvestmentManager, Collectors.toSet())));
|
||||||
Set<String> investmentManagerIds = shopInfoDOS.stream().map(ShopInfoDO::getInvestmentManager).collect(Collectors.toSet());
|
Map<Long, Set<String>> developmentManagerMap = shopInfoDOS.stream().collect(Collectors.groupingBy(ShopInfoDO::getLineId, Collectors.mapping(ShopInfoDO::getDevelopmentManager, Collectors.toSet())));
|
||||||
|
|
||||||
|
Set<String> investmentManagerIds = shopInfoDOS.stream().filter(x -> StringUtils.isNotBlank(x.getInvestmentManager())).map(ShopInfoDO::getInvestmentManager).collect(Collectors.toSet());
|
||||||
|
Set<String> developmentManagerIds = shopInfoDOS.stream().filter(x -> StringUtils.isNotBlank(x.getDevelopmentManager())).map(ShopInfoDO::getDevelopmentManager).collect(Collectors.toSet());
|
||||||
Map<Long, HyPartnerLabelDO> userPortraitMap = deskService.getUserPortraitMap(lineInfoDOS);
|
Map<Long, HyPartnerLabelDO> userPortraitMap = deskService.getUserPortraitMap(lineInfoDOS);
|
||||||
List<Long> wantShopAreaIdList = lineInfoDOS.stream().filter(lineInfoDO -> lineInfoDO.getWantShopAreaId() != null).map(LineInfoDO::getWantShopAreaId).collect(Collectors.toList());
|
List<Long> wantShopAreaIdList = lineInfoDOS.stream().filter(lineInfoDO -> lineInfoDO.getWantShopAreaId() != null).map(LineInfoDO::getWantShopAreaId).collect(Collectors.toList());
|
||||||
Map<Long, String> wantShopAreaMap = hyOpenAreaInfoDAO.selectNameMapByIds(wantShopAreaIdList);
|
Map<Long, String> wantShopAreaMap = hyOpenAreaInfoDAO.selectNameMapByIds(wantShopAreaIdList);
|
||||||
@@ -272,6 +303,7 @@ public class LineServiceImpl implements LineService {
|
|||||||
userIds.addAll(lineInfoDOS.stream().filter(lineInfoDO -> lineInfoDO.getDevelopmentManager() != null).map(LineInfoDO::getDevelopmentManager).collect(Collectors.toList()));
|
userIds.addAll(lineInfoDOS.stream().filter(lineInfoDO -> lineInfoDO.getDevelopmentManager() != null).map(LineInfoDO::getDevelopmentManager).collect(Collectors.toList()));
|
||||||
userIds.addAll(lineInfoDOS.stream().filter(lineInfoDO -> lineInfoDO.getUpdateUserId() != null).map(LineInfoDO::getUpdateUserId).collect(Collectors.toList()));
|
userIds.addAll(lineInfoDOS.stream().filter(lineInfoDO -> lineInfoDO.getUpdateUserId() != null).map(LineInfoDO::getUpdateUserId).collect(Collectors.toList()));
|
||||||
userIds.addAll(investmentManagerIds);
|
userIds.addAll(investmentManagerIds);
|
||||||
|
userIds.addAll(developmentManagerIds);
|
||||||
Map<String, String> userNameMap = enterpriseUserDAO.getUserNameMap(new ArrayList<>(userIds));
|
Map<String, String> userNameMap = enterpriseUserDAO.getUserNameMap(new ArrayList<>(userIds));
|
||||||
|
|
||||||
List<SigningBaseInfoDO> signingBaseInfoDOS = intentAgreementMapper.selectByLineIds(lineIds);
|
List<SigningBaseInfoDO> signingBaseInfoDOS = intentAgreementMapper.selectByLineIds(lineIds);
|
||||||
@@ -294,16 +326,35 @@ public class LineServiceImpl implements LineService {
|
|||||||
Set<String> userIdSet = investmentManagerIdMapByLineId.getOrDefault(x.getId(), new HashSet<>());
|
Set<String> userIdSet = investmentManagerIdMapByLineId.getOrDefault(x.getId(), new HashSet<>());
|
||||||
userIdSet.add(x.getInvestmentManager());
|
userIdSet.add(x.getInvestmentManager());
|
||||||
for (String s : userIdSet) {
|
for (String s : userIdSet) {
|
||||||
investmentManagerUserName.append(userNameMap.get(s)).append(",");
|
if (investmentManagerUserName.length() == 0) {
|
||||||
|
investmentManagerUserName.append(userNameMap.get(s));
|
||||||
|
} else {
|
||||||
|
investmentManagerUserName.append(",").append(userNameMap.get(s));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
StringBuilder developmentManagerUserName = new StringBuilder();
|
||||||
|
Set<String> developmentManagerIdsSet = developmentManagerMap.getOrDefault(x.getId(), new HashSet<>());
|
||||||
|
if (StringUtils.isNotBlank(x.getDevelopmentManager())) {
|
||||||
|
developmentManagerIdsSet.add(x.getDevelopmentManager());
|
||||||
|
}
|
||||||
|
for (String s : developmentManagerIdsSet) {
|
||||||
|
if (StringUtils.isBlank(s)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (developmentManagerUserName.length() == 0) {
|
||||||
|
developmentManagerUserName.append(userNameMap.get(s));
|
||||||
|
} else {
|
||||||
|
developmentManagerUserName.append(",").append(userNameMap.get(s));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
partnerListVO.setUpdateTime(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, x.getUpdateTime()));
|
partnerListVO.setUpdateTime(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, x.getUpdateTime()));
|
||||||
partnerListVO.setLineSourceName(channelMapByIds.get(x.getLineSource()));
|
partnerListVO.setLineSourceName(channelMapByIds.get(x.getLineSource()));
|
||||||
partnerListVO.setJoinStatus(x.getJoinStatus());
|
partnerListVO.setJoinStatus(x.getJoinStatus());
|
||||||
partnerListVO.setJoinMode(x.getJoinMode());
|
partnerListVO.setJoinMode(x.getJoinMode());
|
||||||
partnerListVO.setPartnerNum(x.getPartnerNum());
|
partnerListVO.setPartnerNum(x.getPartnerNum());
|
||||||
partnerListVO.setInvestmentManagerUserName(investmentManagerUserName.toString().substring(0, investmentManagerUserName.length() - 1));
|
partnerListVO.setInvestmentManagerUserName(investmentManagerUserName.toString());
|
||||||
partnerListVO.setUpdateUserName(userNameMap.get(x.getUpdateUserId()));
|
partnerListVO.setUpdateUserName(userNameMap.get(x.getUpdateUserId()));
|
||||||
partnerListVO.setDevelopmentManagerUserName(userNameMap.get(x.getDevelopmentManager()));
|
partnerListVO.setDevelopmentManagerUserName(developmentManagerUserName.toString());
|
||||||
partnerListVO.setWantShopNum(x.getWantShopNum());
|
partnerListVO.setWantShopNum(x.getWantShopNum());
|
||||||
result.add(partnerListVO);
|
result.add(partnerListVO);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -246,6 +246,7 @@ public class PointServiceImpl implements PointService {
|
|||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public Integer submitAudit(SubmitPointAuditRequest request) {
|
public Integer submitAudit(SubmitPointAuditRequest request) {
|
||||||
|
|
||||||
Long pointId = request.getPointId();
|
Long pointId = request.getPointId();
|
||||||
PointInfoDO pointInfo = pointInfoDAO.getPointInfoById(pointId);
|
PointInfoDO pointInfo = pointInfoDAO.getPointInfoById(pointId);
|
||||||
if(Objects.isNull(pointInfo)){
|
if(Objects.isNull(pointInfo)){
|
||||||
@@ -257,6 +258,15 @@ public class PointServiceImpl implements PointService {
|
|||||||
log.error("铺位详细信息不存在");
|
log.error("铺位详细信息不存在");
|
||||||
throw new ServiceException(ErrorCodeEnum.POINT_NOT_EXIST);
|
throw new ServiceException(ErrorCodeEnum.POINT_NOT_EXIST);
|
||||||
}
|
}
|
||||||
|
//处理子任务审核记录表
|
||||||
|
AuditSettingVO auditSetting = getAuditSetting();
|
||||||
|
if(Objects.isNull(auditSetting)){
|
||||||
|
throw new ServiceException(ErrorCodeEnum.POINT_AUDIT_NOT_SETTING);
|
||||||
|
}
|
||||||
|
List<AuditNodeDTO> auditNode = dealAuditNode(auditSetting, pointInfo.getRegionId(), pointInfo.getDevelopmentManager());
|
||||||
|
if(auditNode.size()==CommonConstants.ONE){
|
||||||
|
throw new ServiceException(ErrorCodeEnum.CONFIRM_THE_APPROVER);
|
||||||
|
}
|
||||||
int submitAuditCount = pointInfo.getSubmitAuditCount() + 1;
|
int submitAuditCount = pointInfo.getSubmitAuditCount() + 1;
|
||||||
PointInfoDO updatePoint = new PointInfoDO();
|
PointInfoDO updatePoint = new PointInfoDO();
|
||||||
updatePoint.setId(pointId);
|
updatePoint.setId(pointId);
|
||||||
@@ -267,12 +277,6 @@ public class PointServiceImpl implements PointService {
|
|||||||
updatePointDetail.setDevelopmentManagerSign(request.getDevelopmentManagerSign());
|
updatePointDetail.setDevelopmentManagerSign(request.getDevelopmentManagerSign());
|
||||||
updatePointDetail.setDevelopmentManagerSignTime(new Date());
|
updatePointDetail.setDevelopmentManagerSignTime(new Date());
|
||||||
pointDetailInfoDAO.updatePointDetailInfo(updatePointDetail);
|
pointDetailInfoDAO.updatePointDetailInfo(updatePointDetail);
|
||||||
//处理子任务审核记录表
|
|
||||||
AuditSettingVO auditSetting = getAuditSetting();
|
|
||||||
if(Objects.isNull(auditSetting)){
|
|
||||||
throw new ServiceException(ErrorCodeEnum.POINT_AUDIT_NOT_SETTING);
|
|
||||||
}
|
|
||||||
List<AuditNodeDTO> auditNode = dealAuditNode(auditSetting, pointInfo.getRegionId(), pointInfo.getDevelopmentManager());
|
|
||||||
//获取审批节点上的数据
|
//获取审批节点上的数据
|
||||||
List<PointAuditRecordDO> recordList = AuditNodeDTO.convertDO(pointId, submitAuditCount, auditNode);
|
List<PointAuditRecordDO> recordList = AuditNodeDTO.convertDO(pointId, submitAuditCount, auditNode);
|
||||||
pointAuditRecordDAO.addPointAuditRecord(recordList);
|
pointAuditRecordDAO.addPointAuditRecord(recordList);
|
||||||
@@ -823,10 +827,11 @@ public class PointServiceImpl implements PointService {
|
|||||||
}
|
}
|
||||||
PointDetailInfoDO pointDetailInfo = MiniAddPointRequest.convertDO(request);
|
PointDetailInfoDO pointDetailInfo = MiniAddPointRequest.convertDO(request);
|
||||||
PointInfoDO pointInfo = MiniAddPointRequest.convertPointDO(request);
|
PointInfoDO pointInfo = MiniAddPointRequest.convertPointDO(request);
|
||||||
pointInfo.setRegionId(lineInfo.getRegionId());
|
pointInfo.setRegionId(shopInfo.getRegionId());
|
||||||
pointInfo.setLineId(lineId);
|
pointInfo.setLineId(lineId);
|
||||||
|
pointInfo.setShopId(shopInfo.getId());
|
||||||
pointInfo.setSelectStatus(SelectStatusEnum.SELECT_STATUS_1.getCode());
|
pointInfo.setSelectStatus(SelectStatusEnum.SELECT_STATUS_1.getCode());
|
||||||
pointInfo.setDevelopmentManager(lineInfo.getDevelopmentManager());
|
pointInfo.setDevelopmentManager(shopInfo.getDevelopmentManager());
|
||||||
pointInfo.setDevelopmentTime(new Date());
|
pointInfo.setDevelopmentTime(new Date());
|
||||||
pointInfo.setPointSource(PointSourceEnum.POINT_SOURCE_2.getCode());
|
pointInfo.setPointSource(PointSourceEnum.POINT_SOURCE_2.getCode());
|
||||||
pointInfo.setPointCode(generateCode());
|
pointInfo.setPointCode(generateCode());
|
||||||
@@ -839,7 +844,7 @@ public class PointServiceImpl implements PointService {
|
|||||||
PointRecommendDO pointRecommendDO = new PointRecommendDO();
|
PointRecommendDO pointRecommendDO = new PointRecommendDO();
|
||||||
pointRecommendDO.setLineId(lineId);
|
pointRecommendDO.setLineId(lineId);
|
||||||
pointRecommendDO.setShopId(request.getShopId());
|
pointRecommendDO.setShopId(request.getShopId());
|
||||||
pointRecommendDO.setDevelopmentManager(lineInfo.getDevelopmentManager());
|
pointRecommendDO.setDevelopmentManager(shopInfo.getDevelopmentManager());
|
||||||
pointRecommendDO.setPointId(pointId);
|
pointRecommendDO.setPointId(pointId);
|
||||||
pointRecommendDO.setStatus(PointRecommendStatusEnum.POINT_RECOMMEND_STATUS_2.getCode());
|
pointRecommendDO.setStatus(PointRecommendStatusEnum.POINT_RECOMMEND_STATUS_2.getCode());
|
||||||
//推荐列表新增
|
//推荐列表新增
|
||||||
@@ -930,9 +935,10 @@ public class PointServiceImpl implements PointService {
|
|||||||
throw new ServiceException(ErrorCodeEnum.SHOP_STAGE_NOT_OPERATE);
|
throw new ServiceException(ErrorCodeEnum.SHOP_STAGE_NOT_OPERATE);
|
||||||
}
|
}
|
||||||
LineInfoDO lineInfo = lineInfoDAO.getLineInfo(shopInfo.getLineId());
|
LineInfoDO lineInfo = lineInfoDAO.getLineInfo(shopInfo.getLineId());
|
||||||
if(!request.getOperateUserId().equals(lineInfo.getDevelopmentManager())){
|
//正新放开限制
|
||||||
throw new ServiceException(ErrorCodeEnum.NO_PERMISSION);
|
// if(!request.getOperateUserId().equals(lineInfo.getDevelopmentManager())){
|
||||||
}
|
// throw new ServiceException(ErrorCodeEnum.NO_PERMISSION);
|
||||||
|
// }
|
||||||
Long auditId = shopAuditInfoDAO.addAuditInfo(AuditRentContractRequest.convert(request, AuditTypeEnum.UPLOAD_RENT_CONTRACT));
|
Long auditId = shopAuditInfoDAO.addAuditInfo(AuditRentContractRequest.convert(request, AuditTypeEnum.UPLOAD_RENT_CONTRACT));
|
||||||
|
|
||||||
ShopSubStageStatusEnum subStageStatus = AuditResultTypeEnum.PASS.getCode().equals(request.getResultType()) ? ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_23 : ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_22;
|
ShopSubStageStatusEnum subStageStatus = AuditResultTypeEnum.PASS.getCode().equals(request.getResultType()) ? ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_23 : ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_22;
|
||||||
@@ -1107,6 +1113,7 @@ public class PointServiceImpl implements PointService {
|
|||||||
Map<String, List<String>> userIdsMap = userAuthMappingService.getUserIdByRoleIdAndRegionId(roleIds, regionId);
|
Map<String, List<String>> userIdsMap = userAuthMappingService.getUserIdByRoleIdAndRegionId(roleIds, regionId);
|
||||||
List<String> firstApprovalUserIds = getUserIdsByPositionIds(firstApproval, userIdsMap);
|
List<String> firstApprovalUserIds = getUserIdsByPositionIds(firstApproval, userIdsMap);
|
||||||
resultList.add(new AuditNodeDTO(NodeNoEnum.NODE_NO_0.getCode(), PointAuditRecordDO.SUBMIT_TASK, Boolean.FALSE, Arrays.asList(developmentManager)));
|
resultList.add(new AuditNodeDTO(NodeNoEnum.NODE_NO_0.getCode(), PointAuditRecordDO.SUBMIT_TASK, Boolean.FALSE, Arrays.asList(developmentManager)));
|
||||||
|
//todo 缺少兜底人
|
||||||
if(CollectionUtils.isNotEmpty(firstApprovalUserIds)){
|
if(CollectionUtils.isNotEmpty(firstApprovalUserIds)){
|
||||||
resultList.add(new AuditNodeDTO(NodeNoEnum.NODE_NO_1.getCode(), PointAuditRecordDO.RECEIVE_TASK, Boolean.TRUE, firstApprovalUserIds));
|
resultList.add(new AuditNodeDTO(NodeNoEnum.NODE_NO_1.getCode(), PointAuditRecordDO.RECEIVE_TASK, Boolean.TRUE, firstApprovalUserIds));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user