| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.whyc.mapper.ProductBomApprovingMapper; |
| | | import com.whyc.mapper.WorksheetLinkMapper; |
| | | import com.whyc.pojo.ProductBomApproving; |
| | | import com.whyc.pojo.WorksheetLink; |
| | | import com.whyc.pojo.WorksheetMain; |
| | | import com.whyc.util.CommonUtil; |
| | | import org.aspectj.util.FileUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.naming.CommunicationException; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | @Resource |
| | | private WorksheetLinkMapper linkMapper; |
| | | |
| | | @Autowired |
| | | private ProductBomApprovingMapper approvingMapper; |
| | | |
| | | |
| | | @Transactional |
| | |
| | | }else{ |
| | | //审批通过,更新主表状态 |
| | | mainService.updateEndStatusById(link.getMainId(),"完结",5); |
| | | //将产品文件复制至正式路径 |
| | | QueryWrapper<ProductBomApproving> query = Wrappers.query(); |
| | | query.eq("main_id",link.getMainId()); |
| | | List<ProductBomApproving> approvingList = approvingMapper.selectList(query); |
| | | |
| | | /*String projectDir = CommonUtil.getProjectDir(); |
| | | FileUtil.copyDir()*/ |
| | | |
| | | |
| | | //将产品bom表的url修正,更新到正式表 |
| | | } |
| | | } |
| | | |
| | |
| | | public List<WorksheetLink> getInfoList(Long id) { |
| | | return linkMapper.getInfoList(id); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param userId 总经理对应的userId |
| | | * @param statusExp 0:未审批,1:已审批(包含状态值1,2) |
| | | * @return |
| | | */ |
| | | public List<WorksheetMain> getInfoList2(Long userId, int statusExp) { |
| | | return linkMapper.getInfoList2(userId,statusExp); |
| | | } |
| | | } |