Commit 527094e8 authored by 张俊's avatar 张俊

楼盘清册导入优化开发

parent e9123a3a
This diff is collapsed.
......@@ -4,6 +4,8 @@ import io.renren.modules.app.entity.DyxxEntity;
import io.renren.modules.app.entity.XlkEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
......@@ -32,6 +34,7 @@ public interface DyxxDao extends BaseMapper<DyxxEntity> {
List<XlkEntity> selectlzbyxm(String bm);
List<XlkEntity> selectdylcbylz(String bm);
String queryfwdybm();
List<DyxxEntity> selectDybmList(@Param("dhbmList") List<String> dhbmList);
}
......@@ -24,6 +24,9 @@ public interface LpqcDao extends BaseMapper<LpqcEntity> {
//插入房屋信息
void insertFwxx(FwxxEntity fwxxEntity);
//插入房屋信息
void insertFwxxList(List<FwxxEntity> fwxxEntity);
// 获取最新的房屋编码
String querydhbm();
......
......@@ -5,6 +5,7 @@ import io.renren.modules.app.entity.XlkEntity;
import io.renren.modules.app.entity.ZhxxEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
......@@ -49,4 +50,5 @@ public interface ZhxxDao extends BaseMapper<ZhxxEntity> {
void updatezhxxyjje(ZhxxEntity zhxxEntity);
List<ZhxxEntity> selectDhbmList(@Param("xmbm") String xmbm, @Param("dhmcList") List<String> dhmcList);
}
......@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.service.IService;
import com.github.pagehelper.PageInfo;
import io.renren.modules.app.entity.DyxxEntity;
import io.renren.modules.app.entity.XlkEntity;
import io.renren.modules.app.entity.ZhxxEntity;
import java.util.List;
import java.util.Map;
......@@ -40,5 +41,10 @@ public interface DyxxService extends IService<DyxxEntity> {
List<XlkEntity> selectDjld(Map<String,String> map);
String queryfwdybm();
//查询栋号编码
List<DyxxEntity> selectDybmList( List<String> dhbmList);
}
......@@ -29,6 +29,9 @@ public interface LpqcService extends IService<LpqcEntity> {
//插入房屋信息
void insertFwxx(FwxxEntity fwxxEntity);
//插入房屋信息
void insertFwxxList(List<FwxxEntity> fwxxEntityList);
// 获取最新的房屋编码
String querydhbm();
......
......@@ -45,5 +45,10 @@ public interface ZhxxService extends IService<ZhxxEntity> {
WtTyEntity selectkm(ZhxxEntity zhxxEntity);
List<ZhxxEntity> selectzhxx(String id);
//查询栋号编码
List<ZhxxEntity> selectDhbmList(String xmbm,List<String> dhmcList);
}
......@@ -76,4 +76,9 @@ public class DyxxServiceImpl extends ServiceImpl<DyxxDao, DyxxEntity> implements
return baseMapper.queryfwdybm();
}
@Override
public List<DyxxEntity> selectDybmList(List<String> dhbmList) {
return baseMapper.selectDybmList(dhbmList);
}
}
\ No newline at end of file
......@@ -44,6 +44,13 @@ public class LpqcServiceImpl extends ServiceImpl<LpqcDao, LpqcEntity> implements
public void insertFwxx(FwxxEntity fwxxEntity) {
baseMapper.insertFwxx(fwxxEntity);
}
/**
* 插入房屋信息
*/
@Override
public void insertFwxxList(List<FwxxEntity> fwxxEntityList) {
baseMapper.insertFwxxList(fwxxEntityList);
}
/**
* 获取房屋编码
......
......@@ -117,6 +117,11 @@ public class ZhxxServiceImpl extends ServiceImpl<ZhxxDao, ZhxxEntity> implements
return baseMapper.selectzhxx(id);
}
@Override
public List<ZhxxEntity> selectDhbmList(String xmbm, List<String> dhmcList) {
return baseMapper.selectDhbmList(xmbm,dhmcList);
}
@Override
public void updatezhxxyjje(ZhxxEntity zhxxEntity) {
......
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<logger name="org.springframework.web" level="INFO"/>
<logger name="org.springboot.sample" level="TRACE" />
<!-- 日志存放路径 -->
<property name="log.path" value="logs/app"/>
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} %-5level [%thread] %logger{50}:%L-%msg%n"/>
<!-- 开发、测试环境 -->
<springProfile name="dev,test">
<logger name="org.springframework.web" level="INFO"/>
<logger name="org.springboot.sample" level="INFO" />
<logger name="io.renren" level="DEBUG" />
</springProfile>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 生产环境 -->
<springProfile name="prod">
<logger name="org.springframework.web" level="ERROR"/>
<logger name="org.springboot.sample" level="ERROR" />
<logger name="io.renren" level="ERROR" />
</springProfile>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>30</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}-error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}-error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>30</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="console"/>
<appender-ref ref="file_info"/>
<appender-ref ref="file_error"/>
</root>
<!-- 系统模块日志级别控制 -->
<logger name="io.renren" level="debug"/>
</configuration>
\ No newline at end of file
......@@ -72,5 +72,11 @@
<select id="queryfwdybm" resultType="string">
SELECT fwdybm FROM dyxx WHERE LENGTH(fwdybm)>=8 ORDER BY fwdybm DESC LIMIT 1
</select>
<select id="selectDybmList" resultType="io.renren.modules.app.entity.DyxxEntity">
select dhbm,dymc,fwdybm from dyxx where dhbm in
<foreach collection="dhbmList" item="item" index="index" separator="," open=" (" close=")">
#{item}
</foreach>
</select>
</mapper>
\ No newline at end of file
......@@ -145,6 +145,14 @@
)
</insert>
<insert id="insertFwxxList">
INSERT INTO fwxx(`cczh`, `fwbm`, `dhbm`, `mphm`, `lc`, `hx`, `fwxz`, `ssdj`, `mj`, `fwje`, `gfrq`, `lfmj`, `lfdj`, `lfje`, `zjk`, `hxt`, `xm`, `sfzh`, `lxdh`, `jjze`, `sfsc`, `mh`, `grjjl`, `jsbz`, `gzdbm`, `htbh`, `fpbh`, `zjlb`, `dz`, `bz`, `jcbzbm`, `fwyt`, `spzt`, `yzkm`, `sfyj`, `sfjq` )
VALUES
<foreach collection="list" item="item" separator=",">
(#{item.cczh}, #{item.fwbm}, #{item.dhbm}, #{item.mphm}, #{item.lc}, #{item.hx}, #{item.fwxz}, #{item.ssdj}, #{item.mj}, #{item.fwje}, #{item.gfrq}, #{item.lfmj}, #{item.lfdj}, #{item.lfje}, #{item.zjk}, #{item.hxt}, #{item.xm}, #{item.sfzh}, #{item.lxdh}, #{item.jjze}, #{item.sfsc}, #{item.mh}, #{item.grjjl}, #{item.jsbz}, #{item.gzdbm}, #{item.htbh}, #{item.fpbh}, #{item.zjlb}, #{item.dz}, #{item.bz}, #{item.jcbzbm}, #{item.fwyt}, #{item.spzt}, #{item.yzkm}, #{item.sfyj}, '0')
</foreach>
</insert>
<select id="selectdhbmbyxmdh" parameterType="io.renren.modules.app.entity.ZhxxEntity"
resultType="Integer">
select lcs from dyxx where dhbm=(select dhbm from zhxx
......
......@@ -73,7 +73,16 @@
<select id="selectzhxx" parameterType="java.lang.String" resultType="io.renren.modules.app.entity.ZhxxEntity">
select dhmc from zhxx where xmbm=#{id}
</select>
<select id="selectDhbmList" resultType="io.renren.modules.app.entity.ZhxxEntity">
select xmbm,dhmc,dhbm from zhxx
where xmbm = #{xmbm}
and dhmc in
<foreach collection="dhmcList" item="item" index="index" separator="," open=" (" close=")">
#{item}
</foreach>
</select>
<update id="updatezhxxyjje" parameterType="io.renren.modules.app.entity.ZhxxEntity">
update zhxx set
yjje=#{yjje} where dhbm=#{dhbm}
......
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