|
|
@ -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); |
|
|
|
} |
|
|
|