添加日志
This commit is contained in:
@@ -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值更新到数据库,避免覆盖之前有值的
|
||||
|
||||
@@ -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);
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user