|
@@ -1698,16 +1698,26 @@ public class LibVipServiceServiceImpl extends BaseServiceImpl<LibVipService, Str
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public void insertLibServiceByType(String vipId, String libId, Date endDate, int signType) {
|
|
|
+ public void insertLibServiceByType(String vipId, String libId, Date endDate, int signType,int correctType) {
|
|
|
if (signType > 0) {
|
|
|
//新套餐,需要给校区服务和批改服务两个,结束时间保持一致
|
|
|
//查询这个馆下有没有有效的服务
|
|
|
endDate = this.getEndDate(vipId, libId);
|
|
|
- //2021-02-07 深圳吴老师学校商户只给平台批改服务
|
|
|
- Merchant merchant = merchantService.getMerchantByLibId(libId);
|
|
|
- if(Objects.nonNull(merchant) && merchant.getPosType()==3){
|
|
|
+ //如果导入excel批改服务类型未指定 则按以前流程
|
|
|
+ if(correctType == 0){
|
|
|
+ //2021-02-07 深圳吴老师学校商户只给平台批改服务
|
|
|
+ Merchant merchant = merchantService.getMerchantByLibId(libId);
|
|
|
+ if(Objects.nonNull(merchant) && merchant.getPosType()==3){
|
|
|
+ this.insertCorrectServiceByLibIdAndType(vipId,libId,endDate);
|
|
|
+ }else{
|
|
|
+ this.insertLibCorrectService(vipId, libId, endDate);
|
|
|
+ this.insertLibService(vipId, libId, endDate);
|
|
|
+ }
|
|
|
+ }else if(correctType == 1){
|
|
|
+ //平台批改服务
|
|
|
this.insertCorrectServiceByLibIdAndType(vipId,libId,endDate);
|
|
|
}else{
|
|
|
+ //2校区批改
|
|
|
this.insertLibCorrectService(vipId, libId, endDate);
|
|
|
this.insertLibService(vipId, libId, endDate);
|
|
|
}
|