修改大屏接口
This commit is contained in:
parent
6a0535e15d
commit
d6bef220e7
|
@ -1,6 +1,7 @@
|
||||||
package com.cyx.web.base.controller;
|
package com.cyx.web.base.controller;
|
||||||
|
|
||||||
import com.cyx.common.core.controller.BaseController;
|
import com.cyx.common.core.controller.BaseController;
|
||||||
|
import com.cyx.common.core.domain.AjaxResult;
|
||||||
import com.cyx.common.core.domain.entity.SysUser;
|
import com.cyx.common.core.domain.entity.SysUser;
|
||||||
import com.cyx.common.core.page.TableDataInfo;
|
import com.cyx.common.core.page.TableDataInfo;
|
||||||
import com.cyx.web.base.domain.TAmentAdvancedDept;
|
import com.cyx.web.base.domain.TAmentAdvancedDept;
|
||||||
|
@ -31,6 +32,21 @@ public class BigScreenController extends BaseController {
|
||||||
private ITAmentAdvancedDeptService advancedDeptService;
|
private ITAmentAdvancedDeptService advancedDeptService;
|
||||||
// @RequiresPermissions("base:user:list")
|
// @RequiresPermissions("base:user:list")
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所有统计
|
||||||
|
* @param am
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PostMapping("/groupAll")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult groupAll(TAmentPartyAffairs am)
|
||||||
|
{
|
||||||
|
SysUser u = getSysUser();
|
||||||
|
am.setDeptId(u.getDeptId());
|
||||||
|
List<Map<String,Object>> list = partyAffairsService.groupAll(am);
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 党务意识形态
|
* 党务意识形态
|
||||||
* @param am
|
* @param am
|
||||||
|
@ -38,13 +54,12 @@ public class BigScreenController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("/dwysxt")
|
@PostMapping("/dwysxt")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public TableDataInfo dwysxt(TAmentPartyAffairs am)
|
public AjaxResult dwysxt(TAmentPartyAffairs am)
|
||||||
{
|
{
|
||||||
startPage();
|
|
||||||
SysUser u = getSysUser();
|
SysUser u = getSysUser();
|
||||||
am.setDeptId(u.getDeptId());
|
am.setDeptId(u.getDeptId());
|
||||||
List<Map<String,Object>> list = partyAffairsService.dwysxt(am);
|
List<Map<String,Object>> list = partyAffairsService.dwysxt(am);
|
||||||
return getDataTable(list);
|
return AjaxResult.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -54,13 +69,12 @@ public class BigScreenController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("/dflzjs")
|
@PostMapping("/dflzjs")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public TableDataInfo dflzjs(TAmentPartyAffairs am)
|
public AjaxResult dflzjs(TAmentPartyAffairs am)
|
||||||
{
|
{
|
||||||
startPage();
|
|
||||||
SysUser u = getSysUser();
|
SysUser u = getSysUser();
|
||||||
am.setDeptId(u.getDeptId());
|
am.setDeptId(u.getDeptId());
|
||||||
List<Map<String,Object>> list = partyAffairsService.dflzjs(am);
|
List<Map<String,Object>> list = partyAffairsService.dflzjs(am);
|
||||||
return getDataTable(list);
|
return AjaxResult.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -70,13 +84,12 @@ public class BigScreenController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("/rckhzb")
|
@PostMapping("/rckhzb")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public TableDataInfo rckhzb(TAmentPartyAffairs am)
|
public AjaxResult rckhzb(TAmentPartyAffairs am)
|
||||||
{
|
{
|
||||||
startPage();
|
|
||||||
SysUser u = getSysUser();
|
SysUser u = getSysUser();
|
||||||
am.setDeptId(u.getDeptId());
|
am.setDeptId(u.getDeptId());
|
||||||
List<Map<String,Object>> list = partyAffairsService.rckhzb(am);
|
List<Map<String,Object>> list = partyAffairsService.rckhzb(am);
|
||||||
return getDataTable(list);
|
return AjaxResult.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -86,13 +99,12 @@ public class BigScreenController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("/ndkhbz")
|
@PostMapping("/ndkhbz")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public TableDataInfo ndkhbz(TAmentPartyAffairs am)
|
public AjaxResult ndkhbz(TAmentPartyAffairs am)
|
||||||
{
|
{
|
||||||
startPage();
|
|
||||||
SysUser u = getSysUser();
|
SysUser u = getSysUser();
|
||||||
am.setDeptId(u.getDeptId());
|
am.setDeptId(u.getDeptId());
|
||||||
List<Map<String,Object>> list = partyAffairsService.ndkhbz(am);
|
List<Map<String,Object>> list = partyAffairsService.ndkhbz(am);
|
||||||
return getDataTable(list);
|
return AjaxResult.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -102,13 +114,12 @@ public class BigScreenController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("/bmwcqk")
|
@PostMapping("/bmwcqk")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public TableDataInfo bmwcqk(TAmentPartyAffairs am)
|
public AjaxResult bmwcqk(TAmentPartyAffairs am)
|
||||||
{
|
{
|
||||||
startPage();
|
|
||||||
SysUser u = getSysUser();
|
SysUser u = getSysUser();
|
||||||
am.setDeptId(u.getDeptId());
|
am.setDeptId(u.getDeptId());
|
||||||
List<Map<String,Object>> list = partyAffairsService.bmwcqk(am);
|
List<Map<String,Object>> list = partyAffairsService.bmwcqk(am);
|
||||||
return getDataTable(list);
|
return AjaxResult.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -118,12 +129,11 @@ public class BigScreenController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("/advanceParity")
|
@PostMapping("/advanceParity")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public TableDataInfo advanceParity(TAmentAdvancedParty pa)
|
public AjaxResult advanceParity(TAmentAdvancedParty pa)
|
||||||
{
|
{
|
||||||
startPage();
|
|
||||||
SysUser u = getSysUser();
|
SysUser u = getSysUser();
|
||||||
List<Map<String,Object>> list = advancedPartyService.advanceParity(pa);
|
List<Map<String,Object>> list = advancedPartyService.advanceParity(pa);
|
||||||
return getDataTable(list);
|
return AjaxResult.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -133,12 +143,11 @@ public class BigScreenController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("/advanceDept")
|
@PostMapping("/advanceDept")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public TableDataInfo advanceDept(TAmentAdvancedDept dept)
|
public AjaxResult advanceDept(TAmentAdvancedDept dept)
|
||||||
{
|
{
|
||||||
startPage();
|
|
||||||
SysUser u = getSysUser();
|
SysUser u = getSysUser();
|
||||||
List<Map<String,Object>> list = advancedDeptService.advanceDept(dept);
|
List<Map<String,Object>> list = advancedDeptService.advanceDept(dept);
|
||||||
return getDataTable(list);
|
return AjaxResult.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -70,4 +70,6 @@ public interface TAmentPartyAffairsMapper
|
||||||
List<Map<String, Object>> ndkhbz(TAmentPartyAffairs am);
|
List<Map<String, Object>> ndkhbz(TAmentPartyAffairs am);
|
||||||
|
|
||||||
List<Map<String, Object>> bmwcqk(TAmentPartyAffairs am);
|
List<Map<String, Object>> bmwcqk(TAmentPartyAffairs am);
|
||||||
|
|
||||||
|
List<Map<String, Object>> groupAll(TAmentPartyAffairs am);
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,4 +70,6 @@ public interface ITAmentPartyAffairsService
|
||||||
List<Map<String, Object>> ndkhbz(TAmentPartyAffairs am);
|
List<Map<String, Object>> ndkhbz(TAmentPartyAffairs am);
|
||||||
|
|
||||||
List<Map<String, Object>> bmwcqk(TAmentPartyAffairs am);
|
List<Map<String, Object>> bmwcqk(TAmentPartyAffairs am);
|
||||||
|
|
||||||
|
List<Map<String, Object>> groupAll(TAmentPartyAffairs am);
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,4 +117,8 @@ public class TAmentPartyAffairsServiceImpl implements ITAmentPartyAffairsService
|
||||||
public List<Map<String, Object>> bmwcqk(TAmentPartyAffairs am){
|
public List<Map<String, Object>> bmwcqk(TAmentPartyAffairs am){
|
||||||
return tAmentPartyAffairsMapper.bmwcqk(am);
|
return tAmentPartyAffairsMapper.bmwcqk(am);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public List<Map<String, Object>> groupAll(TAmentPartyAffairs am){
|
||||||
|
return tAmentPartyAffairsMapper.groupAll(am);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,6 +117,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
dept_id,type
|
dept_id,type
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="groupAll" resultType="map">
|
||||||
|
SELECT
|
||||||
|
shot_name,
|
||||||
|
SUM( score ) score,
|
||||||
|
IF( SUM( now_score ), SUM( now_score ), 0 ) nowScore,
|
||||||
|
ROUND(IF( SUM( now_score ), SUM( now_score ), 0 )/ SUM( score )) percent
|
||||||
|
FROM
|
||||||
|
t_ament_party_affairs
|
||||||
|
GROUP BY
|
||||||
|
type
|
||||||
|
</select>
|
||||||
|
|
||||||
<insert id="insertTAmentPartyAffairs" parameterType="TAmentPartyAffairs" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertTAmentPartyAffairs" parameterType="TAmentPartyAffairs" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into t_ament_party_affairs
|
insert into t_ament_party_affairs
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
|
Loading…
Reference in New Issue