Commit cd5e9c75 by zhiwj

导购交互优化

parent d267d315
package com.gic.store.constant;
/**
* @author zhiwj
* @Description:
* @date 2020-10-21 11:30
*/
public enum ClerkSearchTypeEnum {
CLERK(1),
STORE(2);
private Integer type;
ClerkSearchTypeEnum(Integer type) {
this.type = type;
}
public Integer getType() {
return type;
}
}
...@@ -18,6 +18,7 @@ import com.gic.enterprise.service.QrCodeApiService; ...@@ -18,6 +18,7 @@ import com.gic.enterprise.service.QrCodeApiService;
import com.gic.enterprise.utils.ResultControllerUtils; import com.gic.enterprise.utils.ResultControllerUtils;
import com.gic.enterprise.utils.UserDetailUtils; import com.gic.enterprise.utils.UserDetailUtils;
import com.gic.store.constant.ClerkLogReasonEnum; import com.gic.store.constant.ClerkLogReasonEnum;
import com.gic.store.constant.ClerkSearchTypeEnum;
import com.gic.store.dto.ClerkDTO; import com.gic.store.dto.ClerkDTO;
import com.gic.store.dto.ClerkLogDTO; import com.gic.store.dto.ClerkLogDTO;
import com.gic.store.dto.ClerkSearchDTO; import com.gic.store.dto.ClerkSearchDTO;
...@@ -252,7 +253,7 @@ public class ClerkController extends DownloadUtils { ...@@ -252,7 +253,7 @@ public class ClerkController extends DownloadUtils {
public RestResponse listClerk(@RequestBody ClerkSearchDTO clerkSearchDTO) { public RestResponse listClerk(@RequestBody ClerkSearchDTO clerkSearchDTO) {
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId(); Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
clerkSearchDTO.setEnterpriseId(enterpriseId); clerkSearchDTO.setEnterpriseId(enterpriseId);
if (clerkSearchDTO.getSearchType() == 2) { if (ClerkSearchTypeEnum.STORE.getType().equals(clerkSearchDTO.getSearchType())) {
// 如果是查询门店 查询参数其实是storeSearch // 如果是查询门店 查询参数其实是storeSearch
String search = clerkSearchDTO.getSearch(); String search = clerkSearchDTO.getSearch();
clerkSearchDTO.setStoreSearch(search); clerkSearchDTO.setStoreSearch(search);
...@@ -281,7 +282,7 @@ public class ClerkController extends DownloadUtils { ...@@ -281,7 +282,7 @@ public class ClerkController extends DownloadUtils {
public RestResponse countClerk(@RequestBody ClerkSearchDTO clerkSearchDTO) { public RestResponse countClerk(@RequestBody ClerkSearchDTO clerkSearchDTO) {
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId(); Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
clerkSearchDTO.setEnterpriseId(enterpriseId); clerkSearchDTO.setEnterpriseId(enterpriseId);
if (clerkSearchDTO.getSearchType() == 2) { if (ClerkSearchTypeEnum.STORE.getType().equals(clerkSearchDTO.getSearchType())) {
// 如果是查询门店 查询参数其实是storeSearch // 如果是查询门店 查询参数其实是storeSearch
String search = clerkSearchDTO.getSearch(); String search = clerkSearchDTO.getSearch();
clerkSearchDTO.setStoreSearch(search); clerkSearchDTO.setStoreSearch(search);
......
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