Commit 3ab237e3 by fudahua

根据data类型 以及datatype 来判断是否

parent 3f7a3ce7
......@@ -149,6 +149,6 @@ public interface PreDealLogMapper {
* @param taskId
* @return
*/
public int countByDataId(@Param("taskId") String taskId, @Param("dataId") String dataId);
public int countByDataId(@Param("taskId") String taskId, @Param("dataId") String dataId,@Param("dataType") int dataType);
}
\ No newline at end of file
......@@ -111,7 +111,7 @@ public class PreDealServiceImpl implements PreDealService {
@Override
public boolean existDataId(String taskId, String dataId) {
int i = preDealLogMapper.countByDataId(taskId, dataId);
int i = preDealLogMapper.countByDataId(taskId, dataId,PreDealTypeEnum.clerk.getVal());
return i > 0;
}
}
......@@ -308,5 +308,8 @@
from tab_haoban_pre_deal_log
where task_id = #{taskId}
and data_id =#{dataId}
<if test="dataType!=-1">
and data_type=#{dataType}
</if>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment