| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.ruoyi.common.annotation.DataSource; |
| | | import com.ruoyi.common.enums.DataSourceType; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.system.mapper.ServiceOrderMapper; |
| | |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | |
| | | @DataSource(DataSourceType.SQLSERVER) |
| | | @Service |
| | | public class ServiceOrderServiceImpl implements IServiceOrderService { |
| | | @Autowired |
| | |
| | | public int deleteServiceOrderById(Long serviceOrdId) { |
| | | return serviceOrderMapper.deleteServiceOrderById(serviceOrdId); |
| | | } |
| | | |
| | | /** |
| | | * 更新服务订单取消信息 |
| | | * |
| | | * @param serviceOrdId 服务订单ID |
| | | * @param cancelReason 取消原因ID |
| | | * @param cancelReasonText 取消原因文本 |
| | | * @return 影响行数 |
| | | */ |
| | | @Override |
| | | public int updateServiceOrderCancelInfo(Long serviceOrdId, Integer cancelReason, String cancelReasonText) { |
| | | return serviceOrderMapper.updateServiceOrderCancelInfo(serviceOrdId, cancelReason, cancelReasonText); |
| | | } |
| | | |
| | | /** |
| | | * 根据服务订单ID查询订单状态 |
| | | * |
| | | * @param serviceOrdId 服务订单ID |
| | | * @return 订单状态码 |
| | | */ |
| | | @Override |
| | | public Integer selectServiceOrderStateById(Long serviceOrdId) { |
| | | return serviceOrderMapper.selectServiceOrderStateById(serviceOrdId); |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, Object> selectCancelInfoById(Long serviceOrdId) { |
| | | return serviceOrderMapper.selectServiceCancelInfoById(serviceOrdId); |
| | | } |
| | | } |