|
@@ -0,0 +1,57 @@
|
|
|
|
|
+package net.mingsoft.tf.www;
|
|
|
|
|
+
|
|
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
|
+import io.swagger.v3.oas.annotations.Parameter;
|
|
|
|
|
+import io.swagger.v3.oas.annotations.Parameters;
|
|
|
|
|
+import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
|
|
|
+import jakarta.annotation.Resource;
|
|
|
|
|
+import net.mingsoft.base.entity.ResultData;
|
|
|
|
|
+import net.mingsoft.tf.entity.InvestmentPromotionEntity;
|
|
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
+
|
|
|
|
|
+@Controller
|
|
|
|
|
+@RequestMapping("/tf/investmentPromotion")
|
|
|
|
|
+public class InvestmentPromotionAction {
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ private net.mingsoft.tf.action.InvestmentPromotionAction action;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询招商管理列表
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param investmentPromotion 招商管理实体
|
|
|
|
|
+ */
|
|
|
|
|
+ @Operation(summary = "查询招商管理列表接口")
|
|
|
|
|
+ @Parameters({
|
|
|
|
|
+ @Parameter(name = "investmentPromotionName", description = "招商名称", in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "investmentPromotionType", description = "房屋类型", in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "investmentPromotionRegion", description = "所在区域", in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "investmentPromotionArea", description = "面积(m²)", in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "investmentPromotionRent", description = "租金(元/月)", in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "investmentPromotionSpec", description = "规格", in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "investmentPromotionPerson", description = "招商负责人", in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "investmentPromotionTel", description = "联系电话", in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "investmentPromotionLocation", description = "具体位置", in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "investmentPromotionStatus", description = "发布状态", in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "investmentPromotionIntro", description = "招商简介", in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "investmentPromotionDesc", description = "招商描述", in = ParameterIn.QUERY),
|
|
|
|
|
+ })
|
|
|
|
|
+ @PostMapping(value = "/list")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public ResultData list(@RequestBody InvestmentPromotionEntity investmentPromotion) {
|
|
|
|
|
+ return action.list(investmentPromotion);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取招商管理
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param investmentPromotion 招商管理实体
|
|
|
|
|
+ */
|
|
|
|
|
+ @Operation(summary = "获取招商管理列表接口")
|
|
|
|
|
+ @Parameter(name = "id", description = "主键ID", required = true, in = ParameterIn.QUERY)
|
|
|
|
|
+ @GetMapping("/get")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public ResultData get(@ModelAttribute @Parameter(hidden = true) InvestmentPromotionEntity investmentPromotion) {
|
|
|
|
|
+ return action.get(investmentPromotion);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|