소스 검색

Merge branch 'master' of http://47.108.172.52:3000/dayou/item-management-1phase

GouGengquan 3 주 전
부모
커밋
f4e8f7e107
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      dao/src/main/resources/mapper/MajorMapper.xml
  2. 1 1
      dao/src/main/resources/mapper/MajorTargetMapper.xml

+ 1 - 1
dao/src/main/resources/mapper/MajorMapper.xml

@@ -701,7 +701,7 @@
             and m.business_object_type = #{major.businessObjectType}
         </if>
         <if test="major!=null and major.userIds!=null and major.userIds.size!=0">
-            or
+            and
             m.client_manager_id  in
             <foreach collection="
             major.userIds" open="(" close=")" separator="," item="userId">#{userId}

+ 1 - 1
dao/src/main/resources/mapper/MajorTargetMapper.xml

@@ -93,7 +93,7 @@
     </select>
 
     <select id="getEvaluateAmountByTargetId" parameterType="java.util.List" resultType="java.math.BigDecimal">
-        select sum(evaluate_value) from major_target where evaluate_value is not null and deleted = 0 and id in (
+        select ifnull(sum(evaluate_value),0) from major_target where evaluate_value is not null and deleted = 0 and id in (
             <foreach collection="targetIds" item="item" separator="," index="index">
                 #{item}
             </foreach>