Răsfoiți Sursa

代码提交

cxd 7 luni în urmă
părinte
comite
bf0eb5ee38

+ 8 - 0
gqy-system/src/main/java/com/gqy/document/service/IDcPsParamService.java

@@ -0,0 +1,8 @@
+package com.gqy.document.service;
+
+import com.gqy.document.domain.DcPsParam;
+
+public interface IDcPsParamService {
+
+    public int insertDcPsParam(DcPsParam dcPsParam);
+}

+ 41 - 0
gqy-system/src/main/java/com/gqy/document/service/IDcSpecService.java

@@ -0,0 +1,41 @@
+package com.gqy.document.service;
+
+import com.gqy.document.domain.DcSpec;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 产品规格Service接口
+ */
+public interface IDcSpecService {
+
+    /**
+     * 查询产品规格
+     */
+    public DcSpec selectDcSpecById(Integer psId);
+
+    /**
+     * 查询产品规格列表
+     */
+    public List<DcSpec> selectDcSpecList(DcSpec dcSpec);
+
+    /**
+     * 新增产品规格
+     */
+    public int insertDcSpec(DcSpec dcSpec);
+
+    /**
+     * 新增规格 包括 规格参数
+     * @param maps
+     * @return
+     */
+    public int insertDcSpecParam(Map maps);
+
+    /**
+     * 修改产品规格
+     */
+    public int updateDcSpec(DcSpec dcSpec);
+
+
+}

+ 19 - 0
gqy-system/src/main/java/com/gqy/document/service/impl/IDcPsParamServiceImpl.java

@@ -0,0 +1,19 @@
+package com.gqy.document.service.impl;
+
+import com.gqy.document.domain.DcPsParam;
+import com.gqy.document.service.IDcPsParamService;
+import com.gqy.system.mapper.DcPsParamMapper;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class IDcPsParamServiceImpl implements IDcPsParamService {
+
+    @Autowired
+    private DcPsParamMapper dcPsParamMapper;
+
+
+    public int insertDcPsParam(DcPsParam dcPsParam) {
+        return dcPsParamMapper.insertDcPsParam(dcPsParam);
+    }
+}