Commit d0451ca1 authored by hezhen's avatar hezhen

修改人数

parent 21c5afd1
...@@ -72,7 +72,7 @@ public interface TourFeign { ...@@ -72,7 +72,7 @@ public interface TourFeign {
* @return * @return
*/ */
@PutMapping("/tourGood/verfication/personnums") @PutMapping("/tourGood/verfication/personnums")
ObjectRestResponse<Void> updateTourGoodPersonNum(@RequestParam("verficationId") Integer verficationId,@RequestParam("properties") String properties); ObjectRestResponse<Void> updateTourGoodPersonNum(@RequestParam("verficationId") Integer verficationId,@RequestParam("properties") String properties,@RequestParam("number") Integer number);
/** /**
* 查询订单列表 * 查询订单列表
......
...@@ -79,8 +79,8 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper, ...@@ -79,8 +79,8 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper,
* @param properties * @param properties
* @return * @return
*/ */
public int updateTourGoodPersonNum(Integer verficationId,String properties){ public int updateTourGoodPersonNum(Integer verficationId,String properties,Integer number){
return mapper.updateTourGoodPerNumbs(verficationId,properties); return mapper.updateTourGoodPerNumbs(verficationId,properties,number);
} }
} }
\ No newline at end of file
...@@ -37,8 +37,8 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification> ...@@ -37,8 +37,8 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification>
* @param properties * @param properties
* @return * @return
*/ */
@Update("update tour_good_verification set ${properties}=${properties}+1 where `id`=#{verficationId}") @Update("update tour_good_verification set ${properties}=${properties}+#{number} where `id`=#{verficationId}")
int updateTourGoodPerNumbs(@Param("verficationId") Integer verficationId,@Param("properties") String properties); int updateTourGoodPerNumbs(@Param("verficationId") Integer verficationId,@Param("properties") String properties,@Param("number") Integer number);
/** /**
* 更新出发状态 * 更新出发状态
......
...@@ -52,8 +52,11 @@ public class TourGoodVerificationController extends BaseController<TourGoodVerif ...@@ -52,8 +52,11 @@ public class TourGoodVerificationController extends BaseController<TourGoodVerif
*/ */
@PutMapping("/personnums") @PutMapping("/personnums")
@ApiOperation("更新总人数或上车人数") @ApiOperation("更新总人数或上车人数")
public ObjectRestResponse<Void> updateTourGoodPersonNum(@RequestParam("verficationId") Integer verficationId,@RequestParam("properties") String properties){ public ObjectRestResponse<Void> updateTourGoodPersonNum(
int effectRows = getBaseBiz().updateTourGoodPersonNum(verficationId,properties); @RequestParam("verficationId") Integer verficationId,
@RequestParam("properties") String properties,
@RequestParam(value = "number",defaultValue = "1") Integer number){
int effectRows = getBaseBiz().updateTourGoodPersonNum(verficationId,properties,number);
if (effectRows>0){ if (effectRows>0){
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment