This is a Java method that checks for unpaid bills in a project and creates a warning record if any bill is unpaid for more than 15 days. The method takes a GrProjectRule object as input and returns a boolean value indicating whether any unpaid bills were found.

The method first retrieves the WinProject and Project objects associated with the given GrProjectRule. It then creates a QParam object and adds the project ID, day (15), and mode (1) as search parameters. It uses these parameters to call the shipperBillDao's findList method to retrieve a list of unpaid bills.

If any unpaid bills are found, the method filters the bills to only include those that have not been previously flagged as late payments or have been unpaid for more than 15 days beyond the specified late payment days. It then creates a warning record for the project and sends a warning message to the project owner if there are more than five unpaid bills.

Finally, the method returns a boolean value indicating whether any unpaid bills were found.

public boolean transUnpaidGrProjectRule rule WinProject pro = winProjectDaogetrulegetProjectgetId; Project project = progetParent; QParam q = new QParam; qqputprojectId pr

原文地址: https://www.cveoy.top/t/topic/bnyz 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录