|
@@ -241,8 +241,10 @@ public class PaperGroupServiceImpl extends ServiceImpl<PaperGroupDao, PaperGroup
|
|
if (paperGroupUnitService.countByPaperId(domain.getPaperId())
|
|
if (paperGroupUnitService.countByPaperId(domain.getPaperId())
|
|
.equals(paperDetailUnitService.countByPaperId(domain.getPaperId()))) {
|
|
.equals(paperDetailUnitService.countByPaperId(domain.getPaperId()))) {
|
|
paper.setGroupFinish(true);
|
|
paper.setGroupFinish(true);
|
|
- paperService.updateById(paper);
|
|
|
|
|
|
+ }else {
|
|
|
|
+ paper.setGroupFinish(false);
|
|
}
|
|
}
|
|
|
|
+ paperService.updateById(paper);
|
|
}
|
|
}
|
|
|
|
|
|
private void checkStruct(List<PaperDetail> pds, List<PaperGroupUnit> groupUnits) {
|
|
private void checkStruct(List<PaperDetail> pds, List<PaperGroupUnit> groupUnits) {
|