CZT
2023-08-07 7c8d42e0ff3e8d0be0521a4867dc4e1827c1f3b2
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
26
27
28
29
30
31
32
33
package com.fzzy.api.view.repository;
 
import com.fzzy.api.entity.Api1105;
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;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
 
 
public interface Api1105Rep extends JpaRepository<Api1105, String> {
    /**
     * 根据表单主键更新操作标志状态
     *
     * @param id   主键ID
     * @param czbz 操作标志
     * @return
     */
    @Transactional
    @Modifying
    @Query("update Api1105 set czbz=:czbz where hwdm =:id ")
    int updateStatus(@Param("id") String id, @Param("czbz") String czbz);
 
    /**
     * 根据货位代码查询
     * @param hwdm
     * @return
     */
    @Query("from Api1105 where hwdm=:hwdm ")
    List<Api1105> findPushDataByHwdm(@Param("hwdm") String hwdm);
 
}