WS
2023-05-25 9149e48f78437e04725e24d98e2a75872f86d671
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.fzzy.api.view.repository;
 
 
import com.fzzy.api.entity.Api1503;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
 
 
public interface Api1503Rep extends JpaRepository<Api1503, String> {
    
    
    
    /**
     * 根据表单主键更新操作标志状态
     * @param id 主键ID
     * @param czbz 操作标志
     * @return
     */
     @Modifying
     @Query("update Api1503 set czbz=:czbz where dwdm=:id ")
     int updateStatus(@Param("id") String id, @Param("czbz") String czbz);
 
}