Commit aaa9cf16 authored by chenzhao's avatar chenzhao

修改 投融修改接口

parent aba7510b
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.ApiModelProperty;
import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import java.util.List;
/**
*
......@@ -34,13 +37,13 @@ public class FinancingInfoDto extends BaseDto {
private Long peasantHouseholdId;
@ApiModelProperty(value = "放款时间")
private Date disbursementTime;
private String disbursementTime;
@ApiModelProperty(value = "元")
private Double disbursementMoney;
@ApiModelProperty(value = "附件")
private String file;
private List<Object> file;
@ApiModelProperty(value = "状态")
private String status;
......
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.CommonResponseUtil;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
......@@ -59,7 +62,13 @@ public class FinancingInfoController extends BaseController {
@ApiOperation(httpMethod = "PUT", value = "根据sequenceNbr更新", notes = "根据sequenceNbr更新")
public ResponseModel<FinancingInfoDto> updateBySequenceNbrFinancingInfo(@RequestBody FinancingInfoDto model,@PathVariable(value = "sequenceNbr") Long 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