完成网格长报表

This commit is contained in:
TS-QD1 2023-05-13 17:46:35 +08:00
parent 4a161638d2
commit 12217c5eb9
5 changed files with 43 additions and 0 deletions

View File

@ -112,6 +112,14 @@ public class KpiKhxzController extends AbstractController {
kpiKhxzService.exportWgz(httpServletResponse, queryMap); kpiKhxzService.exportWgz(httpServletResponse, queryMap);
} }
@PutMapping("update-wgz")
public synchronized SuccessResult updateWgz(@RequestBody KpiUpdateVO kpiUpdateVO) {
kpiKhxzService.updateWgz(kpiUpdateVO);
return new SuccessResult();
}
@GetMapping("list-znbm") @GetMapping("list-znbm")
public List<KpiKhxzZnbmDTO> listZnbm() { public List<KpiKhxzZnbmDTO> listZnbm() {
Map<String, Object> queryMap = requestParams(); Map<String, Object> queryMap = requestParams();

View File

@ -17,4 +17,6 @@ public interface IKpiKhxzWgzDao {
List<KpiKhxzWgzDTO> list(Map<String, Object> params); List<KpiKhxzWgzDTO> list(Map<String, Object> params);
void update(Map<String, Object> params);
} }

View File

@ -36,9 +36,12 @@ public interface IKpiKhxzService {
void exportWgz(HttpServletResponse httpServletResponse, Map<String, Object> queryMap) throws IOException; void exportWgz(HttpServletResponse httpServletResponse, Map<String, Object> queryMap) throws IOException;
void updateWgz(KpiUpdateVO kpiUpdateVO);
List<KpiKhxzZnbmDTO> listZnbm(Map<String, Object> queryMap); List<KpiKhxzZnbmDTO> listZnbm(Map<String, Object> queryMap);
void exportZnbm(HttpServletResponse httpServletResponse, Map<String, Object> queryMap) throws IOException; void exportZnbm(HttpServletResponse httpServletResponse, Map<String, Object> queryMap) throws IOException;
} }

View File

@ -174,6 +174,13 @@ public class KpiKhxzServiceImpl extends AbstractService implements IKpiKhxzServi
ExcelExportUtil.simple(httpServletResponse, "网格长考核细则", listWgz(queryMap), KpiKhxzWgzDTO.class); ExcelExportUtil.simple(httpServletResponse, "网格长考核细则", listWgz(queryMap), KpiKhxzWgzDTO.class);
} }
@Override
public void updateWgz(KpiUpdateVO kpiUpdateVO) {
kpiUpdateVO.getDatas().forEach(params -> {
kpiKhxzWgzDao.update(params);
});
}
@Override @Override
public List<KpiKhxzZnbmDTO> listZnbm(Map<String, Object> queryMap) { public List<KpiKhxzZnbmDTO> listZnbm(Map<String, Object> queryMap) {
return kpiKhxzZnbmDao.list(queryMap); return kpiKhxzZnbmDao.list(queryMap);

View File

@ -97,4 +97,27 @@
</if> </if>
</select> </select>
<update id="update" parameterType="map">
UPDATE
kpi_khxz_wgz
SET
I = #{I},
reasonI = #{reasonI},
J = #{J},
reasonJ = #{reasonJ},
K = #{K},
reasonK = #{reasonK},
L = #{L},
M = #{M},
N = #{N},
O = #{O},
P = #{P}
WHERE
kh_year = #{khYear}
AND
kh_month = #{khMonth}
AND
user_id = #{userId}
</update>
</mapper> </mapper>