线索进度

This commit is contained in:
苏竹红
2024-04-02 17:01:07 +08:00
parent 7ac4057d3f
commit 85a329b82e
17 changed files with 354 additions and 14 deletions

View File

@@ -2,9 +2,12 @@ package com.cool.store.dao;
import com.cool.store.entity.LineAuditInfoDO;
import com.cool.store.mapper.LineAuditInfoMapper;
import com.google.common.collect.Lists;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.util.List;
/**
* @author zhangchenbiao
@@ -27,4 +30,11 @@ public class LineAuditInfoDAO {
return lineAuditInfoMapper.selectByPrimaryKey(auditId);
}
public List<LineAuditInfoDO> getLineAuditInfoList(List<Long> auditIds){
if (CollectionUtils.isEmpty(auditIds)){
return Lists.newArrayList();
}
return lineAuditInfoMapper.getLineAuditInfoList(auditIds);
}
}

View File

@@ -78,4 +78,8 @@ public class LineInterviewDAO {
public Integer deleteInterviewInfo(Long interviewId) {
return lineInterviewMapper.deleteInterviewInfo(interviewId);
}
public List<LineInterviewDO> getInterviewByLineId(Long lineId){
return lineInterviewMapper.getInterviewByLineId(lineId);
}
}

View File

@@ -1,7 +1,20 @@
package com.cool.store.mapper;
import com.cool.store.entity.LineAuditInfoDO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
public interface LineAuditInfoMapper extends Mapper<LineAuditInfoDO> {
/**
* getLineAuditInfoList
* @param ids
* @return
*/
List<LineAuditInfoDO> getLineAuditInfoList(@Param("ids") List<Long> ids);
}

View File

@@ -47,4 +47,6 @@ public interface LineInterviewMapper extends Mapper<LineInterviewDO> {
* @return
*/
Integer deleteInterviewInfo(@Param("interviewId")Long interviewId);
List<LineInterviewDO> getInterviewByLineId(@Param("lineId") Long lineId);
}

View File

@@ -14,4 +14,18 @@
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="deleted" jdbcType="BIT" property="deleted" />
</resultMap>
<select id="getLineAuditInfoList" resultMap="BaseResultMap">
select * from
xfsg_line_audit_info
<where>
<if test="ids != null">
<foreach collection="ids" item="item" separator="," open="and id in (" close=")">
#{item}
</foreach>
</if>
</where>
</select>
</mapper>

View File

@@ -105,4 +105,11 @@
update xfsg_line_interview set deleted = '1' where id = #{interviewId}
</update>
<select id="getInterviewByLineId" resultMap="BaseResultMap">
select * from
xfsg_line_interview
where line_id = #{lineId}
and deleted = '0'
</select>
</mapper>