浏览代码

fix: BC-企业承接任务查询条件问题

lixuesong 1 年之前
父节点
当前提交
12807d2c84
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      hnqz-upms/hnqz-upms-biz/src/main/resources/mapper/WmScorePackageMapper.xml

+ 2 - 2
hnqz-upms/hnqz-upms-biz/src/main/resources/mapper/WmScorePackageMapper.xml

@@ -818,10 +818,10 @@
 			<if test="scorePackageName != null">
 				AND o.score_package_name like CONCAT('%',#{scorePackageName},'%')
 			</if>
-			<if test="allocationDate != null and endLabelDate != null">
+			<if test="allocationDate != null and allocationDate != '' and endLabelDate != null and endLabelDate != ''">
 				AND (o.allocation_date BETWEEN #{allocationDate} AND #{endLabelDate})
 			</if>
-			<if test="acceptSug != null">
+			<if test="acceptSug != null and acceptSug != ''">
 				AND o.accept_sug = #{acceptSug}
 			</if>
 		</where>