浏览代码

fix: 领包记录部分情况查不到的问题

李学松 2 年之前
父节点
当前提交
c6c0339c45
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      hnqz-upms/hnqz-upms-biz/src/main/resources/mapper/WmScorePackageStatusMapper.xml

+ 4 - 1
hnqz-upms/hnqz-upms-biz/src/main/resources/mapper/WmScorePackageStatusMapper.xml

@@ -139,7 +139,7 @@
 		left join sys_user u1 on u1.user_id = s.user_id
 		where  s.del_flag=0  and p.del_flag=0
 		  and p.typeid=4
-		  and p.source_type = '0'
+		  and (p.source_type = '0' or p.source_type is null)
 		<if test="query.id!=null and query.id!=''">
 			and s.id=#{query.id}
 		</if>
@@ -164,6 +164,9 @@
 				#{teamId}
 			</foreach>
 		</if>
+		<if test="query.deptId != null">
+			and p.dept_id = #{query.deptId}
+		</if>
 		order by s.create_time desc
 	</select>