|
|
|
@ -72,26 +72,6 @@ public interface BaseRepository <T, ID extends Serializable> extends JpaReposito
|
|
|
|
|
public int deleteByProperties(String[] propNames, Object[] objValues);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 弱删除
|
|
|
|
|
* @return count
|
|
|
|
|
*/
|
|
|
|
|
public int deleteWeaklyById(ID id);
|
|
|
|
|
public int deleteWeaklyByIds(Long[] ids) ;
|
|
|
|
|
public int deleteWeaklyByProperty(String propName, Object propValue);
|
|
|
|
|
public int deleteWeaklyByPropertyIn(String propName, Object[] propValues);
|
|
|
|
|
public int deleteWeaklyByProperties(String[] propNames, Object[] objValues);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 更新有效无效状态
|
|
|
|
|
* @return count
|
|
|
|
|
*/
|
|
|
|
|
public int updateValidStatusById(ID id,int status);
|
|
|
|
|
public int updateValidStatusByIds(Long[] ids,int status) ;
|
|
|
|
|
public int updateValidStatusByProperty(String propName, Object propValue,int status);
|
|
|
|
|
public int updateValidStatusByPropertyIn(String propName, Object[] propValues,int status);
|
|
|
|
|
public int updateValidStatusByProperties(String[] propNames, Object[] objValues,int status);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 通过多单属性进行单个值更新
|
|
|
|
|
* @param conditionName
|
|
|
|
|
* @param conditionValue
|
|
|
|
@ -235,4 +215,26 @@ public interface BaseRepository <T, ID extends Serializable> extends JpaReposito
|
|
|
|
|
public List<Object[]> findBySqlObjList(String sql);
|
|
|
|
|
|
|
|
|
|
public List<Object[]> findBySqlObjListByPager(String sql,Pager pager);
|
|
|
|
|
|
|
|
|
|
/****************** 部分业务处理 *******************/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 弱删除
|
|
|
|
|
* @return count
|
|
|
|
|
*/
|
|
|
|
|
public int deleteWeaklyById(ID id,String username);
|
|
|
|
|
public int deleteWeaklyByIds(Long[] ids,String username) ;
|
|
|
|
|
public int deleteWeaklyByProperty(String propName, Object propValue,String username);
|
|
|
|
|
public int deleteWeaklyByPropertyIn(String propName, Object[] propValues,String username);
|
|
|
|
|
public int deleteWeaklyByProperties(String[] propNames, Object[] objValues,String username);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 更新有效无效状态
|
|
|
|
|
* @return count
|
|
|
|
|
*/
|
|
|
|
|
public int updateValidStatusById(ID id,int status,String username);
|
|
|
|
|
public int updateValidStatusByIds(Long[] ids,int status,String username) ;
|
|
|
|
|
public int updateValidStatusByProperty(String propName, Object propValue,int status,String username);
|
|
|
|
|
public int updateValidStatusByPropertyIn(String propName, Object[] propValues,int status,String username);
|
|
|
|
|
public int updateValidStatusByProperties(String[] propNames, Object[] objValues,int status,String username);
|
|
|
|
|
}
|
|
|
|
|