From 2e3c12ca3a7241f498c32121cb1572502c998d0d Mon Sep 17 00:00:00 2001 From: 935090232@qq.com <ak473600000> Date: Sat, 09 Jan 2021 00:42:00 +0800 Subject: [PATCH] 公众号模板消息demo --- zq-erp/src/main/resources/mybatis/mapper/hive/SysProjUseDao.xml | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjUseDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjUseDao.xml index fee7b2f..5c35d98 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjUseDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjUseDao.xml @@ -237,6 +237,9 @@ <if test="record.id != null and record.id !='' "> and a.ID = #{record.id} </if> + <if test="record.queryKey != null and record.queryKey !='' "> + and (instr(b.name, #{record.queryKey}) or instr(b.zjm, #{record.queryKey}) or instr(goods_no, #{record.queryKey})) + </if> <if test="record.orderItemId != null and record.orderItemId !='' "> and a.ORDER_ITEM_ID = #{record.orderItemId} </if> @@ -268,7 +271,9 @@ <if test="record.failTime != null "> and a.FAIL_TIME = #{record.failTime} </if> - + <if test="record.targetFailTime != null "> + and date_format(#{record.failTime}, '%Y-%m-%d') > date_format(a.FAIL_TIME, '%Y-%m-%d') + </if> <if test="record.price != null and record.price !='' "> and a.PRICE = #{record.price} </if> @@ -727,4 +732,9 @@ group by b.id) t </select> + <select id="selectHasValidProjUse" resultMap="SysProjUseMap"> + select * from sys_proj_use + where date_format(now(), '%Y-%m-%d') > date_format(FAIL_TIME, '%Y-%m-%d') and STATUS='有效' + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.1