|
@@ -123,7 +123,7 @@ public class TaCompanyController extends BaseController {
|
123
|
123
|
QueryWrapper<TaCompany> queryWrapper = new QueryWrapper<>();
|
124
|
124
|
queryWrapper.like(StringUtils.isNotBlank(companyName), "company_name", companyName);
|
125
|
125
|
queryWrapper.like(StringUtils.isNotBlank(companyCode), "company_code", companyCode);
|
126
|
|
- queryWrapper.eq("status", CommConstant.STATUS_NORMAL);
|
|
126
|
+ queryWrapper.eq("status", CommConstant.REAL_NAME_STATUS);
|
127
|
127
|
queryWrapper.orderByDesc("create_date");
|
128
|
128
|
|
129
|
129
|
IPage<TaCompany> result = iTaCompanyService.page(pg, queryWrapper);
|
|
@@ -153,10 +153,10 @@ public class TaCompanyController extends BaseController {
|
153
|
153
|
@RequestMapping(value = "/channel/taCompanyList", method = RequestMethod.GET)
|
154
|
154
|
public ResponseBean channelCompanyList(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
155
|
155
|
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
|
156
|
|
- @RequestParam(value = "companyName") String companyName,
|
157
|
|
- @RequestParam(value = "companyCode")String companyCode,
|
158
|
|
- @RequestParam(value = "certifiedStatus")String certifiedStatus,
|
159
|
|
- @RequestParam(value = "authorizeStatus")String authorizeStatus) {
|
|
156
|
+ @RequestParam(value = "companyName", required = false) String companyName,
|
|
157
|
+ @RequestParam(value = "companyCode", required = false)String companyCode,
|
|
158
|
+ @RequestParam(value = "status", required = false)String status,
|
|
159
|
+ @RequestParam(value = "authorizeStatus", required = false)String authorizeStatus) {
|
160
|
160
|
ResponseBean responseBean = new ResponseBean();
|
161
|
161
|
try {
|
162
|
162
|
//使用分页插件
|
|
@@ -164,9 +164,9 @@ public class TaCompanyController extends BaseController {
|
164
|
164
|
QueryWrapper<TaCompany> queryWrapper = new QueryWrapper<>();
|
165
|
165
|
queryWrapper.like(StringUtils.isNotBlank(companyName), "company_name", companyName);
|
166
|
166
|
queryWrapper.like(StringUtils.isNotBlank(companyCode), "company_code", companyCode);
|
167
|
|
- queryWrapper.eq(StringUtils.isNotBlank(certifiedStatus), "certified_status", certifiedStatus);
|
|
167
|
+ queryWrapper.eq(StringUtils.isNotBlank(status), "status", status);
|
168
|
168
|
queryWrapper.eq(StringUtils.isNotBlank(authorizeStatus), "authorize_status", authorizeStatus);
|
169
|
|
- queryWrapper.eq("status", CommConstant.STATUS_NORMAL);
|
|
169
|
+ queryWrapper.ne("status", CommConstant.STATUS_DELETE);
|
170
|
170
|
queryWrapper.orderByDesc("create_date");
|
171
|
171
|
|
172
|
172
|
IPage<TaCompany> result = iTaCompanyService.page(pg, queryWrapper);
|
|
@@ -485,7 +485,8 @@ public class TaCompanyController extends BaseController {
|
485
|
485
|
* 自动签章授权
|
486
|
486
|
*/
|
487
|
487
|
@RequestMapping(value = "/channel/company/autoAuthCompany/{id}", method = RequestMethod.PUT)
|
488
|
|
- public ResponseBean autoAuthCompanySeal(@PathVariable Integer id, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
488
|
+ public ResponseBean autoAuthCompanySeal(@PathVariable Integer id, HttpServletRequest request) throws Exception {
|
|
489
|
+ StringBuffer url = request.getRequestURL();
|
489
|
490
|
ResponseBean responseBean = new ResponseBean();
|
490
|
491
|
String res = iTaCompanyService.autoAuthCompanySeal(id, getOrgId(request));
|
491
|
492
|
TaCompany taCompany = new TaCompany();
|