|
|
@@ -15,12 +15,14 @@ import com.fs.common.utils.StringUtils;
|
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
|
import com.fs.his.domain.FsIntegralGoods;
|
|
|
import com.fs.his.domain.FsIntegralOrder;
|
|
|
+import com.fs.his.domain.FsIntegralOrderLogs;
|
|
|
import com.fs.his.dto.ExpressInfoDTO;
|
|
|
import com.fs.his.enums.ShipperCodeEnum;
|
|
|
import com.fs.his.mapper.FsIntegralGoodsMapper;
|
|
|
import com.fs.his.param.FsIntegralOrderCreateParam;
|
|
|
import com.fs.his.param.FsIntegralOrderParam;
|
|
|
import com.fs.his.service.IFsExpressService;
|
|
|
+import com.fs.his.service.IFsIntegralOrderLogsService;
|
|
|
import com.fs.his.service.IFsIntegralOrderService;
|
|
|
import com.fs.his.utils.PhoneUtil;
|
|
|
import com.fs.his.vo.FsIntegralOrderListVO;
|
|
|
@@ -53,6 +55,9 @@ public class FsIntegralOrderController extends BaseController
|
|
|
|
|
|
@Autowired
|
|
|
private FsIntegralGoodsMapper fsIntegralGoodsMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IFsIntegralOrderLogsService fsIntegralOrderLogsService;
|
|
|
/**
|
|
|
* 查询积分商品订单列表
|
|
|
*/
|
|
|
@@ -147,16 +152,7 @@ public class FsIntegralOrderController extends BaseController
|
|
|
return R.ok().put("userPhone",userPhone);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 新增积分商品订单
|
|
|
- */
|
|
|
-// @PreAuthorize("@ss.hasPermi('his:integralOrder:add')")
|
|
|
- @Log(title = "积分商品订单", businessType = BusinessType.INSERT)
|
|
|
- @PostMapping
|
|
|
- public R add(@RequestBody FsIntegralOrderCreateParam param)
|
|
|
- {
|
|
|
- return fsIntegralOrderService.createOrder(param);
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 修改积分商品订单
|
|
|
@@ -170,13 +166,17 @@ public class FsIntegralOrderController extends BaseController
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 删除积分商品订单
|
|
|
+ * 根据订单ID查询操作记录
|
|
|
*/
|
|
|
-// @PreAuthorize("@ss.hasPermi('his:integralOrder:remove')")
|
|
|
- @Log(title = "积分商品订单", businessType = BusinessType.DELETE)
|
|
|
- @DeleteMapping("/{orderIds}")
|
|
|
- public AjaxResult remove(@PathVariable Long[] orderIds)
|
|
|
+// @PreAuthorize("@ss.hasPermi('his:logs:query')")
|
|
|
+ @GetMapping("/order/{orderId}")
|
|
|
+ public AjaxResult getLogsByOrderId(@PathVariable("orderId") Long orderId)
|
|
|
{
|
|
|
- return toAjax(fsIntegralOrderService.deleteFsIntegralOrderByOrderIds(orderIds));
|
|
|
+ FsIntegralOrderLogs queryParam = new FsIntegralOrderLogs();
|
|
|
+ queryParam.setOrderId(orderId);
|
|
|
+ List<FsIntegralOrderLogs> list = fsIntegralOrderLogsService.selectFsIntegralOrderLogsList(queryParam);
|
|
|
+ return AjaxResult.success(list);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|