From 3683d4471d8a4991f3784d8cf772bf1f96627b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Tue, 17 May 2022 02:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=AE=97=E5=8F=8A=E6=88=90=E6=9C=AC?= =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/ctrl/XmBudgetNlaborController.java | 34 ++++++---------- .../xm/core/ctrl/XmCostNlaborController.java | 34 ++++++---------- .../mapper/xm/core/dao/XmCostNlaborMapper.xml | 40 ++++++++++++++++++- 3 files changed, 63 insertions(+), 45 deletions(-) diff --git a/xm-core/src/main/java/com/xm/core/ctrl/XmBudgetNlaborController.java b/xm-core/src/main/java/com/xm/core/ctrl/XmBudgetNlaborController.java index 72b2868d..7771a8ee 100644 --- a/xm-core/src/main/java/com/xm/core/ctrl/XmBudgetNlaborController.java +++ b/xm-core/src/main/java/com/xm/core/ctrl/XmBudgetNlaborController.java @@ -1,36 +1,26 @@ package com.xm.core.ctrl; -import java.util.*; -import java.util.stream.Collectors; +import com.mdp.core.entity.Tips; +import com.mdp.core.utils.RequestUtils; +import com.mdp.mybatis.PageUtils; +import com.mdp.swagger.ApiEntityParams; +import com.xm.core.entity.XmBudgetNlabor; +import com.xm.core.service.XmBudgetNlaborService; +import io.swagger.annotations.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.util.StringUtils; -import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; - -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import io.swagger.annotations.ApiResponse; -import io.swagger.annotations.ApiResponses; - -import static com.mdp.core.utils.ResponseHelper.*; -import static com.mdp.core.utils.BaseUtils.*; -import com.mdp.core.entity.Tips; -import com.mdp.core.err.BizException; -import com.mdp.mybatis.PageUtils; -import com.mdp.core.utils.RequestUtils; -import com.mdp.core.utils.NumberUtil; -import com.mdp.safe.client.entity.User; -import com.mdp.safe.client.utils.LoginUtils; -import com.mdp.swagger.ApiEntityParams; import springfox.documentation.annotations.ApiIgnore; -import com.xm.core.service.XmBudgetNlaborService; -import com.xm.core.entity.XmBudgetNlabor; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import static com.mdp.core.utils.BaseUtils.toMap; /** * url编制采用rest风格,如对xm_budget_nlabor 项目人力成本预算的操作有增删改查,对应的url分别为:
diff --git a/xm-core/src/main/java/com/xm/core/ctrl/XmCostNlaborController.java b/xm-core/src/main/java/com/xm/core/ctrl/XmCostNlaborController.java index 50a0daa9..2709c116 100644 --- a/xm-core/src/main/java/com/xm/core/ctrl/XmCostNlaborController.java +++ b/xm-core/src/main/java/com/xm/core/ctrl/XmCostNlaborController.java @@ -1,36 +1,26 @@ package com.xm.core.ctrl; -import java.util.*; -import java.util.stream.Collectors; +import com.mdp.core.entity.Tips; +import com.mdp.core.utils.RequestUtils; +import com.mdp.mybatis.PageUtils; +import com.mdp.swagger.ApiEntityParams; +import com.xm.core.entity.XmCostNlabor; +import com.xm.core.service.XmCostNlaborService; +import io.swagger.annotations.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.util.StringUtils; -import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; - -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import io.swagger.annotations.ApiResponse; -import io.swagger.annotations.ApiResponses; - -import static com.mdp.core.utils.ResponseHelper.*; -import static com.mdp.core.utils.BaseUtils.*; -import com.mdp.core.entity.Tips; -import com.mdp.core.err.BizException; -import com.mdp.mybatis.PageUtils; -import com.mdp.core.utils.RequestUtils; -import com.mdp.core.utils.NumberUtil; -import com.mdp.safe.client.entity.User; -import com.mdp.safe.client.utils.LoginUtils; -import com.mdp.swagger.ApiEntityParams; import springfox.documentation.annotations.ApiIgnore; -import com.xm.core.service.XmCostNlaborService; -import com.xm.core.entity.XmCostNlabor; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import static com.mdp.core.utils.BaseUtils.toMap; /** * url编制采用rest风格,如对xm_cost_nlabor 项目实际人工成本费用的操作有增删改查,对应的url分别为:
diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmCostNlaborMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmCostNlaborMapper.xml index 81e10047..b32ee1d0 100644 --- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmCostNlaborMapper.xml +++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmCostNlaborMapper.xml @@ -13,7 +13,45 @@ - + + + +