before test
This commit is contained in:
@@ -10,11 +10,9 @@ import com.peanut.modules.book.service.ExpressCompanyService;
|
||||
import com.peanut.modules.book.service.ExpressOrderService;
|
||||
import com.peanut.modules.book.vo.ExpressCompanyVo;
|
||||
import com.peanut.modules.book.vo.response.PrintTemplateVo;
|
||||
import io.swagger.models.auth.In;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@@ -83,11 +81,11 @@ public class ExpressController {
|
||||
return R.ok().put("result", result);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/printTemplate", method = RequestMethod.GET)
|
||||
public R printTemplate(@RequestParam("expressOrderId") Integer expressOrderId) {
|
||||
@RequestMapping(value = "/printTemplate", method = RequestMethod.POST)
|
||||
public R printTemplate(@RequestBody List<Integer> expressOrderIdList) {
|
||||
UpdateWrapper<ExpressOrder> updateWrapper = new UpdateWrapper<>();
|
||||
updateWrapper.set("template_printed", 1);
|
||||
updateWrapper.eq("id", expressOrderId);
|
||||
updateWrapper.in("id", expressOrderIdList);
|
||||
expressOrderService.update(updateWrapper);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user