forked from zhuyuchen/buliang
新增行政处罚大赛接口
This commit is contained in:
parent
d832fa597c
commit
5e89188de3
@ -95,7 +95,7 @@ public class XZCFController {
|
|||||||
//统计模块-行政处罚
|
//统计模块-行政处罚
|
||||||
@GetMapping("/GetFaShengLvDaPing")
|
@GetMapping("/GetFaShengLvDaPing")
|
||||||
@Log(title = "行政处罚(大屏)", businessType = BusinessType.SELECT)
|
@Log(title = "行政处罚(大屏)", businessType = BusinessType.SELECT)
|
||||||
@DapingCache(isEnableCache = true)
|
@DapingCache(isEnableCache = false)
|
||||||
public Map<String, Object> GetFaShengLvDaPing(String hj, String szqx, String month) {
|
public Map<String, Object> GetFaShengLvDaPing(String hj, String szqx, String month) {
|
||||||
// String userName = BaseContext.getUserName();
|
// String userName = BaseContext.getUserName();
|
||||||
// if (Tools.isNotEmpty(userName) && userName.contains("区")) {
|
// if (Tools.isNotEmpty(userName) && userName.contains("区")) {
|
||||||
@ -111,10 +111,35 @@ public class XZCFController {
|
|||||||
return xzcfDataService.getFaShengLvDaPing(hj, szqx, timeByMonth.getStartTime(), timeByMonth.getEndTime());
|
return xzcfDataService.getFaShengLvDaPing(hj, szqx, timeByMonth.getStartTime(), timeByMonth.getEndTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/GetFaShengLvDaPingDasai")
|
||||||
|
@Log(title = "行政处罚(大屏)", businessType = BusinessType.SELECT)
|
||||||
|
@DapingCache(isEnableCache = false)
|
||||||
|
public Map<String, Object> GetFaShengLvDaPing(String hj, String szqx, String month ,int littlemonth) {
|
||||||
|
// String userName = BaseContext.getUserName();
|
||||||
|
// if (Tools.isNotEmpty(userName) && userName.contains("区")) {
|
||||||
|
// szqx = userName;
|
||||||
|
// }
|
||||||
|
String startMonth1 = ObjectUtils.isEmpty(month) ? "1" : month;
|
||||||
|
String endMonth1 = ObjectUtils.isEmpty(month) ? "12" : month;
|
||||||
|
|
||||||
|
int startmonthInt = Integer.parseInt(startMonth1);
|
||||||
|
int resultInt = startmonthInt - littlemonth;
|
||||||
|
String startMonth = String.valueOf(resultInt);
|
||||||
|
int endmonthInt = Integer.parseInt(endMonth1);
|
||||||
|
int resultInt1 = startmonthInt - littlemonth;
|
||||||
|
String endMonth = String.valueOf(resultInt1);
|
||||||
|
|
||||||
|
MonthTimeVo timeByMonth = TimeUtil.getTimeByMonth("2024", month, month, TimeUtil.FORMAT_1);
|
||||||
|
|
||||||
|
String start = "2024/" + startMonth + "/1";
|
||||||
|
String end = "2024/" + endMonth + "/31";
|
||||||
|
return xzcfDataService.getFaShengLvDaPing(hj, szqx, timeByMonth.getStartTime(), timeByMonth.getEndTime());
|
||||||
|
}
|
||||||
|
|
||||||
//统计模块-行政处罚
|
//统计模块-行政处罚
|
||||||
@GetMapping("/GetFaShengLvDaPingStreet")
|
@GetMapping("/GetFaShengLvDaPingStreet")
|
||||||
@Log(title = "行政处罚(大屏)街道", businessType = BusinessType.SELECT)
|
@Log(title = "行政处罚(大屏)街道", businessType = BusinessType.SELECT)
|
||||||
@DapingCache(isEnableCache = true)
|
@DapingCache(isEnableCache = false)
|
||||||
public Map<String, Object> GetFaShengLvDaPingStreet(String hj, String szqx, String month,String street) {
|
public Map<String, Object> GetFaShengLvDaPingStreet(String hj, String szqx, String month,String street) {
|
||||||
// String userName = BaseContext.getUserName();
|
// String userName = BaseContext.getUserName();
|
||||||
// if (Tools.isNotEmpty(userName) && userName.contains("区")) {
|
// if (Tools.isNotEmpty(userName) && userName.contains("区")) {
|
||||||
@ -152,7 +177,7 @@ public class XZCFController {
|
|||||||
|
|
||||||
@GetMapping("/GetScoreByHuanJie")
|
@GetMapping("/GetScoreByHuanJie")
|
||||||
@Log(title = "行政处罚根据环节获取成绩", businessType = BusinessType.SELECT)
|
@Log(title = "行政处罚根据环节获取成绩", businessType = BusinessType.SELECT)
|
||||||
@DapingCache(isEnableCache = true)
|
@DapingCache(isEnableCache = false)
|
||||||
public Object GetScoreByHuanJie(String szqx, String month) {
|
public Object GetScoreByHuanJie(String szqx, String month) {
|
||||||
String startMonth = ObjectUtils.isEmpty(month) ? "1" : month;
|
String startMonth = ObjectUtils.isEmpty(month) ? "1" : month;
|
||||||
String endMonth = ObjectUtils.isEmpty(month) ? "12" : month;
|
String endMonth = ObjectUtils.isEmpty(month) ? "12" : month;
|
||||||
|
@ -504,7 +504,7 @@ public class XzcfDataServiceImpl extends ServiceImpl<XzcfDataMapper, XzcfData>
|
|||||||
System.out.println("startTime = " + startTime);
|
System.out.println("startTime = " + startTime);
|
||||||
System.out.println("endTime = " + endTime);
|
System.out.println("endTime = " + endTime);
|
||||||
//默认2023
|
//默认2023
|
||||||
String rwnf = "2023";
|
String rwnf = "2024";
|
||||||
// 将字符串转换为LocalDate对象
|
// 将字符串转换为LocalDate对象
|
||||||
LocalDate nowDate = LocalDate.of(Integer.parseInt(rwnf), 1, 1);
|
LocalDate nowDate = LocalDate.of(Integer.parseInt(rwnf), 1, 1);
|
||||||
// 找到该年的最后一天
|
// 找到该年的最后一天
|
||||||
|
Loading…
x
Reference in New Issue
Block a user