mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 17:38:48 +08:00
修复添加预收费记录默认数据不完整
This commit is contained in:
parent
b4cfb9cb80
commit
8657a73b92
@ -16,6 +16,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
|
|||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -114,6 +115,8 @@ public class FtPrepaymentDaoController extends BaseController {
|
|||||||
@Log(title = "收费管理", businessType = BusinessType.INSERT)
|
@Log(title = "收费管理", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody FtPrepaymentVo ftPrepaymentDao) {
|
public AjaxResult add(@RequestBody FtPrepaymentVo ftPrepaymentDao) {
|
||||||
|
ftPrepaymentDao.setCollectAt(new Date());
|
||||||
|
ftPrepaymentDao.setSettlementFlag(0);
|
||||||
return toAjax(iFtPrepaymentDaoService.save(ftPrepaymentDao) ? 1 : 0);
|
return toAjax(iFtPrepaymentDaoService.save(ftPrepaymentDao) ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ public class FtPrepaymentVo implements Serializable {
|
|||||||
* 结算标志
|
* 结算标志
|
||||||
*/
|
*/
|
||||||
@Excel(name = "结算标志")
|
@Excel(name = "结算标志")
|
||||||
private Long settlementFlag;
|
private Integer settlementFlag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 预付费金额
|
* 预付费金额
|
||||||
|
|||||||
@ -202,6 +202,7 @@
|
|||||||
components: {},
|
components: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
userName: null,
|
||||||
settlementFlagOptions: [{
|
settlementFlagOptions: [{
|
||||||
value: null,
|
value: null,
|
||||||
label: '未交费'
|
label: '未交费'
|
||||||
@ -260,6 +261,7 @@
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getDefaultNoPrepayment();
|
this.getDefaultNoPrepayment();
|
||||||
|
this.getUser();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user