|
@@ -390,6 +390,21 @@ public class CustomerInfoApiController {
|
|
|
TechnicianInfo technicianInfo = technicianInfoService.get(technicianId);
|
|
TechnicianInfo technicianInfo = technicianInfoService.get(technicianId);
|
|
|
|
|
|
|
|
if (technicianInfo != null) {
|
|
if (technicianInfo != null) {
|
|
|
|
|
+ if (StringUtils.isNotEmpty(technicianInfo.getBusinessScope())) {
|
|
|
|
|
+ String[] businessScopeArr = technicianInfo.getBusinessScope().split(",");
|
|
|
|
|
+ String businessScopeN = "";
|
|
|
|
|
+ for (String item : businessScopeArr) {
|
|
|
|
|
+ String businessScopeStr = dataDictionaryService.findNameByCatalogNameAndValue("水箱材质", item);
|
|
|
|
|
+ if (StringUtils.isNotEmpty(businessScopeStr)) {
|
|
|
|
|
+ businessScopeN += businessScopeStr + ",";
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (StringUtils.isNotEmpty(businessScopeN)) {
|
|
|
|
|
+ businessScopeN = businessScopeN.substring(0, businessScopeN.lastIndexOf(","));
|
|
|
|
|
+ technicianInfo.setBusinessScopeN(businessScopeN);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
technicianInfoList.add(technicianInfo);
|
|
technicianInfoList.add(technicianInfo);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -532,6 +547,7 @@ public class CustomerInfoApiController {
|
|
|
dto.setTechnicianName(technicianName);
|
|
dto.setTechnicianName(technicianName);
|
|
|
dto.setTechnicianImage(technicianImage);
|
|
dto.setTechnicianImage(technicianImage);
|
|
|
dto.setTechnicianLevel(technicianLevel);
|
|
dto.setTechnicianLevel(technicianLevel);
|
|
|
|
|
+ dto.setPayStatus(workOrder.getPayStatus());
|
|
|
|
|
|
|
|
List<String> tagList = new ArrayList<>();
|
|
List<String> tagList = new ArrayList<>();
|
|
|
if (StringUtils.isNotEmpty(workOrder.getTag())) {
|
|
if (StringUtils.isNotEmpty(workOrder.getTag())) {
|
|
@@ -650,7 +666,7 @@ public class CustomerInfoApiController {
|
|
|
@ApiOperation(value = "师傅列表")
|
|
@ApiOperation(value = "师傅列表")
|
|
|
@RequestMapping(value = "technicianPageList", method = RequestMethod.POST)
|
|
@RequestMapping(value = "technicianPageList", method = RequestMethod.POST)
|
|
|
public MessageResult<Map> technicianPageList(
|
|
public MessageResult<Map> technicianPageList(
|
|
|
- String name, String businessScope,String token,
|
|
|
|
|
|
|
+ String name, String businessScope, String token,
|
|
|
@RequestParam(value = "pageIndex", defaultValue = "1") int pageIndex,
|
|
@RequestParam(value = "pageIndex", defaultValue = "1") int pageIndex,
|
|
|
@RequestParam(value = "pageSize", defaultValue = "20") int pageSize,
|
|
@RequestParam(value = "pageSize", defaultValue = "20") int pageSize,
|
|
|
HttpServletRequest request) {
|
|
HttpServletRequest request) {
|
|
@@ -880,9 +896,9 @@ public class CustomerInfoApiController {
|
|
|
@ApiOperation(value = "问题反馈列表")
|
|
@ApiOperation(value = "问题反馈列表")
|
|
|
@RequestMapping(value = "feedbackPageList", method = RequestMethod.POST)
|
|
@RequestMapping(value = "feedbackPageList", method = RequestMethod.POST)
|
|
|
public MessageResult<Map> feedbackPageList(String type,
|
|
public MessageResult<Map> feedbackPageList(String type,
|
|
|
- @RequestParam(value = "pageIndex", defaultValue = "1") int pageIndex,
|
|
|
|
|
- @RequestParam(value = "pageSize", defaultValue = "20") int pageSize,
|
|
|
|
|
- HttpServletRequest request) {
|
|
|
|
|
|
|
+ @RequestParam(value = "pageIndex", defaultValue = "1") int pageIndex,
|
|
|
|
|
+ @RequestParam(value = "pageSize", defaultValue = "20") int pageSize,
|
|
|
|
|
+ HttpServletRequest request) {
|
|
|
String subject = (String) request.getAttribute("subject");
|
|
String subject = (String) request.getAttribute("subject");
|
|
|
|
|
|
|
|
//当前用户ID
|
|
//当前用户ID
|
|
@@ -895,11 +911,10 @@ public class CustomerInfoApiController {
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
sortList.add(new Sort("create_time", "desc"));
|
|
sortList.add(new Sort("create_time", "desc"));
|
|
|
|
|
|
|
|
- if(type.equals("1")){
|
|
|
|
|
- searchParams.put("companyId",subject);
|
|
|
|
|
- }
|
|
|
|
|
- else if(type.equals("2")){
|
|
|
|
|
- searchParams.put("technicianId",subject);
|
|
|
|
|
|
|
+ if (type.equals("1")) {
|
|
|
|
|
+ searchParams.put("companyId", subject);
|
|
|
|
|
+ } else if (type.equals("2")) {
|
|
|
|
|
+ searchParams.put("technicianId", subject);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Page<Feedback> page = feedbackService.pageSearch(searchParams, pageIndex, pageSize, true, sortList);
|
|
Page<Feedback> page = feedbackService.pageSearch(searchParams, pageIndex, pageSize, true, sortList);
|
|
@@ -951,7 +966,7 @@ public class CustomerInfoApiController {
|
|
|
@ApiImplicitParam(name = "type",
|
|
@ApiImplicitParam(name = "type",
|
|
|
value = "account:账号相关", paramType = "form"),
|
|
value = "account:账号相关", paramType = "form"),
|
|
|
})
|
|
})
|
|
|
- public MessageResult<List<Map>> aboutUs(String token, String code, String type,@RequestAttribute String subject) {
|
|
|
|
|
|
|
+ public MessageResult<List<Map>> aboutUs(String token, String code, String type, @RequestAttribute String subject) {
|
|
|
|
|
|
|
|
//当前用户ID
|
|
//当前用户ID
|
|
|
System.out.println(subject);
|
|
System.out.println(subject);
|
|
@@ -960,23 +975,23 @@ public class CustomerInfoApiController {
|
|
|
|
|
|
|
|
Map<String, Object> searchParams = new HashMap<>();
|
|
Map<String, Object> searchParams = new HashMap<>();
|
|
|
|
|
|
|
|
- if(StringUtils.isNotEmpty(code)){
|
|
|
|
|
- searchParams.put("code",code);
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(code)) {
|
|
|
|
|
+ searchParams.put("code", code);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(StringUtils.isNotEmpty(type)){
|
|
|
|
|
- searchParams.put("type",type);
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(type)) {
|
|
|
|
|
+ searchParams.put("type", type);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
List<AboutUs> aboutUsList = aboutUsService.findBySearchParams(searchParams);
|
|
List<AboutUs> aboutUsList = aboutUsService.findBySearchParams(searchParams);
|
|
|
|
|
|
|
|
List<Map> mapList = new ArrayList<>();
|
|
List<Map> mapList = new ArrayList<>();
|
|
|
|
|
|
|
|
- for (AboutUs aboutUs:aboutUsList) {
|
|
|
|
|
|
|
+ for (AboutUs aboutUs : aboutUsList) {
|
|
|
Map map = new HashMap();
|
|
Map map = new HashMap();
|
|
|
- map.put("code",aboutUs.getCode());
|
|
|
|
|
- map.put("content",aboutUs.getContent());
|
|
|
|
|
- map.put("title",aboutUs.getTitle());
|
|
|
|
|
|
|
+ map.put("code", aboutUs.getCode());
|
|
|
|
|
+ map.put("content", aboutUs.getContent());
|
|
|
|
|
+ map.put("title", aboutUs.getTitle());
|
|
|
|
|
|
|
|
mapList.add(map);
|
|
mapList.add(map);
|
|
|
}
|
|
}
|