38 lines
1.2 KiB
Java
38 lines
1.2 KiB
Java
package com.gunshi.project.xyt.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.gunshi.project.xyt.entity.vo.HomeIaCDanadVo;
|
|
import com.gunshi.project.xyt.model.IaCDanad;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 描述: 危险区基本情况调查成果汇总表
|
|
* author: xusan
|
|
* date: 2024-07-08 15:44:07
|
|
*/
|
|
@Mapper
|
|
public interface IaCDanadMapper extends BaseMapper<IaCDanad> {
|
|
|
|
|
|
@Select("""
|
|
<script>
|
|
SELECT st.*, r1.adnm||r2.adnm adnm FROM ia_c_danad st
|
|
LEFT JOIN st_addvcd_d r1 ON concat ( LEFT ( st.adcd, 6 ), '000000000' ) = r1.adcd
|
|
LEFT JOIN st_addvcd_d r2 ON concat ( LEFT ( st.adcd, 9 ), '000000' ) = r1.adcd
|
|
</script>
|
|
""")
|
|
List<HomeIaCDanadVo> getDetailsAndMonitoringDataLis();
|
|
|
|
@Select("""
|
|
<script>
|
|
SELECT st.*,r.adnm FROM ia_c_danad st
|
|
LEFT JOIN st_addvcd_d r ON st.adcd = r.adcd
|
|
WHERE st.dand = #{id}
|
|
</script>
|
|
""")
|
|
HomeIaCDanadVo detail(@Param("id") String id);
|
|
} |