提交意向申请后刷新线索会销状态
This commit is contained in:
@@ -156,4 +156,11 @@ public class HyPartnerExhibitionDAO {
|
|||||||
}
|
}
|
||||||
return hyPartnerExhibitionMapper.getLineByExhibitionIds(exhibitionIds);
|
return hyPartnerExhibitionMapper.getLineByExhibitionIds(exhibitionIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void updateStatusAfterSubmitIndustry(Long partnerLineId) {
|
||||||
|
if (partnerLineId == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
hyPartnerExhibitionMapper.updateStatusAfterSubmitIndustry(partnerLineId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,11 +3,10 @@ package com.cool.store.dao;
|
|||||||
import com.cool.store.dto.partner.PartnerIntentApplyInfoDTO;
|
import com.cool.store.dto.partner.PartnerIntentApplyInfoDTO;
|
||||||
import com.cool.store.entity.HyPartnerIntentInfoDO;
|
import com.cool.store.entity.HyPartnerIntentInfoDO;
|
||||||
import com.cool.store.mapper.HyPartnerIntentInfoMapper;
|
import com.cool.store.mapper.HyPartnerIntentInfoMapper;
|
||||||
import com.github.pagehelper.PageInfo;
|
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -26,7 +25,13 @@ public class HyPartnerIntentInfoDAO {
|
|||||||
@Resource
|
@Resource
|
||||||
HyPartnerIntentInfoMapper hyPartnerIntentInfoMapper;
|
HyPartnerIntentInfoMapper hyPartnerIntentInfoMapper;
|
||||||
|
|
||||||
public int insertSelective( HyPartnerIntentInfoDO record){
|
@Autowired
|
||||||
|
HyPartnerExhibitionDAO hyPartnerExhibitionDAO;
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
public int insertSelective( HyPartnerIntentInfoDO record){
|
||||||
|
//增加修改线索会销状态
|
||||||
|
hyPartnerExhibitionDAO.updateStatusAfterSubmitIndustry(record.getPartnerLineId());
|
||||||
return hyPartnerIntentInfoMapper.insertSelective(record);
|
return hyPartnerIntentInfoMapper.insertSelective(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,4 +116,10 @@ public interface HyPartnerExhibitionMapper {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<ExhibitionLineDTO> getLineByExhibitionIds(List<Integer> exhibitionIds);
|
List<ExhibitionLineDTO> getLineByExhibitionIds(List<Integer> exhibitionIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 在线索提交意向申请后刷线线索报名会销的状态
|
||||||
|
* @param partnerLineId
|
||||||
|
*/
|
||||||
|
int updateStatusAfterSubmitIndustry(@Param("partnerLineId") Long partnerLineId);
|
||||||
}
|
}
|
||||||
@@ -499,4 +499,17 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
)
|
)
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<update id="updateStatusAfterSubmitIndustry">
|
||||||
|
UPDATE hy_partner_exhibition t1
|
||||||
|
INNER JOIN hy_exhibition t2 ON t1.exhibition_id = t2.id
|
||||||
|
SET t1.participation_status = 3
|
||||||
|
WHERE t1.deleted = 0
|
||||||
|
AND t2.deleted = 0
|
||||||
|
AND t2.closed_type = 0
|
||||||
|
AND partner_line_id = #{partnerLineId}
|
||||||
|
AND participation_status = 1
|
||||||
|
</update>
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user