| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.entity.accept.AdminAcceptData;
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.yeshi.utils.JsonUtil;
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping("query")
|
| | | public void query(String callback, Integer pageIndex, Integer pageSize, String key, Integer state, |
| | | Integer handleType, Integer type, PrintWriter out) {
|
| | | public void query(AdminAcceptData acceptData, String callback, Integer pageIndex, Integer pageSize, String key, Integer state,
|
| | | Integer handleType, Integer type, PrintWriter out) {
|
| | |
|
| | | if (pageIndex == null || pageIndex < 0){
|
| | | pageIndex = 1;
|
| | |
| | |
|
| | | try {
|
| | |
|
| | | List<LostOrder> list = lostOrderService.listQuery((pageIndex - 1) * pageSize, pageSize, key, state, handleType, type);
|
| | | List<LostOrder> list = lostOrderService.listQuery((pageIndex - 1) * pageSize, pageSize, key, state, handleType, type,acceptData.getSystem());
|
| | | if (list == null || list.size() == 0) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("暂无更多数据"));
|
| | | return;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | long count = lostOrderService.countQuery(key, state, handleType, type);
|
| | | long count = lostOrderService.countQuery(key, state, handleType, type,acceptData.getSystem());
|
| | | int totalPage = (int) (count % pageSize == 0 ? count / pageSize : count / pageSize + 1);
|
| | | PageEntity pe = new PageEntity(pageIndex, pageSize, count, totalPage);
|
| | |
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping("passOrder")
|
| | | public void passOrder(String callback, Long id, PrintWriter out) {
|
| | | public void passOrder(AdminAcceptData acceptData,String callback, Long id, PrintWriter out) {
|
| | |
|
| | | if (id == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("ID不能为空"));
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping("rejectOrder")
|
| | | public void rejectOrder(String callback, Long id, String reason, PrintWriter out) {
|
| | | public void rejectOrder(AdminAcceptData acceptData,String callback, Long id, String reason, PrintWriter out) {
|
| | | if (id == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("ID不能为空"));
|
| | | return;
|