Merge remote-tracking branch 'origin/dev/feat/partner1.6_20231226' into dev/feat/partner1.6_20231226

This commit is contained in:
feng.li
2023-12-27 14:28:33 +08:00
4 changed files with 11 additions and 4 deletions

View File

@@ -91,7 +91,7 @@ public class HyExhibitionDAO {
}
public Map<String,ExhibitionStatisticsDTO> exhibitionStatisticsMap(List<Integer> list) {
public Map<Integer,ExhibitionStatisticsDTO> exhibitionStatisticsMap(List<Integer> list) {
if (CollectionUtils.isEmpty(list)) {
return new HashMap<>(4);
}

View File

@@ -116,7 +116,7 @@
</if>
</if>
<if test="partnerUserId != null and partnerUserId!=''">
and hpui.user_id = #{partnerUserId,jdbcType=VARCHAR}
and hpui.partner_id = #{partnerUserId,jdbcType=VARCHAR}
</if>
</where>
<if test="participationStatus == null">

View File

@@ -13,7 +13,7 @@ public class ExhibitionStatisticsDTO {
/**
* 展会code
*/
private String exhibitionId;
private Integer exhibitionId;
/**
* 报名人数

View File

@@ -86,6 +86,8 @@ public class ExhibitionServiceImpl implements ExhibitionService {
@Resource
HyPartnerIntentInfoDAO hyPartnerIntentInfoDAO;
@Resource
HyPartnerBaseInfoDAO hyPartnerBaseInfoDAO;
@Resource
HyPartnerUserInfoDAO hyPartnerUserInfoDAO;
@@ -275,7 +277,7 @@ public class ExhibitionServiceImpl implements ExhibitionService {
.collect(Collectors.toMap(EnterpriseUserDO::getUserId,
u -> new CollaboratorVO(u.getUserId(), u.getName())));
Map<String, ExhibitionStatisticsDTO> StatisticsMap = hyExhibitionDAO.exhibitionStatisticsMap(codeList);
Map<Integer, ExhibitionStatisticsDTO> StatisticsMap = hyExhibitionDAO.exhibitionStatisticsMap(codeList);
exhibitionList.forEach(x->{
MyExhibitionVO myExhibitionVO = new MyExhibitionVO();
@@ -554,6 +556,10 @@ public class ExhibitionServiceImpl implements ExhibitionService {
.setCreateUserId(CurrentUserHolder.getUserId()).setCreateUserMobile(CurrentUserHolder.getUser().getMobile())
.setOperatorType("add").setAllotTime(new Date()).setLineStatus(LineStatusEnum.PRIVATE_SEAS.getCode()).setInvestmentManager(hyExhibitionDO.getCreator());
hyPartnerLineInfoDAO.insertSelective(resultLine);
HyPartnerBaseInfoDO resultBase = new HyPartnerBaseInfoDO();
resultBase.setPartnerId(partnerId).setPartnerLineId(resultLine.getId()).setStatus(Integer.valueOf(WorkflowStatusEnum.INTENT_0.getCode())).
setCreateTime(new Date()).setUsername(signUpExhibitionDTO.getPartnerName()).setMobile(signUpExhibitionDTO.getMobile());
hyPartnerBaseInfoDAO.insertSelective(resultBase);
lineId = resultLine.getId();
}
//如果是公海状态 但是结束时间不为空
@@ -667,6 +673,7 @@ public class ExhibitionServiceImpl implements ExhibitionService {
throw new ServiceException(ErrorCodeEnum.EXHIBITION_NOT_EXIST);
}
hyExhibitionDO.setClosedType(CommonConstants.TWO);
hyExhibitionDO.setCloseTime(new Date());
hyExhibitionDO.setUpdater(userInfo.getUserId());
//更新展会结束状态
hyExhibitionDAO.updateByPrimaryKeySelective(hyExhibitionDO);