添加日志

This commit is contained in:
苏竹红
2023-07-04 10:45:34 +08:00
parent df663b9a8c
commit 30859295d6
11 changed files with 102 additions and 22 deletions

View File

@@ -4,6 +4,7 @@ import com.cool.store.entity.HyPartnerBaseInfoDO;
import com.cool.store.mapper.HyPartnerBaseInfoMapper;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
@@ -35,6 +36,10 @@ public class HyPartnerBaseInfoDAO {
return hyPartnerBaseInfoMapper.batchInsert(records);
}
public HyPartnerBaseInfoDO selectById(@Param("id") Long id){
return hyPartnerBaseInfoMapper.selectById(id);
}
/**
*
* 默认更新方法根据主键更新不会把null值更新到数据库避免覆盖之前有值的

View File

@@ -18,6 +18,14 @@ public interface HyPartnerBaseInfoMapper {
*/
int insertSelective(@Param("record") HyPartnerBaseInfoDO record);
/**
* 跟进ID查询
* @param id
* @return
*/
HyPartnerBaseInfoDO selectById(@Param("id") Long id);
int batchInsert(@Param("records") List<HyPartnerBaseInfoDO> records);
/**

View File

@@ -28,6 +28,13 @@
pass_reason, certify_file, create_time, update_time
</sql>
<select id="selectById" resultMap="BaseResultMap">
select <include refid="Base_Column_List"></include>
from hy_partner_base_info
where
id = #{id}
</select>
<insert id="batchInsert">
insert into
hy_partner_base_info