linxk před 2 týdny
rodič
revize
f040036676

+ 1 - 1
cif-service/src/main/java/com/txz/cif/model/RechargeRecord.java

@@ -95,7 +95,7 @@ public class RechargeRecord {
      */
     @Column(name = "goods_id")
     @ApiModelProperty(value="goodsId商品id")
-    private Long goodsId;
+    private Integer goodsId;
 
     /**
      * 创建人

+ 1 - 1
cif-service/src/main/java/com/txz/cif/web/RechargeRecordApiController.java

@@ -69,7 +69,7 @@ public class RechargeRecordApiController {
 
 		@GetMapping("/add")
 	@ApiOperation(value = "创建充值订单",httpMethod = "GET")
-    public Result add(@RequestParam Long goodsId, HttpServletRequest request) {
+    public Result add(@RequestParam Integer goodsId, HttpServletRequest request) {
 		Long userId = authService.getTokenUserId(request);
 		if(goodsId == null){
 			return ResultGenerator.genFailResult(ResultCode.OBJECT_IS_NULL);

+ 0 - 52
cif-service/src/main/java/com/txz/cif/web/WithdrawRecordApiController.java

@@ -135,58 +135,6 @@ public class WithdrawRecordApiController {
 
     }
 
-    @GetMapping("/delete")
-	@ApiOperation(value = "withdrawRecord删除",httpMethod = "GET")
-    public Result delete(@RequestParam Integer id) {
-    	if(id == null){
-    		return ResultGenerator.genFailResult(ResultCode.ID_IS_NULL);
-    	}
-    	try {
-    		withdrawRecordService.deleteById(id);
-		} catch (Exception e) {
-			log.error("删除对象操作异常e:{}",e);
-			return ResultGenerator.genFailResult(ResultCode.INTERNAL_SERVER_ERROR);
-		}
-        return ResultGenerator.genSuccessResult();
-    }
-
-    @PostMapping("/update")
-	@ApiOperation(value = "withdrawRecord更新",httpMethod = "POST")
-    public Result update(@RequestBody WithdrawRecord withdrawRecord) {
-    	if(withdrawRecord == null){
-    		return ResultGenerator.genFailResult(ResultCode.OBJECT_IS_NULL);
-    	}
-    	if(withdrawRecord.getId() == null){
-    		return ResultGenerator.genFailResult(ResultCode.ID_IS_NULL);
-    	}
-    	try {
-    //		withdrawRecord.setUpdateTime(new Date());
-    //		withdrawRecord.setUpdateUserId(userId);
-    		withdrawRecordService.update(withdrawRecord);
-		} catch (Exception e) {
-			log.error("更新对象操作异常e:{}",e);
-			return ResultGenerator.genFailResult(ResultCode.INTERNAL_SERVER_ERROR);
-		}
-        return ResultGenerator.genSuccessResult();
-    }
-
-    @GetMapping("/detail")
-	@ApiOperation(value = "withdrawRecord获取详情",httpMethod = "GET")
-    public Result<WithdrawRecord> detail(@RequestParam Integer id) {
-    	if(id == null){
-    		return ResultGenerator.genFailResult(ResultCode.ID_IS_NULL);
-    	}
-
-    	WithdrawRecord withdrawRecord = null;
-    	try {
-    		withdrawRecord = withdrawRecordService.findById(id);
-		} catch (Exception e) {
-			log.error("查询对象操作异常e:{}",e);
-			return ResultGenerator.genFailResult(ResultCode.INTERNAL_SERVER_ERROR);
-		}
-
-        return ResultGenerator.genSuccessResult(withdrawRecord);
-    }
 
     @PostMapping("/list")
 	@ApiOperation(value = "withdrawRecord获取列表",httpMethod = "POST")

+ 1 - 1
cif-service/src/main/resources/mapper/RechargeRecordMapper.xml

@@ -18,7 +18,7 @@
     <result column="user_phone" jdbcType="VARCHAR" property="userPhone" />
     <result column="trans_time" jdbcType="TIMESTAMP" property="transTime" />
     <result column="success_time" jdbcType="TIMESTAMP" property="successTime" />
-    <result column="goods_id" jdbcType="BIGINT" property="goodsId" />
+    <result column="goods_id" jdbcType="INTEGER" property="goodsId" />
     <result column="create_user" jdbcType="VARCHAR" property="createUser" />
     <result column="update_user" jdbcType="VARCHAR" property="updateUser" />
     <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />