|
|
@ -41,6 +41,7 @@ import javax.annotation.Resource; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
/** |
|
|
|
* 党员报道 |
|
|
@ -60,7 +61,15 @@ public class ReportPartyServiceImpl extends BaseServiceImpl<ReportPartyDao, Repo |
|
|
|
getPage(params, FieldConstant.CREATED_TIME, false), |
|
|
|
getWrapper(params) |
|
|
|
); |
|
|
|
return getPageData(page, ReportPartyDTO.class); |
|
|
|
PageData<ReportPartyDTO> result = getPageData(page, ReportPartyDTO.class); |
|
|
|
page.getRecords().forEach(entity -> { |
|
|
|
result.getList().forEach(dto -> { |
|
|
|
if (entity.getId().equals(dto.getId())) { |
|
|
|
dto.setAllDeptIds(entity.getAllDeptIds().split(",")); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -116,6 +125,7 @@ public class ReportPartyServiceImpl extends BaseServiceImpl<ReportPartyDao, Repo |
|
|
|
entity.setParentDeptIds(deptDTO.getParentDeptIds()); |
|
|
|
entity.setParentDeptNames(deptDTO.getParentDeptNames()); |
|
|
|
} |
|
|
|
entity.setStatus(0); |
|
|
|
insert(entity); |
|
|
|
} |
|
|
|
|
|
|
@ -142,6 +152,9 @@ public class ReportPartyServiceImpl extends BaseServiceImpl<ReportPartyDao, Repo |
|
|
|
entity.setParentDeptIds(deptDTO.getParentDeptIds()); |
|
|
|
entity.setParentDeptNames(deptDTO.getParentDeptNames()); |
|
|
|
} |
|
|
|
if (Objects.equals(0,entity.getStatus())){ |
|
|
|
entity.setExamineMsg(null); |
|
|
|
} |
|
|
|
updateById(entity); |
|
|
|
} |
|
|
|
|
|
|
|