|
|
@@ -12,11 +12,11 @@ import com.xjrsoft.module.student.dto.PbVXsxxsfytbPageDto;
|
|
|
import com.xjrsoft.module.student.dto.PersonalPortraitFeeInformationDto;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudent;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentSchoolRoll;
|
|
|
-import com.xjrsoft.module.student.entity.BaseStudentUser;
|
|
|
import com.xjrsoft.module.student.entity.PbSemesterConfig;
|
|
|
import com.xjrsoft.module.student.entity.PbVXsxxsfytb;
|
|
|
import com.xjrsoft.module.student.mapper.PbVXsxxsfytbMapper;
|
|
|
import com.xjrsoft.module.student.service.IPbVXsxxsfytbService;
|
|
|
+import com.xjrsoft.module.student.vo.BaseClassQfCountVo;
|
|
|
import com.xjrsoft.module.student.vo.PbVXsxxsfytbExcelVo;
|
|
|
import com.xjrsoft.module.student.vo.PbVXsxxsfytbPageVo;
|
|
|
import com.xjrsoft.module.student.vo.PbVXsxxsfytbPersonal;
|
|
|
@@ -29,7 +29,6 @@ import org.springframework.stereotype.Service;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
-import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.stream.Collectors;
|
|
|
@@ -44,6 +43,8 @@ import java.util.stream.Collectors;
|
|
|
@AllArgsConstructor
|
|
|
public class PbVXsxxsfytbServiceImpl extends MPJBaseServiceImpl<PbVXsxxsfytbMapper, PbVXsxxsfytb> implements IPbVXsxxsfytbService {
|
|
|
|
|
|
+ private final PbVXsxxsfytbMapper pbVXsxxsfytbMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public PersonalPortraitFeeInformationVo listCostInformation(PersonalPortraitFeeInformationDto dto) {
|
|
|
|
|
|
@@ -122,6 +123,7 @@ public class PbVXsxxsfytbServiceImpl extends MPJBaseServiceImpl<PbVXsxxsfytbMapp
|
|
|
.eq(dto.getStudentId() != null && !dto.getStudentId().equals(""), BaseStudent::getStudentId, dto.getStudentId())
|
|
|
.in(dto.getClassIdList() != null && !dto.getClassIdList().isEmpty(), BaseStudentSchoolRoll::getClassId, dto.getClassIdList())
|
|
|
.eq(dto.getSemesterId() != null && dto.getSemesterId() > 0, PbSemesterConfig::getBaseSemesterId, dto.getSemesterId())
|
|
|
+ .like(dto.getJfzt() != null && !"".equals(dto.getJfzt()), PbVXsxxsfytb::getJfzt, dto.getJfzt())
|
|
|
.leftJoin(XjrUser.class, XjrUser::getCredentialNumber, PbVXsxxsfytb::getPersonalid)
|
|
|
.leftJoin(BaseStudentSchoolRoll.class, BaseStudentSchoolRoll::getUserId, XjrUser::getId)
|
|
|
.leftJoin(BaseStudent.class, BaseStudent::getUserId, XjrUser::getId)
|
|
|
@@ -154,7 +156,21 @@ public class PbVXsxxsfytbServiceImpl extends MPJBaseServiceImpl<PbVXsxxsfytbMapp
|
|
|
.selectAs(BaseSemester::getName, PbVXsxxsfytbExcelVo::getBaseSemesterCn)
|
|
|
.select(PbVXsxxsfytb.class, x -> VoToColumnUtil.fieldsToColumns(PbVXsxxsfytbExcelVo.class).contains(x.getProperty()))
|
|
|
;
|
|
|
+ List<PbVXsxxsfytbExcelVo> list = this.selectJoinList(PbVXsxxsfytbExcelVo.class, pbVXsxxsfytbMPJLambdaWrapper);
|
|
|
+ for (PbVXsxxsfytbExcelVo pbVXsxxsfytbExcelVo : list) {
|
|
|
+ if(pbVXsxxsfytbExcelVo.getQfje().compareTo(BigDecimal.ZERO) > 0){//正数
|
|
|
+ pbVXsxxsfytbExcelVo.setQfje(pbVXsxxsfytbExcelVo.getQfje().abs());
|
|
|
+ pbVXsxxsfytbExcelVo.setKtje(BigDecimal.ZERO);
|
|
|
+ }else if(pbVXsxxsfytbExcelVo.getQfje().compareTo(BigDecimal.ZERO) < 0){
|
|
|
+ pbVXsxxsfytbExcelVo.setKtje(pbVXsxxsfytbExcelVo.getQfje().abs());
|
|
|
+ pbVXsxxsfytbExcelVo.setQfje(BigDecimal.ZERO);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return list;
|
|
|
+ }
|
|
|
|
|
|
- return this.selectJoinList(PbVXsxxsfytbExcelVo.class, pbVXsxxsfytbMPJLambdaWrapper);
|
|
|
+ @Override
|
|
|
+ public List<BaseClassQfCountVo> getClassQfCount() {
|
|
|
+ return pbVXsxxsfytbMapper.getClassQfCount();
|
|
|
}
|
|
|
}
|