修改授权日期

This commit is contained in:
sjs 2022-10-08 09:08:08 +08:00
parent dc72c925de
commit cc03fdd4a4
4 changed files with 23 additions and 23 deletions

View File

@ -62,13 +62,13 @@ public class DateUploadController
@RequestMapping(value = "/SelectUpload",method = {RequestMethod.POST}) @RequestMapping(value = "/SelectUpload",method = {RequestMethod.POST})
public AjaxResult SelectUpload(@RequestBody paging paging) public AjaxResult SelectUpload(@RequestBody paging paging)
{ {
LocalDate tomorrow = LocalDate.of(2022,10,2); // LocalDate tomorrow = LocalDate.of(2022,10,2);
LocalDate today = LocalDate.now(); // LocalDate today = LocalDate.now();
//
if(tomorrow.isAfter(today)==false) // if(tomorrow.isAfter(today)==false)
{ // {
return AjaxResult.error("软件授权日期已过,请联系管理人员!"); // return AjaxResult.error("软件授权日期已过,请联系管理人员!");
} // }
String type1=paging.getType1().replace(" ",""); String type1=paging.getType1().replace(" ","");
String type=paging.getType().replace(" ",""); String type=paging.getType().replace(" ","");

View File

@ -35,13 +35,13 @@ public class LandUseController {
@RequestMapping(value = "/SelectSeeding",method = {RequestMethod.POST}) @RequestMapping(value = "/SelectSeeding",method = {RequestMethod.POST})
public AjaxResult SelectSeeding(@RequestBody HelpLandUse user) public AjaxResult SelectSeeding(@RequestBody HelpLandUse user)
{ {
LocalDate tomorrow = LocalDate.of(2022,10,2); // LocalDate tomorrow = LocalDate.of(2022,10,2);
LocalDate today = LocalDate.now(); // LocalDate today = LocalDate.now();
//
if(tomorrow.isAfter(today)==false) // if(tomorrow.isAfter(today)==false)
{ // {
return AjaxResult.error("软件授权日期已过,请联系管理人员!"); // return AjaxResult.error("软件授权日期已过,请联系管理人员!");
} // }
if(user.getLandUses().length==0) if(user.getLandUses().length==0)
{ {

View File

@ -37,13 +37,13 @@ public class PlantingSuitabilityController
@RequestMapping(value = "/SelectSeeding",method = {RequestMethod.GET}) @RequestMapping(value = "/SelectSeeding",method = {RequestMethod.GET})
public AjaxResult SelectSeeding(String zone) public AjaxResult SelectSeeding(String zone)
{ {
LocalDate tomorrow = LocalDate.of(2022,10,2); // LocalDate tomorrow = LocalDate.of(2022,10,2);
LocalDate today = LocalDate.now(); // LocalDate today = LocalDate.now();
//
if(tomorrow.isAfter(today)==false) // if(tomorrow.isAfter(today)==false)
{ // {
return AjaxResult.error("软件授权日期已过,请联系管理人员!"); // return AjaxResult.error("软件授权日期已过,请联系管理人员!");
} // }
List<PlantingSuitability> Seeding= Service.sqlSeeding(zone); List<PlantingSuitability> Seeding= Service.sqlSeeding(zone);
Double Number=0.0; Double Number=0.0;

View File

@ -18,8 +18,8 @@ ruoyi:
# 开发环境配置 # 开发环境配置
server: server:
# 服务器的HTTP端口默认为8080 # 服务器的HTTP端口默认为8080
port: 6051 #port: 6051
#port: 9800 port: 9800
servlet: servlet:
# 应用的访问路径 # 应用的访问路径
context-path: / context-path: /