|
@@ -9,6 +9,8 @@ import cn.com.ctop.common.module.vo.*;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
+import org.apache.shiro.SecurityUtils;
|
|
|
+import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -62,8 +64,8 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
|
|
//}
|
|
|
productMapper.updateProduct(product);
|
|
|
}else { //入库
|
|
|
- //LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
- //product.setCreateUserId(sysUser.getId());
|
|
|
+ LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ product.setCreateUserId(sysUser.getId());
|
|
|
productMapper.insertProduct(product);
|
|
|
|
|
|
if(product.getProjectIds() != null && product.getProjectIds().size() != 0 ){
|