Commit d1956a27 authored by 季圣华's avatar 季圣华
Browse files

解决库存报表查询的bug,改了接口类型

parent 26b9ca7c
......@@ -201,7 +201,7 @@
var mIds = res.data.mIds;
if (mIds) {
$.ajax({
type: "get",
type: "post",
url: "/depotItem/buyIn",
dataType: "json",
data: ({
......
......@@ -332,7 +332,7 @@
}
else {
$.ajax({
type: "get",
type: "post",
url: "/depotItem/findByAll",
dataType: "json",
data: ({
......@@ -358,7 +358,7 @@
//总金额
$.ajax({
type: "get",
type: "post",
url: "/depotItem/totalCountMoney",
dataType: "json",
data: ({
......
......@@ -206,7 +206,7 @@
var mIds = res.data.mIds;
if (mIds) {
$.ajax({
type: "get",
type: "post",
url: "/depotItem/saleOut",
dataType: "json",
data: ({
......
......@@ -311,7 +311,7 @@ public class DepotItemController {
* @param request
* @return
*/
@GetMapping(value = "/findByAll")
@PostMapping(value = "/findByAll")
public BaseResponseInfo findByAll(@RequestParam("currentPage") Integer currentPage,
@RequestParam("pageSize") Integer pageSize,
@RequestParam("projectId") Integer projectId,
......@@ -384,7 +384,7 @@ public class DepotItemController {
* @param request
* @return
*/
@GetMapping(value = "/totalCountMoney")
@PostMapping(value = "/totalCountMoney")
public BaseResponseInfo totalCountMoney(@RequestParam("projectId") Integer pid,
@RequestParam("monthTime") String monthTime,
@RequestParam("headIds") String headIds,
......@@ -425,7 +425,7 @@ public class DepotItemController {
* @param request
* @return
*/
@GetMapping(value = "/buyIn")
@PostMapping(value = "/buyIn")
public BaseResponseInfo buyIn(@RequestParam("currentPage") Integer currentPage,
@RequestParam("pageSize") Integer pageSize,
@RequestParam("monthTime") String monthTime,
......@@ -485,7 +485,7 @@ public class DepotItemController {
* @param request
* @return
*/
@GetMapping(value = "/saleOut")
@PostMapping(value = "/saleOut")
public BaseResponseInfo saleOut(@RequestParam("currentPage") Integer currentPage,
@RequestParam("pageSize") Integer pageSize,
@RequestParam("monthTime") String monthTime,
......
......@@ -81,6 +81,7 @@ public class UserController {
try {
userStatus = userService.validateUser(username, password);
} catch (Exception e) {
e.printStackTrace();
logger.error(">>>>>>>>>>>>>用户 " + username + " 登录 login 方法 访问服务层异常====", e);
msgTip = "access service exception";
}
......@@ -122,6 +123,7 @@ public class UserController {
}
request.getSession().setAttribute("mybatisPlusStatus",mybatisPlusStatus); //开启状态
} catch (Exception e) {
e.printStackTrace();
logger.error(">>>>>>>>>>>>>>>查询用户名为:" + username + " ,用户信息异常", e);
}
break;
......@@ -140,6 +142,7 @@ public class UserController {
logger.info("===============用户登录 login 方法调用结束===============");
} catch(Exception e){
e.printStackTrace();
logger.error(e.getMessage());
res.code = 500;
res.data = "用户登录失败";
}
......
Supports Markdown
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