瀏覽代碼

我的客户列表新增默认值

anderx 1 年之前
父節點
當前提交
2ac3a267a0
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

+ 5 - 1
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -3181,7 +3181,11 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 	@Override
 	public Pagination<SelectMyUserOut> selectMyUser(SelectMyUserBo in) {
 		Map<String, Object> params = new HashMap<>();
-		if (in.getType() != null) params.put("type", in.getType());
+		if (in.getType() != null){
+			params.put("type", in.getType());
+		}else {
+			params.put("type", 0);
+		}
 		if (in.getLevel() !=null) params.put("level", in.getLevel());
 		if (in.getShareType() != null) params.put("shareType", in.getShareType());
 		if (in.getName() != null) params.put("name", in.getName());