|
|
@@ -51,6 +51,7 @@ import com.goafanti.message.bo.MessageBo;
|
|
|
import com.goafanti.message.bo.MessageListBo;
|
|
|
import com.goafanti.message.service.MessageService;
|
|
|
import com.goafanti.news.service.NewsService;
|
|
|
+import com.goafanti.order.service.JtOrderService;
|
|
|
import com.goafanti.user.service.UserCareerService;
|
|
|
import com.goafanti.user.service.UserIdentityService;
|
|
|
import com.goafanti.user.service.UserInterestService;
|
|
|
@@ -82,6 +83,8 @@ public class AppUserController extends BaseApiController {
|
|
|
@Resource
|
|
|
AchievementInterestService achievementInterestService;
|
|
|
@Resource
|
|
|
+ JtOrderService jtOrderService;
|
|
|
+ @Resource
|
|
|
private FieldGlossoryService fieldGlossoryService;
|
|
|
@Resource
|
|
|
private UserService userService;
|
|
|
@@ -590,4 +593,19 @@ public class AppUserController extends BaseApiController {
|
|
|
VerifyCodeUtils.clearMobileCode();
|
|
|
VerifyCodeUtils.clearMobileCodeTime();
|
|
|
}
|
|
|
+ /*
|
|
|
+ * userType-----0-购买者 1-出售者 2-管理员
|
|
|
+ *
|
|
|
+ * */
|
|
|
+ @RequestMapping(value="/list",method = RequestMethod.GET)
|
|
|
+ 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;
|
|
|
+ }
|
|
|
}
|