删除物料类别

pull/451/head
zhangmingming 2020-06-06 12:11:52 +08:00
parent 156efd7a88
commit f91dd35859
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ public interface MaterialCategoryRepository extends JpaRepository<MaterialCatego
* @param id
*/
@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);
/**
@ -47,6 +47,6 @@ public interface MaterialCategoryRepository extends JpaRepository<MaterialCatego
* @param id
*/
@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);
}

View File

@ -19,6 +19,6 @@ public class MaterialInfoQueryCriteria {
private Long materialCategoryId;
private Boolean status;
private Boolean status=true;
}