| | |
| | | |
| | | import com.java110.core.base.controller.BaseController; |
| | | import com.java110.core.factory.DataTransactionFactory; |
| | | import com.java110.core.trace.Java110TraceLog; |
| | | import com.java110.service.context.DataQuery; |
| | | import com.java110.service.context.DataQueryFactory; |
| | | import com.java110.service.smo.IQueryServiceSMO; |
| | |
| | | @ApiOperation(value = "业务查询get请求", notes = "test: 返回 2XX 表示服务正常") |
| | | @ApiImplicitParam(paramType = "query", name = "method", value = "用户编号", required = true, dataType = "String") |
| | | @Deprecated |
| | | @Java110TraceLog |
| | | public ResponseEntity<String> service(HttpServletRequest request) { |
| | | try { |
| | | Map<String, Object> headers = new HashMap<String, Object>(); |
| | |
| | | @ApiOperation(value = "业务查询post请求", notes = "test: 返回 2XX 表示服务正常") |
| | | @ApiImplicitParam(paramType = "query", name = "method", value = "用户编号", required = true, dataType = "String") |
| | | @Deprecated |
| | | @Java110TraceLog |
| | | public ResponseEntity<String> queryPost(@RequestBody String businessInfo) { |
| | | try { |
| | | DataQuery dataQuery = DataQueryFactory.newInstance().builder(businessInfo); |
| | |
| | | |
| | | @Deprecated |
| | | @RequestMapping(path = "/businessApi/do", method = RequestMethod.GET) |
| | | @Java110TraceLog |
| | | public String doGet(HttpServletRequest request) { |
| | | return DataTransactionFactory.createBusinessResponseJson(ResponseConstant.RESULT_CODE_ERROR, "不支持Get方法请求").toJSONString(); |
| | | } |
| | |
| | | */ |
| | | @Deprecated |
| | | @RequestMapping(path = "/businessApi/do", method = RequestMethod.POST) |
| | | @Java110TraceLog |
| | | public String doPost(@RequestBody String businessInfo) { |
| | | try { |
| | | DataQuery dataQuery = DataQueryFactory.newInstance().builder(businessInfo); |
| | |
| | | |
| | | |
| | | @RequestMapping(path = "/businessApi/fallBack", method = RequestMethod.POST) |
| | | @Java110TraceLog |
| | | public ResponseEntity<String> fallBack(@RequestBody String fallBackInfo) { |
| | | try { |
| | | return queryServiceSMOImpl.fallBack(fallBackInfo); |