Bladeren bron

半月报添加

Signed-off-by: tangsong <86121657@qq.com>
tangsong 1 jaar geleden
bovenliggende
commit
05b3ffe300

+ 1 - 1
src/main/java/com/chinaitop/depot/rp/controller/BusinessRpBiweeklyReportController.java

@@ -108,7 +108,7 @@ public class BusinessRpBiweeklyReportController {
108 108
 //    @ApiImplicitParams({
109 109
 //            @ApiImplicitParam(name = "businessRpBiweeklyReport", value = "主表数据", paramType = "query")
110 110
 //    })
111
-    public Map<String, Object> add(BusinessRpBiweeklyReport businessRpBiweeklyReport)
111
+    public Map<String, Object> add(@RequestBody BusinessRpBiweeklyReport businessRpBiweeklyReport)
112 112
             throws Exception {
113 113
         Map<String, Object> modelMap = new HashMap<String, Object>();
114 114
 

+ 2 - 2
src/main/java/com/chinaitop/depot/rp/mapper/BusinessRpBiweeklyReportMapper.xml

@@ -102,7 +102,7 @@
102 102
             <include refid="Example_Where_Clause" />
103 103
         </if>
104 104
     </delete>
105
-    <insert id="insert" parameterType="com.chinaitop.depot.rp.model.BusinessRpBiweeklyReport" >
105
+    <insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.rp.model.BusinessRpBiweeklyReport" >
106 106
     insert into business_rp_biweekly_report (id, createdate, updatename,
107 107
       updatedate, org_id, rp_report_id,
108 108
       report_time, status)
@@ -110,7 +110,7 @@
110 110
       #{updatedate,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER}, #{rpReportId,jdbcType=INTEGER},
111 111
       #{reportTime,jdbcType=TIMESTAMP}, #{status,jdbcType=TINYINT})
112 112
   </insert>
113
-    <insert id="insertSelective" parameterType="com.chinaitop.depot.rp.model.BusinessRpBiweeklyReport" >
113
+    <insert id="insertSelective" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.rp.model.BusinessRpBiweeklyReport" >
114 114
         insert into business_rp_biweekly_report
115 115
         <trim prefix="(" suffix=")" suffixOverrides="," >
116 116
             <if test="id != null" >