Browse Source

[update]:根据编号查询销售订单方法

dev
youjianchi 8 months ago
parent
commit
3ff28cd45e
  1. 2
      ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysSalesOrderMapper.java
  2. 2
      ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysSalesOrderService.java
  3. 6
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesOrderServiceImpl.java
  4. 4
      ruoyi-admin/src/main/resources/mapper/system/SysSalesOrderMapper.xml

2
ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysSalesOrderMapper.java

@ -20,6 +20,8 @@ public interface SysSalesOrderMapper
*/ */
public SysSalesOrderVo selectSysSalesOrderById(Long salesOrderId); public SysSalesOrderVo selectSysSalesOrderById(Long salesOrderId);
SysSalesOrderVo selectSysSalesOrderBySalesOrderCode(String salesOrderCode);
/** /**
* 查询销售订单列表 * 查询销售订单列表
* *

2
ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysSalesOrderService.java

@ -24,6 +24,8 @@ public interface ISysSalesOrderService
*/ */
public SysSalesOrderVo selectSysSalesOrderById(Long salesOrderId); public SysSalesOrderVo selectSysSalesOrderById(Long salesOrderId);
SysSalesOrderVo selectSysSalesOrderBySalesOrderCode(String salesOrderCode);
/** /**
* 查询销售订单列表 * 查询销售订单列表
* *

6
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesOrderServiceImpl.java

@ -87,6 +87,12 @@ public class SysSalesOrderServiceImpl implements ISysSalesOrderService
return sysSalesOrderVo; return sysSalesOrderVo;
} }
@Override
public SysSalesOrderVo selectSysSalesOrderBySalesOrderCode(String salesOrderCode) {
SysSalesOrderVo sysSalesOrderVo = sysSalesOrderMapper.selectSysSalesOrderBySalesOrderCode(salesOrderCode);
return sysSalesOrderVo;
}
@Override @Override
public List<SysSalesOrder> selectSysSalesOrderList(SysSalesOrder sysSalesOrder) { public List<SysSalesOrder> selectSysSalesOrderList(SysSalesOrder sysSalesOrder) {
return null; return null;

4
ruoyi-admin/src/main/resources/mapper/system/SysSalesOrderMapper.xml

@ -131,6 +131,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectSysSalesOrderVo"/> <include refid="selectSysSalesOrderVo"/>
where sales_order_id = #{salesOrderId} where sales_order_id = #{salesOrderId}
</select> </select>
<select id="selectSysSalesOrderBySalesOrderCode" resultMap="SysSalesOrderResult">
<include refid="selectSysSalesOrderVo"/>
where sales_order_code = #{salesOrderCode}
</select>
<insert id="insertSysSalesOrder" parameterType="SysSalesOrder" useGeneratedKeys="true" keyProperty="salesOrderId"> <insert id="insertSysSalesOrder" parameterType="SysSalesOrder" useGeneratedKeys="true" keyProperty="salesOrderId">
insert into sys_sales_order insert into sys_sales_order

Loading…
Cancel
Save