| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.whyc.dto.WorksheetMainDTO; |
| | | import com.whyc.mapper.DocUserMapper; |
| | | import com.whyc.mapper.WorksheetLinkMapper; |
| | | import com.whyc.mapper.WorksheetMainMapper; |
| | |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import sun.print.PSPrinterJob; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.*; |
| | |
| | | private ProductBomApprovingService approvingService; |
| | | |
| | | @Transactional |
| | | public boolean submit(WorksheetMainDTO mainDTO, DocUser user) { |
| | | WorksheetMain main = mainDTO.getMain(); |
| | | List<ProductBomApproving> bomList = mainDTO.getBomList(); |
| | | public boolean submit(WorksheetMain main, DocUser user) { |
| | | List<ProductBomApproving> bomList = main.getApprovingBomList(); |
| | | //提交主表 |
| | | main.setCreateUserId(user.getId()); |
| | | //提交人角色来判断工作流层级 |