Commit aaa9cf16 authored by chenzhao's avatar chenzhao

修改 投融修改接口

parent aba7510b
package com.yeejoin.amos.boot.module.hygf.api.dto; package com.yeejoin.amos.boot.module.hygf.api.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.support.spring.annotation.FastJsonFilter;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import com.yeejoin.amos.boot.biz.common.dto.BaseDto; import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import java.util.Date; import java.util.Date;
import java.util.List;
/** /**
* *
...@@ -34,13 +37,13 @@ public class FinancingInfoDto extends BaseDto { ...@@ -34,13 +37,13 @@ public class FinancingInfoDto extends BaseDto {
private Long peasantHouseholdId; private Long peasantHouseholdId;
@ApiModelProperty(value = "放款时间") @ApiModelProperty(value = "放款时间")
private Date disbursementTime; private String disbursementTime;
@ApiModelProperty(value = "元") @ApiModelProperty(value = "元")
private Double disbursementMoney; private Double disbursementMoney;
@ApiModelProperty(value = "附件") @ApiModelProperty(value = "附件")
private String file; private List<Object> file;
@ApiModelProperty(value = "状态") @ApiModelProperty(value = "状态")
private String status; private String status;
......
package com.yeejoin.amos.boot.module.hygf.biz.controller; package com.yeejoin.amos.boot.module.hygf.biz.controller;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.map.MapBuilder;
import com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil; import com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil;
import com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseUtil; import com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseUtil;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -59,7 +62,13 @@ public class FinancingInfoController extends BaseController { ...@@ -59,7 +62,13 @@ public class FinancingInfoController extends BaseController {
@ApiOperation(httpMethod = "PUT", value = "根据sequenceNbr更新", notes = "根据sequenceNbr更新") @ApiOperation(httpMethod = "PUT", value = "根据sequenceNbr更新", notes = "根据sequenceNbr更新")
public ResponseModel<FinancingInfoDto> updateBySequenceNbrFinancingInfo(@RequestBody FinancingInfoDto model,@PathVariable(value = "sequenceNbr") Long sequenceNbr) { public ResponseModel<FinancingInfoDto> updateBySequenceNbrFinancingInfo(@RequestBody FinancingInfoDto model,@PathVariable(value = "sequenceNbr") Long sequenceNbr) {
model.setSequenceNbr(sequenceNbr); model.setSequenceNbr(sequenceNbr);
return ResponseHelper.buildResponse(financingInfoServiceImpl.updateWithModel(model)); financingInfoServiceImpl.updateWithModel(model);
if (null != model.getDisbursementMoney()){
Map<String, Object> map = BeanUtil.beanToMap(model);
map.put("approvalStatus","0");
financingInfoServiceImpl.execueFlow(map);
}
return ResponseHelper.buildResponse(model);
} }
/** /**
......
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