|
|
@@ -7,9 +7,11 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
7
|
7
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
8
|
8
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
9
|
9
|
import com.shinsoft.sto.mapper.main.CustomerMapper;
|
|
|
10
|
+import com.shinsoft.sto.model.common.selectModel;
|
|
10
|
11
|
import com.shinsoft.sto.model.main.Customer;
|
|
11
|
12
|
import com.shinsoft.sto.service.main.CustomerService;
|
|
12
|
13
|
import com.shinsoft.tools.JSONTools;
|
|
|
14
|
+import com.shinsoft.tools.model.common.ResponseCodeMsg;
|
|
13
|
15
|
import com.shinsoft.tools.model.common.ResultJSON;
|
|
14
|
16
|
import org.apache.commons.lang3.StringUtils;
|
|
15
|
17
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -118,4 +120,17 @@ public class CustomerServiceImp extends ServiceImpl<CustomerMapper, Customer> im
|
|
118
|
120
|
resultJSON = JSONTools.toResultJSON("");
|
|
119
|
121
|
return resultJSON;
|
|
120
|
122
|
}
|
|
|
123
|
+
|
|
|
124
|
+ @Override
|
|
|
125
|
+ public ResultJSON querySelect(String belongId) {
|
|
|
126
|
+ try {
|
|
|
127
|
+ List<selectModel> list = customerMapper.selectCustomerOptions(belongId);
|
|
|
128
|
+ resultJSON = JSONTools.toResultJSON(list);
|
|
|
129
|
+ return resultJSON;
|
|
|
130
|
+ } catch (Exception ex) {
|
|
|
131
|
+ ex.printStackTrace();
|
|
|
132
|
+ resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ex);
|
|
|
133
|
+ return resultJSON;
|
|
|
134
|
+ }
|
|
|
135
|
+ }
|
|
121
|
136
|
}
|