|
|
@@ -20,7 +20,7 @@ import com.google.gson.Gson;
|
|
|
import com.google.gson.reflect.TypeToken;
|
|
|
|
|
|
@RestController
|
|
|
-@RequestMapping(value = "/api/user/jtOrder")
|
|
|
+@RequestMapping(value = "/open/api/user/jtOrder")
|
|
|
public class UserJtOrderController extends BaseApiController {
|
|
|
@Resource
|
|
|
JtOrderService jtOrderService;
|
|
|
@@ -51,12 +51,13 @@ public class UserJtOrderController extends BaseApiController {
|
|
|
*
|
|
|
* */
|
|
|
@RequestMapping(value="/list",method = RequestMethod.GET)
|
|
|
- public Result getMyJtOrderList(Integer orderType,String orderNo,Date startCreateDate,Date endCreateDate,String sellerName,String buyerName,String commodityName,Integer userType,Integer pageNo,Integer pageSize) {
|
|
|
+ public Result getMyJtOrderList(Integer orderType,String orderNo,String startCreateDate,String endCreateDate,String sellerName,String buyerName,String commodityName,Integer userType,Integer pageNo,Integer pageSize) {
|
|
|
Result result=new Result();
|
|
|
if(userType==null || userType>1 || userType<0) {
|
|
|
result.getError().add(buildError(ErrorConstants.PARAM_ERROR,"","用户类型错误"));
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
result.setData(jtOrderService.searchOrderList(orderType,orderNo, startCreateDate, endCreateDate, sellerName, buyerName, commodityName, userType, pageNo, pageSize));
|
|
|
return result;
|
|
|
}
|