更新注释

This commit is contained in:
liuchengqian 2022-03-11 11:58:38 +08:00
parent 3a6b7aaec4
commit 15338c123b
8 changed files with 9 additions and 9 deletions

View File

@ -17,14 +17,14 @@ public interface QcItemDao extends JpaRepository<QcItemEntity, Integer>, JpaSpec
Optional<QcItemEntity> findByNo(String no); Optional<QcItemEntity> findByNo(String no);
/** /**
* 更新检项名称 * 更新名称
*/ */
@Modifying(clearAutomatically = true) @Modifying(clearAutomatically = true)
@Query(value = "UPDATE qc_item SET update_time = ?2, name = ?3 WHERE id = ?1", nativeQuery = 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); 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) @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); List<Map<String, Object>> queryQcItem(String no, String name);

View File

@ -3,7 +3,7 @@ package com.xkrs.newpro.model.entity;
import javax.persistence.*; import javax.persistence.*;
/** /**
* 检项 *
*/ */
@Entity @Entity
@Table(name = "qc_item") @Table(name = "qc_item")

View File

@ -54,7 +54,7 @@ public class QcSourceEntity {
private String varietyNo; private String varietyNo;
/** /**
* 检项编号 * 编号
*/ */
@Column(length = 85, columnDefinition = "varchar(85)") @Column(length = 85, columnDefinition = "varchar(85)")
private String qcItemNo; private String qcItemNo;

View File

@ -36,7 +36,7 @@ public class QcSpecEntity {
private String varietyNo; private String varietyNo;
/** /**
* 检项编号 * 编号
*/ */
@Column(length = 85, columnDefinition = "varchar(85)") @Column(length = 85, columnDefinition = "varchar(85)")
private String qcItemNo; private String qcItemNo;

View File

@ -1,7 +1,7 @@
package com.xkrs.newpro.model.qo; package com.xkrs.newpro.model.qo;
/** /**
* 新增检项接收类编号名称类型 * 新增接收类编号名称类型
*/ */
public class QcItemQoInsert { public class QcItemQoInsert {

View File

@ -1,7 +1,7 @@
package com.xkrs.newpro.model.qo; package com.xkrs.newpro.model.qo;
/** /**
* 更新检项接收类根据id更新名称 * 更新接收类根据id更新名称
*/ */
public class QcItemQoUpdate { public class QcItemQoUpdate {

View File

@ -31,7 +31,7 @@ public class QcSourceQoInsert {
private String varietyNo; private String varietyNo;
/** /**
* 检项编号 * 编号
*/ */
private String qcItemNo; private String qcItemNo;

View File

@ -11,7 +11,7 @@ public class QcSpecQoInsert {
private String varietyNo; private String varietyNo;
/** /**
* 检项编号 * 编号
*/ */
private String qcItemNo; private String qcItemNo;