|
@@ -1,17 +1,18 @@
|
|
|
package com.miaxis.newgzpt.service.impl;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.miaxis.common.annotation.DataSource;
|
|
|
import com.miaxis.common.enums.DataSourceTypeEnum;
|
|
|
+import com.miaxis.common.utils.StringUtils;
|
|
|
import com.miaxis.newgzpt.domain.GzptSchActivation;
|
|
|
-import com.miaxis.newgzpt.domain.GzptSchPayLog;
|
|
|
+import com.miaxis.newgzpt.dto.GzptSchActivationDTO;
|
|
|
import com.miaxis.newgzpt.mapper.GzptSchActivationMapper;
|
|
|
-import com.miaxis.newgzpt.mapper.GzptSchPayLogMapper;
|
|
|
import com.miaxis.newgzpt.service.IGzptSchActivationService;
|
|
|
-import com.miaxis.newgzpt.service.IGzptSchPayLogService;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.List;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -57,4 +58,20 @@ public class GzptSchActivationServiceImpl extends ServiceImpl<GzptSchActivationM
|
|
|
@Override
|
|
|
public void upDelSchActivationByStuId(Long stuId) { mapper.upDelSchActivationByStuId(stuId); }
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<GzptSchActivation> selectSchActivationList(GzptSchActivationDTO gzptSchActivationDTO) {
|
|
|
+ QueryWrapper<GzptSchActivation> queryWrapper = new QueryWrapper<GzptSchActivation>();
|
|
|
+ if (!StringUtils.isEmpty(gzptSchActivationDTO.getJxmc())){;
|
|
|
+ queryWrapper.like("JXMC",gzptSchActivationDTO.getJxmc());
|
|
|
+ }
|
|
|
+ if (gzptSchActivationDTO.getUserId()!=null){;
|
|
|
+ queryWrapper.eq("USER_ID",gzptSchActivationDTO.getUserId());
|
|
|
+ }
|
|
|
+ if (gzptSchActivationDTO.getIsDel()!=null){;
|
|
|
+ queryWrapper.like("IS_DEL",gzptSchActivationDTO.getIsDel());
|
|
|
+ }
|
|
|
+ List<GzptSchActivation> list = this.list(queryWrapper);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
}
|