| | |
| | | private String loadrack;//目标位 |
| | | private Integer count;//玻璃数量 |
| | | private Integer glasstype;//玻璃类型 |
| | | private Integer flowcard;//流程卡 |
| | | private String flowcard;//流程卡 |
| | | private Integer mateid;//配片id |
| | | private Integer tier;//片序 |
| | | |
| | |
| | | public void setGlasstype(Integer glasstype) { |
| | | this.glasstype = glasstype; |
| | | } |
| | | public Integer getFlowcard() { |
| | | public String getFlowcard() { |
| | | return flowcard; |
| | | } |
| | | |
| | | public void setFlowcard(Integer flowcard) { |
| | | public void setFlowcard(String flowcard) { |
| | | this.flowcard = flowcard; |
| | | } public Integer getMateid() { |
| | | return mateid; |
| New file |
| | |
| | | package com.example.springboot.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.example.springboot.entity.GlassInfo; |
| | | import com.example.springboot.entity.RolePermission; |
| | | |
| | | |
| | | import org.apache.ibatis.annotations.*; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Mapper |
| | | @Repository |
| | | public interface GlassInfoMapper extends BaseMapper<GlassInfo> { |
| | | |
| | | @Select("SELECT * FROM glassinfo where width<=#{maxwidth} and width>=#{minwidth} and height<=#{maxheight} and height>=#{minheight}") |
| | | List<GlassInfo> selectGlassInfos(@Param("maxwidth") double maxwidth, @Param("minwidth") double minwidth, @Param("maxheight") double maxheight, @Param("minheight") double minheight); |
| | | |
| | | // @Select("SELECT COUNT(*) FROM role_permission WHERE role_id = #{roleId} AND permission_id = #{permissionId}") |
| | | // boolean checkExists(@Param("roleId") int roleId, @Param("permissionId") int permissionId); |
| | | |
| | | |
| | | // @Update("UPDATE role_permission SET state = #{state} WHERE role_id = #{roleId} AND permission_id = #{permissionId}") |
| | | // void updateState(@Param("roleId") int roleId, @Param("permissionId") int permissionId, @Param("state") int state); |
| | | |
| | | // @Insert("INSERT INTO role_permission (role_id, permission_id, state) VALUES (#{roleId}, #{permissionId}, #{state})") |
| | | // void insert(@Param("roleId") int roleId, @Param("permissionId") int permissionId, @Param("state") int state); |
| | | |
| | | } |
| | |
| | | void UpdateQueue(String flowcard,double width,double height,Integer glasstype); |
| | | |
| | | @Update("update glassinfo set finishnumber=finishnumber+1 where flowcard=#{flowcard} and mateid=#{mateid} and tier=#{geTier}") |
| | | void AddGlassNo(Integer flowcard, Integer mateid, Integer geTier); |
| | | void AddGlassNo(String flowcard, Integer mateid, Integer geTier); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.example.springboot.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.example.springboot.entity.GlassInfo; |
| | | import com.example.springboot.entity.MeasureSetting; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Mapper |
| | | @Repository |
| | | public interface MeasureSettingMapper extends BaseMapper<MeasureSetting> { |
| | | @Select("SELECT * FROM measuresetting where line=#{line}") |
| | | MeasureSetting SelectMeasureSetting(@Param("line") String line); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.example.springboot.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.example.springboot.entity.Queue; |
| | | import com.example.springboot.entity.RolePermission; |
| | | |
| | | |
| | | import org.apache.ibatis.annotations.*; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Mapper |
| | | @Repository |
| | | public interface QueueMapper extends BaseMapper<Queue> { |
| | | @Select("SELECT * FROM queue where glassid=#{glassid}") |
| | | List<Queue> selectQueues(@Param("glassid") int glassid); |
| | | |
| | | // @Select("SELECT COUNT(*) FROM role_permission WHERE role_id = #{roleId} AND permission_id = #{permissionId}") |
| | | // boolean checkExists(@Param("roleId") int roleId, @Param("permissionId") int permissionId); |
| | | |
| | | |
| | | // @Update("UPDATE role_permission SET state = #{state} WHERE role_id = #{roleId} AND permission_id = #{permissionId}") |
| | | // void updateState(@Param("roleId") int roleId, @Param("permissionId") int permissionId, @Param("state") int state); |
| | | |
| | | @Insert("insert into queue (glassid,flowcard,listid,boxid,glasswidth,glassheight,glasswidthmm,glassheightmm,glasstype,state,time) "+ |
| | | "select glassid,flowcard,null,null,width,height,#{glasswidthmm},#{glassheightmm},glasstype,#{state},NOW() from glassinfo where glassid=#{glassid}") |
| | | void insert(@Param("glassid") String glassid, @Param("glasswidthmm") double glasswidthmm, @Param("glassheightmm") double glassheightmm,@Param("state") int state); |
| | | |
| | | @Insert("insert into queue (glassid,flowcard,listid,boxid,glasswidth,glassheight,glasswidthmm,glassheightmm,glasstype,state,time) "+ |
| | | "values (null,null,null,null,null,null,#{glasswidthmm},#{glassheightmm},null,null,NOW())") |
| | | void insertMatchFailure(@Param("glasswidthmm") double glasswidthmm, @Param("glassheightmm") double glassheightmm); |
| | | |
| | | } |