From 8d5dddd1cc1a9ff3859d6acd251c3488ca066b21 Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期一, 27 五月 2024 14:38:14 +0800 Subject: [PATCH] 修改路径 --- hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/glassinfo/mapper/GlassInfoMapper.java | 15 +++++---------- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/glassinfo/mapper/GlassInfoMapper.java b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/glassinfo/mapper/GlassInfoMapper.java index dc5871e..7bfe24e 100644 --- a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/glassinfo/mapper/GlassInfoMapper.java +++ b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/glassinfo/mapper/GlassInfoMapper.java @@ -1,26 +1,21 @@ package com.mes.glassinfo.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.github.yulichang.base.MPJBaseMapper; import com.mes.glassinfo.entity.GlassInfo; -import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Select; -import org.apache.ibatis.annotations.Update; +import org.mapstruct.Mapper; /** * <p> - * Mapper 鎺ュ彛 + * Mapper 鎺ュ彛 * </p> * * @author zhoush * @since 2024-03-27 */ -public interface GlassInfoMapper extends BaseMapper<GlassInfo> { +@Mapper +public interface GlassInfoMapper extends MPJBaseMapper<GlassInfo> { - @Select("SELECT COUNT(*) FROM glass_info WHERE flowcard_id = #{flowCardId}") - int getGlassInfoCountByFlowCardId(@Param("flowCardId") String flowCardId); - - @Update("UPDATE down_workstation SET total_quantity = #{glassInfoCount},flow_card_id=#{flowCardId} WHERE workstation_id = #{workstationId}") - int updateFlowCardIdAndCount(@Param("flowCardId") String flowCardId, @Param("glassInfoCount") int glassInfoCount,@Param("workstationId")int workstationId); } -- Gitblit v1.8.0