更新注释
This commit is contained in:
parent
3a6b7aaec4
commit
15338c123b
@ -17,14 +17,14 @@ public interface QcItemDao extends JpaRepository<QcItemEntity, Integer>, JpaSpec
|
||||
Optional<QcItemEntity> findByNo(String no);
|
||||
|
||||
/**
|
||||
* 更新质检项名称
|
||||
* 更新检验项目名称
|
||||
*/
|
||||
@Modifying(clearAutomatically = true)
|
||||
@Query(value = "UPDATE qc_item SET update_time = ?2, name = ?3 WHERE id = ?1", nativeQuery = true)
|
||||
void updateNameById(Integer id, String updateTime, String name);
|
||||
|
||||
/**
|
||||
* 查询质检项
|
||||
* 查询检验项目
|
||||
*/
|
||||
@Query(value = "SELECT id, no, name, type FROM qc_item WHERE no = ?1 AND name = ?2 ORDER BY create_time ASC", nativeQuery = true)
|
||||
List<Map<String, Object>> queryQcItem(String no, String name);
|
||||
|
@ -3,7 +3,7 @@ package com.xkrs.newpro.model.entity;
|
||||
import javax.persistence.*;
|
||||
|
||||
/**
|
||||
* 质检项
|
||||
* 检验项目
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "qc_item")
|
||||
|
@ -54,7 +54,7 @@ public class QcSourceEntity {
|
||||
private String varietyNo;
|
||||
|
||||
/**
|
||||
* 质检项编号
|
||||
* 检验项目编号
|
||||
*/
|
||||
@Column(length = 85, columnDefinition = "varchar(85)")
|
||||
private String qcItemNo;
|
||||
|
@ -36,7 +36,7 @@ public class QcSpecEntity {
|
||||
private String varietyNo;
|
||||
|
||||
/**
|
||||
* 质检项编号
|
||||
* 检验项目编号
|
||||
*/
|
||||
@Column(length = 85, columnDefinition = "varchar(85)")
|
||||
private String qcItemNo;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.xkrs.newpro.model.qo;
|
||||
|
||||
/**
|
||||
* 新增质检项接收类(编号、名称、类型)
|
||||
* 新增检验项目接收类(编号、名称、类型)
|
||||
*/
|
||||
public class QcItemQoInsert {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.xkrs.newpro.model.qo;
|
||||
|
||||
/**
|
||||
* 更新质检项接收类(根据id更新名称)
|
||||
* 更新检验项目接收类(根据id更新名称)
|
||||
*/
|
||||
public class QcItemQoUpdate {
|
||||
|
||||
|
@ -31,7 +31,7 @@ public class QcSourceQoInsert {
|
||||
private String varietyNo;
|
||||
|
||||
/**
|
||||
* 质检项编号
|
||||
* 检验项目编号
|
||||
*/
|
||||
private String qcItemNo;
|
||||
|
||||
|
@ -11,7 +11,7 @@ public class QcSpecQoInsert {
|
||||
private String varietyNo;
|
||||
|
||||
/**
|
||||
* 质检项编号
|
||||
* 检验项目编号
|
||||
*/
|
||||
private String qcItemNo;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user