|
@@ -2,6 +2,9 @@ package com.ruoyi.system.controller;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
+
|
|
|
|
+import com.ruoyi.system.domain.dto.QueryEntity;
|
|
|
|
+import com.ruoyi.system.utils.CaptchaUtils;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -71,6 +74,21 @@ public class ContractTableController extends BaseController
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * 获取B类详细信息
|
|
|
|
+ */
|
|
|
|
+ //@PreAuthorize("@ss.hasPermi('system:contract:query')")
|
|
|
|
+ @PostMapping("/getInfoByCode")
|
|
|
|
+ public AjaxResult getInfoByCode(@RequestBody QueryEntity queryEntity)
|
|
|
|
+ {
|
|
|
|
+ CaptchaUtils utils = new CaptchaUtils();
|
|
|
|
+ if (utils.validateCaptcha(queryEntity.getCode(), queryEntity.getUuid())){
|
|
|
|
+ return success(contractTableService.selectContractTableByQuery(queryEntity));
|
|
|
|
+ }else {
|
|
|
|
+ return error("验证码输入错误");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 新增B类
|
|
* 新增B类
|
|
*/
|
|
*/
|
|
@PreAuthorize("@ss.hasPermi('system:contract:add')")
|
|
@PreAuthorize("@ss.hasPermi('system:contract:add')")
|