|
@@ -7,13 +7,18 @@ import com.gqy.common.core.domain.entity.SysRole;
|
|
|
import com.gqy.common.core.domain.entity.SysUser;
|
|
|
import com.gqy.common.core.page.TableDataInfo;
|
|
|
import com.gqy.common.utils.StringUtils;
|
|
|
+import com.gqy.document.domain.DcProduct;
|
|
|
import com.gqy.document.domain.DcWork;
|
|
|
import com.gqy.document.domain.vo.PageResult;
|
|
|
import com.gqy.document.service.IDcProductService;
|
|
|
+import io.netty.util.internal.ObjectUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
+import java.lang.reflect.MalformedParameterizedTypeException;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.stream.Collectors;
|
|
@@ -84,6 +89,22 @@ public class ProductController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据产品id获取对应的规格信息code
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/getInfoDCPPNO/{productId}")
|
|
|
+ public AjaxResultCQY getInfoDCPPNO(@PathVariable("productId") Long productId){
|
|
|
+ DcProduct dcProduct = iDcProductService.selectDcProductById(productId);
|
|
|
+ Map result = new HashMap();
|
|
|
+ if(!ObjectUtils.isEmpty(dcProduct)){
|
|
|
+ result.put("dcppno",dcProduct.getDcp_p_no());
|
|
|
+ }
|
|
|
+ return AjaxResultCQY.success("查询成功",result);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 删除产品
|
|
|
* @return
|