|
@@ -1696,10 +1696,8 @@ public class LibVipServiceServiceImpl extends BaseServiceImpl<LibVipService, Str
|
|
|
public void insertLibServiceByType(String vipId, String libId, Date endDate, int signType) {
|
|
|
if (signType > 0) {
|
|
|
//新套餐,需要给校区服务和批改服务两个,结束时间保持一致
|
|
|
- if (endDate == null) {
|
|
|
- //查询这个馆下有没有有效的服务
|
|
|
- endDate = this.getEndDate(vipId, libId);
|
|
|
- }
|
|
|
+ //查询这个馆下有没有有效的服务
|
|
|
+ endDate = this.getEndDate(vipId, libId);
|
|
|
this.insertLibCorrectService(vipId, libId, endDate);
|
|
|
this.insertLibService(vipId, libId, endDate);
|
|
|
} else {
|
|
@@ -1712,16 +1710,14 @@ public class LibVipServiceServiceImpl extends BaseServiceImpl<LibVipService, Str
|
|
|
public void insertLibCorrectServiceByType(String vipId, String libId, Date endDate, int signType) {
|
|
|
if (signType > 0) {
|
|
|
//新套餐,给的这个服务需要和校区服务保持一致的结束时间
|
|
|
- if (endDate == null) {
|
|
|
- //查询这个馆下有没有有效的服务
|
|
|
- endDate = this.getEndDate(vipId, libId);
|
|
|
- }
|
|
|
+ //查询这个馆下有没有有效的服务
|
|
|
+ endDate = this.getEndDate(vipId, libId);
|
|
|
this.insertLibCorrectService(vipId, libId, endDate);
|
|
|
} else {
|
|
|
//老套餐,直接给永久服务
|
|
|
this.insertLibCorrectService(vipId, libId, DateUtil.parse_yyyyMMdd("9999-01-01"));
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 获取馆服务的结束时间
|
|
@@ -1813,8 +1809,8 @@ public class LibVipServiceServiceImpl extends BaseServiceImpl<LibVipService, Str
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public void openApiServiceCRM(Integer type,String libId,Integer num,String endTime) {
|
|
|
- RequestOpenApiUtils.openApiServiceCRM(type, libId, num, endTime);
|
|
|
+ public void openApiServiceCRM(Integer type,String libId,Integer signType,Integer num,String endTime) {
|
|
|
+ RequestOpenApiUtils.openApiServiceCRM(type, libId,signType, num, endTime);
|
|
|
}
|
|
|
|
|
|
|