|
@ -20,6 +20,10 @@ import com.ruoyi.system.mapper.SysUserMapper; |
|
|
import com.ruoyi.system.service.ISysAttachFileService; |
|
|
import com.ruoyi.system.service.ISysAttachFileService; |
|
|
import com.ruoyi.system.service.ISysAttachService; |
|
|
import com.ruoyi.system.service.ISysAttachService; |
|
|
import com.ruoyi.system.service.ISysRoleService; |
|
|
import com.ruoyi.system.service.ISysRoleService; |
|
|
|
|
|
import com.ruoyi.warehouse.domain.WarehouseInventoryInquiry; |
|
|
|
|
|
import com.ruoyi.warehouse.mapper.WarehouseInventoryInquiryMapper; |
|
|
|
|
|
import com.ruoyi.warehouse.mapper.WarehouseStorageOrderDetailMapper; |
|
|
|
|
|
import com.ruoyi.warehouse.mapper.WarehouseStorageOrderMapper; |
|
|
import org.activiti.engine.TaskService; |
|
|
import org.activiti.engine.TaskService; |
|
|
import org.activiti.engine.impl.persistence.entity.TaskEntityImpl; |
|
|
import org.activiti.engine.impl.persistence.entity.TaskEntityImpl; |
|
|
import org.activiti.engine.runtime.ProcessInstance; |
|
|
import org.activiti.engine.runtime.ProcessInstance; |
|
@ -43,6 +47,8 @@ public class ErpMaterialServiceImpl implements IErpMaterialService |
|
|
{ |
|
|
{ |
|
|
@Autowired |
|
|
@Autowired |
|
|
private ErpMaterialMapper erpMaterialMapper; |
|
|
private ErpMaterialMapper erpMaterialMapper; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private WarehouseInventoryInquiryMapper inventoryInquiryMapper; |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private ISysAttachService attachService; |
|
|
private ISysAttachService attachService; |
|
@ -430,4 +436,32 @@ public class ErpMaterialServiceImpl implements IErpMaterialService |
|
|
variables.put("authority",1); |
|
|
variables.put("authority",1); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*审核通过添加库存物料信息*/ |
|
|
|
|
|
@Override |
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
|
public Integer addStockMaterial(ErpMaterialVo erpMaterialVo) { |
|
|
|
|
|
WarehouseInventoryInquiry warehouseInventoryInquiry = new WarehouseInventoryInquiry(); |
|
|
|
|
|
warehouseInventoryInquiry.setMaterialNo(erpMaterialVo.getMaterialNo()); |
|
|
|
|
|
warehouseInventoryInquiry.setMaterialName(erpMaterialVo.getMaterialName()); |
|
|
|
|
|
warehouseInventoryInquiry.setMaterialDescribe(erpMaterialVo.getDescribe()); |
|
|
|
|
|
warehouseInventoryInquiry.setMaterialBrand(erpMaterialVo.getBrand()); |
|
|
|
|
|
warehouseInventoryInquiry.setMaterialProcessMethod(erpMaterialVo.getProcessMethod()); |
|
|
|
|
|
warehouseInventoryInquiry.setMaterialUnit(erpMaterialVo.getUnit()); |
|
|
|
|
|
warehouseInventoryInquiry.setMaterialPhotourl(erpMaterialVo.getPhotoUrl()); |
|
|
|
|
|
warehouseInventoryInquiry.setMaterialType(erpMaterialVo.getMaterialType()); |
|
|
|
|
|
warehouseInventoryInquiry.setMaterialUseStatus(erpMaterialVo.getUseStatus()); |
|
|
|
|
|
warehouseInventoryInquiry.setWarehouseDept(erpMaterialVo.getWarehouseDept()); |
|
|
|
|
|
if(erpMaterialVo.getDescribe().contains(",")){ |
|
|
|
|
|
warehouseInventoryInquiry.setMaterialSpecification(erpMaterialVo.getDescribe().split(" ")[0]); |
|
|
|
|
|
warehouseInventoryInquiry.setMaterialModel(erpMaterialVo.getDescribe().split(",")[1]); |
|
|
|
|
|
} |
|
|
|
|
|
String user = ShiroUtils.getLoginName(); |
|
|
|
|
|
warehouseInventoryInquiry.setCreateBy(user); |
|
|
|
|
|
warehouseInventoryInquiry.setCreateTime(DateUtils.getNowDate()); |
|
|
|
|
|
warehouseInventoryInquiry.setUpdateBy(user); |
|
|
|
|
|
warehouseInventoryInquiry.setUpdateTime(DateUtils.getNowDate()); |
|
|
|
|
|
return inventoryInquiryMapper.insertWarehouseInventoryInquiry(warehouseInventoryInquiry); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|