|
@@ -7,6 +7,7 @@ import com.diagbot.annotation.SysLogger;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.entity.LantoneProduct;
|
|
|
import com.diagbot.facade.LantoneProductFacade;
|
|
|
+import com.diagbot.facade.OpenedProductsFacade;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -28,6 +29,8 @@ import java.util.Map;
|
|
|
public class DiagLantoneProductController {
|
|
|
@Autowired
|
|
|
private LantoneProductFacade lantoneProductFacade;
|
|
|
+ @Autowired
|
|
|
+ private OpenedProductsFacade openedProductsFacade;
|
|
|
|
|
|
@ApiOperation(value = "添加产品线",
|
|
|
notes = "name:产品名,必填<br>" +
|
|
@@ -51,7 +54,7 @@ public class DiagLantoneProductController {
|
|
|
return RespDTO.onSuc(pages);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "修改产品",
|
|
|
+ @ApiOperation(value = "修改产品(产品启用同接口)",
|
|
|
notes = "id:根据产品id修改产品内容,必填<br>")
|
|
|
@PostMapping("/updateProduct")
|
|
|
@SysLogger("updateProduct")
|
|
@@ -86,5 +89,7 @@ public class DiagLantoneProductController {
|
|
|
System.out.println(lantoneProductFacade.opendedProduct(page,map));
|
|
|
return RespDTO.onSuc(lantoneProductFacade.opendedProduct(page,map));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|