|
@@ -31,6 +31,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
import java.io.ByteArrayOutputStream;
|
|
|
import java.io.FileNotFoundException;
|
|
|
import java.io.FileOutputStream;
|
|
@@ -69,6 +70,8 @@ public class BizTechnologicalProcessDetailDrawingServiceImpl extends ServiceImpl
|
|
|
SysRoleMapper sysRoleMapper;
|
|
|
@Resource
|
|
|
IBizMessageService bizMessageService;
|
|
|
+ @Resource
|
|
|
+ HttpServletRequest request;
|
|
|
|
|
|
@Resource
|
|
|
BizTechnologicalProcessDetailDrawingUserMapper bizTechnologicalProcessDetailDrawingUserMapper;
|
|
@@ -147,7 +150,7 @@ public class BizTechnologicalProcessDetailDrawingServiceImpl extends ServiceImpl
|
|
|
item.setProducerId(user.getUserId());
|
|
|
item.setProducer(user.getNickName());
|
|
|
item.setStatus(0);
|
|
|
-
|
|
|
+ item.setTenantId(Long.parseLong(request.getHeader("tenantId")));
|
|
|
item.setPattern("新产品");
|
|
|
//上传调整尺寸
|
|
|
|