| | |
| | | import com.whyc.pojo.*; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.CommonUtil; |
| | | import com.whyc.util.DateUtil; |
| | | import com.whyc.util.FileUtil; |
| | | import com.whyc.util.Zip4jUtil; |
| | | import org.apache.poi.openxml4j.exceptions.InvalidFormatException; |
| | |
| | | |
| | | @Autowired |
| | | private MaterialService mService; |
| | | |
| | | @Autowired |
| | | private ProductLockLogService productLockLogService; |
| | | |
| | | //查询出所有的产品信息(分页加模糊查询<产品的编码,型号,名字,定制表编号> |
| | | public Response getAllProduct(String subCode,String parentCode, String parentName, String parentModel, String customCode, int pageCurr, int pageSize) { |
| | |
| | | pbhService.insertBatch(bomHistoryList); |
| | | |
| | | } |
| | | //添加新增日志到tb_product_lock_log表 |
| | | ProductLockLog lockLog = new ProductLockLog(); |
| | | lockLog.setParentCode(parentCode); |
| | | lockLog.setCustomCode(customCode); |
| | | lockLog.setVersion(nextVersion); |
| | | lockLog.setVersionTime(DateUtil.YYYY_MM_DD_HH_MM_SS.format(product.getVersionTime())); |
| | | lockLog.setReason("产品bom上传"); |
| | | lockLog.setOwner(ActionUtil.getUser().getName()); |
| | | lockLog.setCreateTime(date); |
| | | //-1代表日志类型为:产品bom上传 |
| | | lockLog.setLockFlag(-1); |
| | | |
| | | productLockLogService.insert(lockLog); |
| | | return new Response().setII(1,"新增完成"); |
| | | } |
| | | |