From 24a1aa1d7470998522aa28b4abc728fff5bcbaf7 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 11 八月 2023 16:00:20 +0800
Subject: [PATCH] WMS--回单管理
---
inventory-server/src/main/resources/mapper/ConsignmentMapper.xml | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diff --git a/inventory-server/src/main/resources/mapper/ConsignmentMapper.xml b/inventory-server/src/main/resources/mapper/ConsignmentMapper.xml
index ccc21e2..ef52f7a 100644
--- a/inventory-server/src/main/resources/mapper/ConsignmentMapper.xml
+++ b/inventory-server/src/main/resources/mapper/ConsignmentMapper.xml
@@ -2,6 +2,32 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.yuanchu.mom.mapper.ConsignmentMapper">
<select id="selectAll" resultType="com.yuanchu.mom.pojo.Consignment">
- select * from mom_ocean.consignment where state=1
+ select *
+ from mom_ocean.consignment
+ where state = 1
+ </select>
+ <select id="selectAllCon" resultType="java.util.Map">
+ select id,
+ name,
+ specifications,
+ code,
+ customer_code,
+ unit,
+ number,
+ check_name,
+ fit_name,
+ user_name
+ from mom_ocean.consignment
+ where state=1
+ <if test="name!=null and name!=''">
+ and name like concat('%',#{name},'%')
+ </if>
+ <if test="specifications!=null and specifications!=''">
+ and specifications like concat('%',#{specifications},'%')
+ </if>
+ <if test="time!=null and time!=''">
+ and DATE_FORMAT(create_time, '%Y-%m-%d')=#{time}
+ </if>
+ order by id desc
</select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3