完成网格长报表
This commit is contained in:
parent
4a161638d2
commit
12217c5eb9
@ -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();
|
||||||
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user