|
@@ -24,8 +24,6 @@ import com.xjrsoft.module.textbook.dto.TeacherCheckStuClaimDto;
|
|
|
import com.xjrsoft.module.textbook.dto.TextbookClaimStudentConfirmDto;
|
|
import com.xjrsoft.module.textbook.dto.TextbookClaimStudentConfirmDto;
|
|
|
import com.xjrsoft.module.textbook.entity.Textbook;
|
|
import com.xjrsoft.module.textbook.entity.Textbook;
|
|
|
import com.xjrsoft.module.textbook.entity.TextbookStudentClaim;
|
|
import com.xjrsoft.module.textbook.entity.TextbookStudentClaim;
|
|
|
-import com.xjrsoft.module.textbook.entity.WfTextbookClaim;
|
|
|
|
|
-import com.xjrsoft.module.textbook.entity.WfTextbookClaimItem;
|
|
|
|
|
import com.xjrsoft.module.textbook.mapper.TextbookStudentClaimMapper;
|
|
import com.xjrsoft.module.textbook.mapper.TextbookStudentClaimMapper;
|
|
|
import com.xjrsoft.module.textbook.mapper.WfTextbookClaimItemMapper;
|
|
import com.xjrsoft.module.textbook.mapper.WfTextbookClaimItemMapper;
|
|
|
import com.xjrsoft.module.textbook.mapper.WfTextbookClaimMapper;
|
|
import com.xjrsoft.module.textbook.mapper.WfTextbookClaimMapper;
|
|
@@ -126,26 +124,26 @@ public class TextbookStudentClaimServiceImpl extends MPJBaseServiceImpl<Textbook
|
|
|
IPage<TeacherCheckByclassVo> teacherCheckByclassVoList = textbookStudentClaimMapper.getTeacherCheckByclassList(ConventPage.getPage(dto), dto);
|
|
IPage<TeacherCheckByclassVo> teacherCheckByclassVoList = textbookStudentClaimMapper.getTeacherCheckByclassList(ConventPage.getPage(dto), dto);
|
|
|
|
|
|
|
|
//为每本书添加数据
|
|
//为每本书添加数据
|
|
|
- for (TeacherCheckByclassVo t : teacherCheckByclassVoList.getRecords()) {
|
|
|
|
|
- MPJLambdaWrapper<WfTextbookClaim> qweryActualReceivedNum = new MPJLambdaWrapper<>();
|
|
|
|
|
- qweryActualReceivedNum
|
|
|
|
|
- .disableSubLogicDel()
|
|
|
|
|
- .selectSum(WfTextbookClaimItem::getIssueNumber, TeacherCheckByclassVo::getActualReceivedNum)
|
|
|
|
|
- .leftJoin(WfTextbookClaimItem.class, WfTextbookClaimItem::getWfTextbookClaimId, WfTextbookClaim::getId)
|
|
|
|
|
- .eq(WfTextbookClaim::getClassId, t.getClassId())
|
|
|
|
|
- .eq(WfTextbookClaimItem::getTextbookId, t.getTextbookId());
|
|
|
|
|
- TeacherCheckByclassVo teacherCheckByclassVo = wfTextbookClaimMapper.selectJoinOne(TeacherCheckByclassVo.class, qweryActualReceivedNum);
|
|
|
|
|
-
|
|
|
|
|
- t.setActualReceivedNum(teacherCheckByclassVo.getActualReceivedNum());
|
|
|
|
|
-
|
|
|
|
|
- LambdaQueryWrapper<TextbookStudentClaim> queryActualClaimNum = new LambdaQueryWrapper<>();
|
|
|
|
|
- queryActualClaimNum
|
|
|
|
|
- .eq(TextbookStudentClaim::getClassId, t.getClassId())
|
|
|
|
|
- .eq(TextbookStudentClaim::getTextbookId, t.getTextbookId())
|
|
|
|
|
- .eq(TextbookStudentClaim::getIsClaim, 1);
|
|
|
|
|
- Long actualClaimNum = this.count(queryActualClaimNum);
|
|
|
|
|
- t.setActualClaimNum(actualClaimNum);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// for (TeacherCheckByclassVo t : teacherCheckByclassVoList.getRecords()) {
|
|
|
|
|
+// MPJLambdaWrapper<WfTextbookClaim> qweryActualReceivedNum = new MPJLambdaWrapper<>();
|
|
|
|
|
+// qweryActualReceivedNum
|
|
|
|
|
+// .disableSubLogicDel()
|
|
|
|
|
+// .selectSum(WfTextbookClaimItem::getIssueNumber, TeacherCheckByclassVo::getActualReceivedNum)
|
|
|
|
|
+// .leftJoin(WfTextbookClaimItem.class, WfTextbookClaimItem::getWfTextbookClaimId, WfTextbookClaim::getId)
|
|
|
|
|
+// .eq(WfTextbookClaim::getClassId, t.getClassId())
|
|
|
|
|
+// .eq(WfTextbookClaimItem::getTextbookId, t.getTextbookId());
|
|
|
|
|
+// TeacherCheckByclassVo teacherCheckByclassVo = wfTextbookClaimMapper.selectJoinOne(TeacherCheckByclassVo.class, qweryActualReceivedNum);
|
|
|
|
|
+//
|
|
|
|
|
+// t.setActualReceivedNum(teacherCheckByclassVo.getActualReceivedNum());
|
|
|
|
|
+//
|
|
|
|
|
+// LambdaQueryWrapper<TextbookStudentClaim> queryActualClaimNum = new LambdaQueryWrapper<>();
|
|
|
|
|
+// queryActualClaimNum
|
|
|
|
|
+// .eq(TextbookStudentClaim::getClassId, t.getClassId())
|
|
|
|
|
+// .eq(TextbookStudentClaim::getTextbookId, t.getTextbookId())
|
|
|
|
|
+// .eq(TextbookStudentClaim::getIsClaim, 1);
|
|
|
|
|
+// Long actualClaimNum = this.count(queryActualClaimNum);
|
|
|
|
|
+// t.setActualClaimNum(actualClaimNum);
|
|
|
|
|
+// }
|
|
|
return teacherCheckByclassVoList;
|
|
return teacherCheckByclassVoList;
|
|
|
}
|
|
}
|
|
|
|
|
|