Browse Source

修改员工资产sql bug

master
lihua 5 years ago
parent
commit
517d401b65
  1. 2
      src/main/java/cn/redrock/assetmanage/mapper/AmStaffAssetMapper.java

2
src/main/java/cn/redrock/assetmanage/mapper/AmStaffAssetMapper.java

@ -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);
} }
Loading…
Cancel
Save