1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| <?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.ManufactureOrderMapper">
| <!--查询生产订单的列表-->
| <select id="selectAllManord" resultType="java.util.Map">
| select id,
| order_code,
| customer_code,
| saleman,
| proname,
| name,
| specifications,
| unit,
| number,
| DATE_FORMAT(downTime, '%Y-%m-%d') '下单日期',
| DATE_FORMAT(delTime, '%Y-%m-%d') '交货日期',
| type
| from mom_ocean.manufacture_order
| where state=1
| <if test="downTime!=null and downTime!=''">
| and downTime=#{downTime}
| </if>
| <if test="delTime!=null and delTime!=''">
| and delTime=#{delTime}
| </if>
| <if test="customerCode!=null and customerCode!=''">
| and customer_code like concat('%',#{customerCode},'%')
| </if>
| <if test="type!=null">
| and type=#{type}
| </if>
| </select>
| </mapper>
|
|