Procházet zdrojové kódy

新增获取报销部门设置

anderx před 2 roky
rodič
revize
e381f46872

+ 12 - 0
src/main/java/com/goafanti/expenseAccount/controller/ExpenseAccountController.java

@@ -10,6 +10,7 @@ import com.goafanti.common.utils.excel.NewExcelUtil;
 import com.goafanti.core.shiro.token.TokenManager;
 import com.goafanti.expenseAccount.bo.*;
 import com.goafanti.expenseAccount.service.ExpenseAccountService;
+import com.goafanti.organization.bo.OrganizationListOut;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.validation.BindingResult;
@@ -431,4 +432,15 @@ public class ExpenseAccountController extends CertifyApiController {
         return null;
     }
 
+    /**
+     *  获取报销部门设置
+     * @param id
+     * @return
+     */
+    @RequestMapping(value = "/getDepDetails",method = RequestMethod.GET)
+    public Result<OrganizationListOut> getDepDetails(Integer id){
+        Result res= new Result();
+        return res.data(expenseAccountService.getDepDetails(id));
+    }
+
 }

+ 2 - 0
src/main/java/com/goafanti/expenseAccount/service/ExpenseAccountService.java

@@ -68,4 +68,6 @@ public interface ExpenseAccountService {
     Object pageListExport(InputPageListBo in);
 
     Object detailsListExport(InputDetailsListBo in);
+
+    Object getDepDetails(Integer id);
 }

+ 7 - 0
src/main/java/com/goafanti/expenseAccount/service/impl/ExpenseAccountServiceImpl.java

@@ -358,6 +358,13 @@ public class ExpenseAccountServiceImpl extends BaseMybatisDao<ExpenseAccountMapp
         return excelUtil.exportExcel(list,"费用详细列表",uploadPath);
     }
 
+    @Override
+    public Object getDepDetails(Integer id) {
+        OutExpenseAccount outExpenseAccount = expenseAccountMapper.selectByid(id);
+        OrganizationListOut organizationListOut = departmentMapper.selectAllById(outExpenseAccount.getApplyDep());
+        return organizationListOut;
+    }
+
 
     private void pushResettingDebit(InputExpenseAccount in, Integer debitId) {
         ExpenseAccount debit = expenseAccountMapper.selectByPrimaryKey(debitId);

+ 19 - 0
src/main/java/com/goafanti/organization/bo/OrganizationListOut.java

@@ -87,10 +87,29 @@ public class OrganizationListOut {
     private String workingHoursName;
     private Integer lvl;
     private List<OrganizationListOut> list;
+    /**
+     * 财务复审 0-不需要 ,1-需要
+     */
     private Integer expenseRetrialFinanceExamine;
+
+    /**
+     * 董事长审核 0-不需要 ,1-需要
+     */
     private Integer ceoExamine;
+
+    /**
+     * 财务总监出纳状态 0-不需要 ,1-需要
+     */
     private Integer cfoExamine;
+
+    /**
+     * 公司副总出纳状态 0-不需要 ,1-需要
+     */
     private Integer viceCeoExamine;
+
+    /**
+     * 出纳审核 0-不需要 ,1-需要
+     */
     private Integer cashierExamine;
     private List<ExpenseConfigDetails> expenseRetrialFinanceExamineList;
     private List<ExpenseConfigDetails> ceoExamineList;