|
|
|
@@ -4,6 +4,7 @@ import com.github.pagehelper.PageInfo; |
|
|
|
import com.iformall.common.ErrorCode; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.dto.WxMerchantDto; |
|
|
|
import com.iformall.domain.po.WxMerchantCorp; |
|
|
|
import com.iformall.domain.po.base.TenantEntity; |
|
|
|
import com.iformall.domain.vo.WxMerchantVo; |
|
|
|
import com.iformall.enums.EnumMerchantPublic; |
|
|
|
@@ -20,6 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* @author Stormeye |
|
|
|
@@ -46,6 +48,20 @@ public class WxMerchantController extends BaseController { |
|
|
|
return new ResultData(wxMerchantService.listAsPageCVo(wxMerchantDto, pageNum, pageSize,true)); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("查询资质信息") |
|
|
|
@GetMapping("/findCorp") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
public ResultData findCorp(Long id) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxMerchantController::findCorp"); |
|
|
|
if(id == null) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
|
} |
|
|
|
WxMerchantCorp wxMerchantCorp = wxMerchantService.getMerchantCorp(getTenantInfo(),id); |
|
|
|
return new ResultData(wxMerchantCorp); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("根据code查询接口") |
|
|
|
@GetMapping("/findByCode") |
|
|
|
@ApiImplicitParam(name = "merchantCode", value = "merchantCode", dataType = "String", paramType = "query", required = true) |
|
|
|
|