Commit 3a7be664 by 吴迪

【新增】首页接口提交

parent 5164814b
package io.office.modules.manage.controller;
import io.office.common.utils.R;
import io.office.modules.app.annotation.Login;
import io.office.modules.manage.vo.request.DomesticCodeDetailRequest;
import io.office.modules.manage.vo.request.ProductionVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
/**
*
* 
 @description:
*
* @author wudi
* @date 13:42 2021/11/30
*/
@Controller
@RequestMapping("production/api")
public class ProductionController {
@Login
@RequestMapping("/search")
public String search(@RequestBody ProductionVo productionVo) {
return "redirect:http://search.anccnet.com/searchResult2.aspx?keyword="+productionVo.getKeyword();
}
}
......@@ -283,6 +283,19 @@ public class DateUtils {
return dateStr;
}
public static String getAfterDayDate(String days,String format) {
int daysInt = Integer.parseInt(days);
Calendar canlendar = Calendar.getInstance();
canlendar.add(Calendar.DATE, daysInt);
Date date = canlendar.getTime();
SimpleDateFormat sdfd = new SimpleDateFormat(format);
String dateStr = sdfd.format(date);
return dateStr;
}
/**
* 得到n天之后是周几
*/
......
package io.office.modules.manage.vo.request;
import lombok.Data;
import java.io.Serializable;
/**
*
* 
 @description:
*
* @author wudi
* @date 13:57 2021/11/30
*/
@Data
public class ProductionVo implements Serializable {
private String keyword;
private String captcha;
private String uuid;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment