| | |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.core.lang.Snowflake; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | |
| | | return inspectionProductMapper.update(null,inspectionProductUpdateWrapper)>0; |
| | | } |
| | | |
| | | @Override |
| | | public List<Material> getMaterielTypeIsOne() { |
| | | QueryWrapper<Material>queryWrapper=new QueryWrapper<>(); |
| | | queryWrapper.lambda() |
| | | .select(Material::getName,Material::getId,Material::getCode) |
| | | .eq(Material::getType,1) |
| | | .eq(Material::getState,1); |
| | | return materialMapper.selectList(queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, Object> getSpecification(Integer id) { |
| | | return materialMapper.getTreeByMaterialId(id); |
| | | } |
| | | |
| | | /*根据样品名称,样品编号,型号规格获取型号id*/ |
| | | private Integer getSpecificationId(String name, String mcode, String specification) { |
| | | //获取物料id |