|
@@ -0,0 +1,76 @@
|
|
|
+package org.jeecg.modules.report.service.impl;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.jeecg.common.api.vo.Result;
|
|
|
+import org.jeecg.common.constant.CacheConstant;
|
|
|
+import org.jeecg.common.constant.CommonConstant;
|
|
|
+import org.jeecg.common.system.api.ISysBaseAPI;
|
|
|
+import org.jeecg.common.system.vo.LoginUser;
|
|
|
+import org.jeecg.common.system.vo.SysUserCacheInfo;
|
|
|
+import org.jeecg.common.util.PasswordUtil;
|
|
|
+import org.jeecg.common.util.UUIDGenerator;
|
|
|
+import org.jeecg.common.util.oConvertUtils;
|
|
|
+import org.jeecg.modules.base.service.BaseCommonService;
|
|
|
+import org.jeecg.modules.report.entity.FabricLoss;
|
|
|
+import org.jeecg.modules.report.mapper.FabricLossMapper;
|
|
|
+import org.jeecg.modules.report.service.IFabricLossService;
|
|
|
+import org.jeecg.modules.system.entity.*;
|
|
|
+import org.jeecg.modules.system.mapper.*;
|
|
|
+import org.jeecg.modules.system.model.SysUserSysDepartModel;
|
|
|
+import org.jeecg.modules.system.service.ISysUserService;
|
|
|
+import org.jeecg.modules.system.service.impl.ThirdAppDingtalkServiceImpl;
|
|
|
+import org.jeecg.modules.system.service.impl.ThirdAppWechatEnterpriseServiceImpl;
|
|
|
+import org.jeecg.modules.system.vo.SysUserDepVo;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.cache.annotation.CacheEvict;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.util.*;
|
|
|
+import java.util.stream.Collectors;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ * 面料损耗表 服务实现类
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @Author: scott
|
|
|
+ * @Date: 2018-12-20
|
|
|
+ */
|
|
|
+@Service
|
|
|
+@Slf4j
|
|
|
+public class FabricLossServiceImpl extends ServiceImpl<FabricLossMapper, FabricLoss> implements IFabricLossService {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private FabricLossMapper fabricLossMapper;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 面料损耗信息接口
|
|
|
+ * @param code 计划号
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public FabricLoss getFabricLossData(String code) {
|
|
|
+ if (oConvertUtils.isNotEmpty(code)){
|
|
|
+ FabricLoss fabricLoss = fabricLossMapper.getFabricLossData(code);
|
|
|
+ if (oConvertUtils.isNotEmpty(fabricLoss)){
|
|
|
+ //103排单数量
|
|
|
+ String number = fabricLossMapper.getNumber(code);
|
|
|
+ //制单人
|
|
|
+ List<String> makingPeople = fabricLossMapper.getMakingPeople(code);
|
|
|
+ //计划员
|
|
|
+ List<String> planner = fabricLossMapper.getPlanner(code);
|
|
|
+ //103单间成本
|
|
|
+ String price = fabricLossMapper.getPrice(code);
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+}
|