Browse Source

feat: 测点列表添加测站查询条件

master_tdsql
hxh 2 months ago
parent
commit
9a0ab687ec
  1. 4
      shuili-system/src/main/java/com/kms/yg/cz/dto/AttMpQueDto.java
  2. 1
      shuili-system/src/main/java/com/kms/yg/cz/mapper/AttStMpMapper.java

4
shuili-system/src/main/java/com/kms/yg/cz/dto/AttMpQueDto.java

@ -15,4 +15,8 @@ public class AttMpQueDto {
@ApiModelProperty("测点类型")
private String mpType;
@ApiModelProperty("测站编号")
private String stcd;
}

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

@ -25,6 +25,7 @@ public interface AttStMpMapper extends BaseMapper<AttStMp> {
"<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> " +
"<if test='sp.stcd != null and sp.stcd != \"\"'> and mp.stcd = #{sp.stcd} </if> " +
"</where> " +
"</script>")
List<AttStMp> selectList(@Param("sp") AttMpQueDto sp);

Loading…
Cancel
Save