|
@ -11,6 +11,6 @@ import java.util.List; |
|
|
public interface AmStaffAssetMapper extends Mapper<AmStaffAsset> { |
|
|
public interface AmStaffAssetMapper extends Mapper<AmStaffAsset> { |
|
|
List<AmStaffAsset> search(@Param("userId") Integer userId,@Param("field") String field, @Param("content") String content); |
|
|
List<AmStaffAsset> search(@Param("userId") Integer userId,@Param("field") String field, @Param("content") String content); |
|
|
|
|
|
|
|
|
@Select(value = "select a.*,b.nickname user_name from am_staff_asset a,am_user b where a.user_id=#{userId} and a.user_id=b.id") |
|
|
@Select(value = "select a.*,b.nickname user_name from am_staff_asset a,am_user b where a.user_id=#{userId} and a.name=#{name} and a.user_id=b.id") |
|
|
AmStaffAsset find(@Param("userId") Integer userId, @Param("name") String name); |
|
|
AmStaffAsset find(@Param("userId") Integer userId, @Param("name") String name); |
|
|
} |
|
|
} |