Browse Source

网格用户信息添加性别字段

master
zxc 5 years ago
parent
commit
97a9c6f1f8
  1. 5
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/StaffGridListDTO.java
  2. 30
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/DepartmentController.java
  3. 3
      epmet-user/epmet-user-server/src/main/resources/mapper/CustomerStaffDao.xml

5
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/StaffGridListDTO.java

@ -31,4 +31,9 @@ public class StaffGridListDTO {
*/
private String roleName;
/**
* 性别
*/
private String gender;
}

30
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/DepartmentController.java

@ -0,0 +1,30 @@
package com.epmet.controller;
import com.epmet.commons.tools.annotation.LoginUser;
import com.epmet.commons.tools.security.dto.TokenDto;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.form.AddDepartmentFormDTO;
import com.epmet.service.CustomerStaffDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @Auther zxc
* @Create 2020-04-24 14:48
*/
@RestController
@RequestMapping(value = "/department")
public class DepartmentController {
@Autowired
private CustomerStaffDepartmentService customerStaffDepartmentService;
@PostMapping(value = "adddepartmentstaff")
public Result addDepartmentStaff(@LoginUser TokenDto tokenDto, @RequestBody AddDepartmentFormDTO addDepartmentFormDTO){
return null;
}
}

3
epmet-user/epmet-user-server/src/main/resources/mapper/CustomerStaffDao.xml

@ -30,7 +30,8 @@
cs.id AS staffId,
cs.real_name AS staffName,
cs.head_photo AS staffHeadPhoto,
gsr.role_name AS roleName
gsr.role_name AS roleName,
cs.gender
FROM
customer_staff cs
LEFT JOIN gov_staff_role gsr ON cs.user_id = gsr.id

Loading…
Cancel
Save