This commit is contained in:
齐天大圣 2024-03-19 11:09:35 +08:00
parent 55be54b4ad
commit 6b7658eb89
3 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ public class AllOrderInfoController extends BaseController {
* @return
*/
@PostMapping("/orderStatus")
public ResponseObject editStatus(@RequestBody Map<String,String> map){
public ResponseObject editStatus(@RequestBody Map<String,String> map) throws Exception {
String orderNo = map.get("orderNo");
String status = map.get("status");
return getSuccessResult(allOrderInfoService.updateAllOrderInfoByOrderNo(orderNo,status));

View File

@ -52,7 +52,7 @@ public interface AllOrderInfoService {
* @param orderNo
* @return
*/
public int updateAllOrderInfoByOrderNo(String orderNo,String status);
public int updateAllOrderInfoByOrderNo(String orderNo,String status) throws Exception;
public int refund(Map<String,String> map);

View File

@ -104,7 +104,7 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
@Override
public int updateAllOrderInfoByOrderNo(String orderNo, String status) {
public int updateAllOrderInfoByOrderNo(String orderNo, String status) throws Exception {
int row = 0;
AllOrderInfo allOrderInfo = this.selectAllOrderInfoByOrderNo(orderNo);
if (ObjectUtil.isNotEmpty(allOrderInfo)){