From 5fb14bb0d28210f69c07021441b2cdd76aa46fe5 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期一, 04 九月 2023 17:58:24 +0800
Subject: [PATCH] 原材料检验修改9-4 3.0
---
inspect-server/src/main/resources/mapper/RawInsProductMapper.xml | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/inspect-server/src/main/resources/mapper/RawInsProductMapper.xml b/inspect-server/src/main/resources/mapper/RawInsProductMapper.xml
index f2dda01..d8e0d2a 100644
--- a/inspect-server/src/main/resources/mapper/RawInsProductMapper.xml
+++ b/inspect-server/src/main/resources/mapper/RawInsProductMapper.xml
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.yuanchu.mom.mapper.RawInsProductMapper">
+ <!--鏍规嵁鍘熸潗鏂欐楠屽崟id鍒犻櫎-->
+ <update id="updaRawInsById">
+ update mom_ocean.raw_ins_product
+ set state=0
+ where raw_inspect_id = #{id}
+ </update>
+ <!--鏍规嵁鍘熸潗鏂欐楠屽崟id鎵归噺鍒犻櫎鍘熸潗鏂欐楠岄」鐩�-->
+ <update id="delAllRawIns">
+ update mom_ocean.raw_ins_product
+ set state=0
+ where raw_inspect_id in (${ids})
+ </update>
+ <!--鏍规嵁鍘熸潗鏂欐楠屽崟id鏌ヨ妫�楠岄」鐩�-->
+ <select id="getresult" resultType="java.lang.Integer">
+ select test_state
+ from mom_ocean.raw_ins_product
+ where state = 1
+ and raw_inspect_id = #{id}
+ </select>
</mapper>
--
Gitblit v1.9.3