mirror of https://github.com/elunez/eladmin
删除物料类别
parent
156efd7a88
commit
f91dd35859
|
@ -39,7 +39,7 @@ public interface MaterialCategoryRepository extends JpaRepository<MaterialCatego
|
||||||
* @param id
|
* @param id
|
||||||
*/
|
*/
|
||||||
@Modifying
|
@Modifying
|
||||||
@Query(value = "update bd_product_category set status = 1 where id = ?1",nativeQuery = true)
|
@Query(value = "update bd_material_category set status = 1 where id = ?1",nativeQuery = true)
|
||||||
void updateStatusToTrue(long id);
|
void updateStatusToTrue(long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -47,6 +47,6 @@ public interface MaterialCategoryRepository extends JpaRepository<MaterialCatego
|
||||||
* @param id
|
* @param id
|
||||||
*/
|
*/
|
||||||
@Modifying
|
@Modifying
|
||||||
@Query(value = "update bd_product_category set status = 0 where id = ?1",nativeQuery = true)
|
@Query(value = "update bd_material_category set status = 0 where id = ?1",nativeQuery = true)
|
||||||
void deleteMaterialCategory(long id);
|
void deleteMaterialCategory(long id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,6 @@ public class MaterialInfoQueryCriteria {
|
||||||
|
|
||||||
private Long materialCategoryId;
|
private Long materialCategoryId;
|
||||||
|
|
||||||
private Boolean status;
|
private Boolean status=true;
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue