Commit 4b162468 authored by 赵啸非's avatar 赵啸非

添加初始值

parent 3718e448
...@@ -511,7 +511,7 @@ public class WorkmanEntity extends WorkmanVo { ...@@ -511,7 +511,7 @@ public class WorkmanEntity extends WorkmanVo {
this.windowName = ""; this.windowName = "";
this.siteId = null; this.siteId = 0L;
this.siteName = ""; this.siteName = "";
...@@ -531,7 +531,7 @@ public class WorkmanEntity extends WorkmanVo { ...@@ -531,7 +531,7 @@ public class WorkmanEntity extends WorkmanVo {
this.mobile = ""; this.mobile = "";
this.starlevel = null; this.starlevel = 0;
this.summary = ""; this.summary = "";
......
package com.mortals.xhx.module.workman.web; package com.mortals.xhx.module.workman.web;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.annotation.UnAuth; import com.mortals.framework.annotation.UnAuth;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
...@@ -21,6 +22,7 @@ import com.mortals.xhx.module.model.service.ModelService; ...@@ -21,6 +22,7 @@ import com.mortals.xhx.module.model.service.ModelService;
import com.mortals.xhx.module.workman.model.WorkmanEntity; import com.mortals.xhx.module.workman.model.WorkmanEntity;
import com.mortals.xhx.module.workman.model.WorkmanQuery; import com.mortals.xhx.module.workman.model.WorkmanQuery;
import com.mortals.xhx.module.workman.service.WorkmanService; import com.mortals.xhx.module.workman.service.WorkmanService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -36,6 +38,7 @@ import java.util.stream.Collectors; ...@@ -36,6 +38,7 @@ import java.util.stream.Collectors;
*/ */
@RestController @RestController
@RequestMapping("workman") @RequestMapping("workman")
@Slf4j
public class WorkmanController extends BaseCRUDJsonBodyMappingController<WorkmanService, WorkmanEntity, Long> { public class WorkmanController extends BaseCRUDJsonBodyMappingController<WorkmanService, WorkmanEntity, Long> {
@Autowired @Autowired
...@@ -61,6 +64,7 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman ...@@ -61,6 +64,7 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
@PostMapping(value = "doLogin") @PostMapping(value = "doLogin")
@UnAuth @UnAuth
public String doLogin(@RequestBody WorkmanEntity query) { public String doLogin(@RequestBody WorkmanEntity query) {
log.info("doLogin==>{}", JSON.toJSONString(query));
JSONObject ret = new JSONObject(); JSONObject ret = new JSONObject();
try { try {
String ip = super.getRequestIP(request); String ip = super.getRequestIP(request);
......
###工作人员登录
POST {{baseUrl}}/workman/doLogin
Content-Type: application/json
{
"loginName":"rsju" ,
"loginPwd":"123456"
}
###工作人员列表 ###工作人员列表
POST {{baseUrl}}/workman/list POST {{baseUrl}}/workman/list
......
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