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. 6
      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);
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);
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;
}
@Override
public SysSalesOrderVo selectSysSalesOrderBySalesOrderCode(String salesOrderCode) {
SysSalesOrderVo sysSalesOrderVo = sysSalesOrderMapper.selectSysSalesOrderBySalesOrderCode(salesOrderCode);
return sysSalesOrderVo;
}
@Override
public List<SysSalesOrder> selectSysSalesOrderList(SysSalesOrder sysSalesOrder) {
return null;

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

@ -131,7 +131,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectSysSalesOrderVo"/>
where sales_order_id = #{salesOrderId}
</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 into sys_sales_order
<trim prefix="(" suffix=")" suffixOverrides=",">

Loading…
Cancel
Save