From 83c2b6cbf12ed3308eb875f517f2a1ed53d2dc9e Mon Sep 17 00:00:00 2001
From: jiangshuang <jswswws@163.com>
Date: 星期五, 25 十月 2024 15:12:37 +0800
Subject: [PATCH] CRM>分单系统销售退货单同步
---
JavaSource/com/mandi/fendan/mapper/Fd_XSTDMXMapper.java | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/JavaSource/com/mandi/fendan/mapper/Fd_XSTDMXMapper.java b/JavaSource/com/mandi/fendan/mapper/Fd_XSTDMXMapper.java
index 449409a..29738eb 100644
--- a/JavaSource/com/mandi/fendan/mapper/Fd_XSTDMXMapper.java
+++ b/JavaSource/com/mandi/fendan/mapper/Fd_XSTDMXMapper.java
@@ -162,19 +162,30 @@
" left join nc_hw hw on mx.tdmx_hwbh=hw.pkid and hw.state=1 " ,
" join xs_taskmonitor xt on mx.tdmx_fdywbh = xt.businessNo ",
" join fd_bsheet on bsNo=tdmx_fdywbh and status='鍦ㄥ姙' " ,
- " where SdepartNo=#{sdepartNo} and xt.firstgbtime is not null and xt.lastgbtime is null and zcWc=0"
+ " where SdepartNo=#{sdepartNo} and xt.firstgbtime is not null and xt.lastgbtime is null"
})
public List<Map> getHwList(String sdepartNo);
- // 涔夌憺LED鏄剧ず 搴忓彿 杞﹀彿 瑁呰溅鍖� 鐘舵��
+ /** 涔夌憺銆佺鎶�LED鏄剧ず 搴忓彿 杞﹀彿 瑁呰溅鍖� 鐘舵�� **/
+ @Deprecated
@Select({
"select bs.numberplates,businessNo,zcWz,firstzxhtime," ,
"case WHEN EXISTS ( SELECT * FROM bussinessitems WHERE bussinessNo = x.businessNo ) THEN '鍦ㄨ'" ,
" when x.firstgbtime is not null then '寰呰' else '瀹屾垚' end zcStatus " ,
" from xs_taskmonitor x" ,
- " join bussinesssheet bs on x.businessNo=bs.bussinessNo" ,
- " where sdepartNo=#{sdepartNo} and x.lastgbtime is null and zcWc=0"
+ " join bussinesssheet bs on x.businessNo=bs.bussinessNo and bs.sstatus='鍦ㄥ姙' " ,
+ " where sdepartNo=#{sdepartNo} and firstgbtime is not null and x.lastgbtime is null order by jctime"
})
public List<Map> yRZcList(String sdepartNo);
+ // 涔夌憺銆佺鎶�LED鏄剧ず 绉戞妧杞﹁締杩涘巶鍚庢樉绀虹瓑寰咃紝鎵爜鍚庢樉绀鸿杞︼紝浜屾杩囩鍚庝笉鍐嶆樉绀�
+ @Select({
+ "select bs.numberplates,businessNo,zcWz,firstzxhtime," ,
+ "case WHEN EXISTS ( SELECT * FROM bussinessitems WHERE bussinessNo = x.businessNo ) THEN '瑁呰溅'" ,
+ " when x.jctime is not null then '绛夊緟' else '' end zcStatus " ,
+ " from xs_taskmonitor x" ,
+ " join bussinesssheet bs on x.businessNo=bs.bussinessNo and bs.sstatus='鍦ㄥ姙' " ,
+ " where sdepartNo=#{sdepartNo} and jctime is not null and x.lastgbtime is null order by jctime"
+ })
+ public List<Map> kjZcList(String sdepartNo);
}
--
Gitblit v1.9.3