| | |
| | | import com.mes.uppattenusage.entity.GlassInfo; |
| | | import com.mes.uppattenusage.mapper.GlassInfoMapper; |
| | | import com.mes.uppattenusage.service.GlassInfoService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | @Service |
| | | public class GlassInfoServiceImpl extends ServiceImpl<GlassInfoMapper, GlassInfo> implements GlassInfoService { |
| | | |
| | | private GlassInfoMapper glassInfoMapper; |
| | | |
| | | @Autowired |
| | | public GlassInfoServiceImpl(GlassInfoMapper glassInfoMapper) { |
| | | this.glassInfoMapper = glassInfoMapper; |
| | | } |
| | | |
| | | @Override |
| | | public int getGlassInfoCountByFlowCardId(String flowCardId) { |
| | | return glassInfoMapper.getGlassInfoCountByFlowCardId(flowCardId); |
| | | } |
| | | |
| | | @Override |
| | | public void updateFlowCardIdAndCount(String flowCardId, int glassInfoCount, int workstationId) { |
| | | int rowsAffected = glassInfoMapper.updateFlowCardIdAndCount(flowCardId, glassInfoCount, workstationId); |
| | | if (rowsAffected > 0) { |
| | | System.out.println("更新架子上流程卡 ID 和数量成功"); |
| | | } else { |
| | | System.out.println("更新架子上流程卡 ID 和数量失败"); |
| | | } |
| | | } |
| | | } |