| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.SopDto; |
| | | import com.whyc.mapper.SOPMapper; |
| | |
| | | }else{ |
| | | product.setModel(model); |
| | | } |
| | | |
| | | if((code.equals("") && model.equals(""))){ |
| | | sop.setCurrentFlag(1);//通用 |
| | | } |
| | | sopProductList.add(product); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | //查询sop信息 |
| | | public Response getSopInfo(List<SopDto> sqlList, String code, String model) { |
| | | public Response getSopInfo(List<SopDto> sqlList, String code, String model,int pageCurr,int pageSize) { |
| | | PageHelper.startPage(pageCurr,pageSize); |
| | | String sqlStr=" "; |
| | | if(sqlList!=null&&sqlList.size()>0){ |
| | | for (SopDto dto:sqlList) { |
| | |
| | | } |
| | | } |
| | | List<SOP> list=mapper.getSopInfo(sqlStr,code,model); |
| | | return new Response().setII(1,list.size()>0,list,"查询sop信息"); |
| | | PageInfo pageInfo=new PageInfo(list); |
| | | return new Response().setII(1,list.size()>0,pageInfo,"查询sop信息"); |
| | | } |
| | | //更新sop说明(不含锁信息) |
| | | @Transactional |
| | |
| | | } |
| | | return new Response().setII(1,"更新sop说明完成"); |
| | | } |
| | | |
| | | } |