报表fixbug
This commit is contained in:
parent
c7713353dd
commit
897a7731bf
|
|
@ -79,5 +79,5 @@ public interface SalaryStatisticsPushMapper {
|
|||
* @param reportId
|
||||
* @return
|
||||
*/
|
||||
List<SalaryStatisticsPushPO> listListReportIdAndIds(@Param("reportId") Long reportId, @Param("ids") List<Long> ids);
|
||||
List<SalaryStatisticsPushPO> listByReportIdAndIds(@Param("reportId") Long reportId, @Param("ids") List<Long> ids);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@
|
|||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
<select id="listListReportIdAndIds" resultType="com.engine.salary.report.entity.po.SalaryStatisticsPushPO">
|
||||
<select id="listByReportIdAndIds" resultType="com.engine.salary.report.entity.po.SalaryStatisticsPushPO">
|
||||
SELECT
|
||||
<include refid="baseColumns" />
|
||||
FROM hrsa_report_push t
|
||||
|
|
@ -140,7 +140,7 @@
|
|||
</if>
|
||||
</select>
|
||||
|
||||
<select id="listListReportId" resultType="com.engine.salary.report.entity.po.SalaryStatisticsPushPO" databaseId="oracle">
|
||||
<select id="listByReportIdAndIds" resultType="com.engine.salary.report.entity.po.SalaryStatisticsPushPO" databaseId="oracle">
|
||||
SELECT
|
||||
<include refid="baseColumns" />
|
||||
FROM hrsa_report_push t
|
||||
|
|
@ -156,7 +156,7 @@
|
|||
</if>
|
||||
</select>
|
||||
|
||||
<select id="listListReportId" resultType="com.engine.salary.report.entity.po.SalaryStatisticsPushPO" databaseId="sqlserver">
|
||||
<select id="listByReportIdAndIds" resultType="com.engine.salary.report.entity.po.SalaryStatisticsPushPO" databaseId="sqlserver">
|
||||
SELECT
|
||||
<include refid="baseColumns" />
|
||||
FROM hrsa_report_push t
|
||||
|
|
|
|||
|
|
@ -83,9 +83,9 @@ public class SalaryStatisticsPushServiceImpl extends Service implements SalarySt
|
|||
data.put("pushTitle", pushPO.getPushTitle());
|
||||
data.put("mark", pushPO.getMark());
|
||||
if (pushPO.getRemind() == null) {
|
||||
data.put("remind", 1);
|
||||
data.put("remind", "1");
|
||||
} else {
|
||||
data.put("remind", pushPO.getRemind());
|
||||
data.put("remind", pushPO.getRemind().toString());
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
|
@ -107,7 +107,7 @@ public class SalaryStatisticsPushServiceImpl extends Service implements SalarySt
|
|||
po.getCreator().compareTo(employeeId) == 0
|
||||
).forEach( po -> {
|
||||
Map<String, Object> option = new HashMap<>();
|
||||
option.put("id", po.getId());
|
||||
option.put("id", po.getId().toString());
|
||||
option.put("reportName", po.getReportName());
|
||||
reportIdsOptions.add(option);
|
||||
});
|
||||
|
|
@ -718,7 +718,7 @@ public class SalaryStatisticsPushServiceImpl extends Service implements SalarySt
|
|||
|
||||
@Override
|
||||
public List<SalaryStatisticsPushPO> getPushListByReportIdAndIds(Long reportId, List<Long> ids) {
|
||||
List<SalaryStatisticsPushPO> pushList = getSalaryStatisticsPushMapper().listListReportIdAndIds(reportId, ids);
|
||||
List<SalaryStatisticsPushPO> pushList = getSalaryStatisticsPushMapper().listByReportIdAndIds(reportId, ids);
|
||||
pushList = pushList.stream().filter( push -> {
|
||||
return Arrays.asList(push.getReportIds().split(",")).contains(reportId.toString());
|
||||
}).collect(Collectors.toList());
|
||||
|
|
|
|||
Loading…
Reference in New Issue