| | |
| | | |
| | | import javax.validation.Valid; |
| | | import java.time.LocalDateTime; |
| | | import java.time.Year; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | @PostMapping("/screen") |
| | | @ApiOperation("大屏数据") |
| | | public Result<ScreenVO> screen(@RequestParam(value = "county",required = false)Integer county, |
| | | @RequestParam(value = "year")Integer year) { |
| | | @RequestParam(value = "year",required = false)Integer year) { |
| | | if (year == null){ |
| | | year = Year.now().getValue(); |
| | | } |
| | | return Result.success( dataService.screen(county==null?0:county,year)); |
| | | } |
| | | /** |
| | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | System.out.println(generateMD5("123456")); |
| | | System.out.println("17912345678".substring(0, 3) + "****" + "17912345678".substring(7)); |
| | | String myString = "358736"; |
| | | System.err.println("MD5 of '" + myString + "' is: " + generateMD5(myString)); |