|
@@ -134,18 +134,6 @@ public class WorkInvoiceController extends BaseController {
|
|
public String list(WorkInvoice workInvoice, HttpServletRequest request, HttpServletResponse response, Model model) {
|
|
public String list(WorkInvoice workInvoice, HttpServletRequest request, HttpServletResponse response, Model model) {
|
|
Page<WorkInvoice> page = workInvoiceService.findPage(new Page<WorkInvoice>(request, response), workInvoice);
|
|
Page<WorkInvoice> page = workInvoiceService.findPage(new Page<WorkInvoice>(request, response), workInvoice);
|
|
List<WorkInvoice> workInvoiceList = page.getList();
|
|
List<WorkInvoice> workInvoiceList = page.getList();
|
|
- for (WorkInvoice info: workInvoiceList) {
|
|
|
|
- if(UserUtils.getUser().getOffice().getName().equals("财务部") || UserUtils.getUser().getId().equals(info.getCreateBy().getId())){
|
|
|
|
- info.setCancellation("1");
|
|
|
|
- }else{
|
|
|
|
- info.setCancellation("0");
|
|
|
|
- }
|
|
|
|
- if(UserUtils.isManager()){
|
|
|
|
- info.setAdminFlag("1");
|
|
|
|
- }else{
|
|
|
|
- info.setAdminFlag("0");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
model.addAttribute("page", page);
|
|
model.addAttribute("page", page);
|
|
model.addAttribute("workInvoiceShow", workInvoice);
|
|
model.addAttribute("workInvoiceShow", workInvoice);
|
|
return "modules/workinvoice/workInvoiceList";
|
|
return "modules/workinvoice/workInvoiceList";
|