修复添加预收费记录默认数据不完整

This commit is contained in:
czx 2020-11-30 15:06:17 +08:00
parent b4cfb9cb80
commit 8657a73b92
3 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
/**
@ -114,6 +115,8 @@ public class FtPrepaymentDaoController extends BaseController {
@Log(title = "收费管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody FtPrepaymentVo ftPrepaymentDao) {
ftPrepaymentDao.setCollectAt(new Date());
ftPrepaymentDao.setSettlementFlag(0);
return toAjax(iFtPrepaymentDaoService.save(ftPrepaymentDao) ? 1 : 0);
}

View File

@ -75,7 +75,7 @@ public class FtPrepaymentVo implements Serializable {
* 结算标志
*/
@Excel(name = "结算标志")
private Long settlementFlag;
private Integer settlementFlag;
/**
* 预付费金额

View File

@ -202,6 +202,7 @@
components: {},
data() {
return {
userName: null,
settlementFlagOptions: [{
value: null,
label: '未交费'
@ -260,6 +261,7 @@
},
created() {
this.getDefaultNoPrepayment();
this.getUser();
},
mounted() {
},