yupeng
2025-02-11 b936854ba43197c2c829074e4ea90526314ecce9
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TBillController.java
@@ -8,6 +8,7 @@
import com.ruoyi.system.query.TBillQuery;
import com.ruoyi.system.service.TBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -34,6 +35,11 @@
        return R.ok(pageInfo);
    }
    @PostMapping("add")
    public R<PageInfo<TBillDto>> add(@Validated @RequestBody TBill bill){
        tBillService.save(bill);
        return R.ok();
    }
}