From bc672038e88a24d9f0f7127cd45c656a15c231a2 Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期三, 09 八月 2023 09:10:49 +0800
Subject: [PATCH] MOM系统-8-9
---
sale-server/src/main/resources/mapper/SaleMapper.xml | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/sale-server/src/main/resources/mapper/SaleMapper.xml b/sale-server/src/main/resources/mapper/SaleMapper.xml
new file mode 100644
index 0000000..f95c784
--- /dev/null
+++ b/sale-server/src/main/resources/mapper/SaleMapper.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.yuanchu.mom.mapper.SaleMapper">
+ <select id="selectSaleList" resultType="java.util.Map">
+ select order_number,
+ code,
+ name,
+ proname,
+ type,
+ DATE_FORMAT(delTime, '%Y-%m-%d') '浜よ揣鏃ユ湡'
+ from mom_ocean.sale
+ <where>
+ state=1
+ <if test="orderNumber!=null">
+ and order_number=#{orderNumber}
+ </if>
+ <if test="name!=null">
+ and name=#{name}
+ </if>
+ <if test="type!=null">
+ and type=#{type}
+ </if>
+ <if test="delTime!=null">
+ and DATE_FORMAT(delTime, '%Y-%m-%d')=#{delTime}
+ </if>
+ </where>
+ </select>
+</mapper>
--
Gitblit v1.9.3