Browse Source

feat: 完成测点查询接口

master_tdsql
hxh 4 months ago
parent
commit
10c17f33c1
  1. 7
      shuili-system/src/main/java/com/kms/yg/cz/mapper/AttStMpMapper.java

7
shuili-system/src/main/java/com/kms/yg/cz/mapper/AttStMpMapper.java

@ -3,6 +3,7 @@ package com.kms.yg.cz.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kms.yg.cz.domain.AttStMp;
import com.kms.yg.cz.dto.AttMpQueDto;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
@ -18,13 +19,13 @@ import java.util.List;
@Repository
public interface AttStMpMapper extends BaseMapper<AttStMp> {
@Select("<script >" +
"SELECT * FROM att_st_mp mp" +
@Select("<script>" +
"SELECT * FROM att_st_mp mp " +
"left join att_st_base st on st.stcd = mp.stcd " +
"<where> " +
"<if test='sp.resCode != null and sp.resCode != \"\"'> and st.prjcd = #{sp.resCode} </if> " +
"<if test='sp.mpType != null and sp.mpType != \"\"'> and mp.mp_type = #{sp.mpType} </if> " +
"</where> " +
"</script>")
List<AttStMp> selectList(AttMpQueDto sp);
List<AttStMp> selectList(@Param("sp") AttMpQueDto sp);
}

Loading…
Cancel
Save