Commit 7906d6a0 authored by 祁正's avatar 祁正

项目费用报销-搜索

parent 7d36610d
...@@ -23,15 +23,15 @@ public class FyglProjectCostReimbursementController extends BaseController { ...@@ -23,15 +23,15 @@ public class FyglProjectCostReimbursementController extends BaseController {
private IFyglProjectCostReimbursementService reimbursementService; private IFyglProjectCostReimbursementService reimbursementService;
//获取报销列表 //获取报销列表
@Anonymous
@GetMapping("/getList") @GetMapping("/getList")
public TableDataInfo list() { public TableDataInfo list(FyglProjectCostReimbursementDTO ReimbursementDTO) {
startPage(); startPage();
List<FyglProjectCostReimbursementDTO> list = reimbursementService.getList(); List<FyglProjectCostReimbursementDTO> list = reimbursementService.getList(ReimbursementDTO);
return getDataTable(list); return getDataTable(list);
} }
//获取待报销列表 //获取待报销列表
@Anonymous
@GetMapping("/approvestatus3List") @GetMapping("/approvestatus3List")
public TableDataInfo approvestatus3List(FyglProjectCostDTO fyglProjectCostDTO) { public TableDataInfo approvestatus3List(FyglProjectCostDTO fyglProjectCostDTO) {
startPage(); startPage();
...@@ -41,7 +41,6 @@ public class FyglProjectCostReimbursementController extends BaseController { ...@@ -41,7 +41,6 @@ public class FyglProjectCostReimbursementController extends BaseController {
//根据项目id获取报销详情 //根据项目id获取报销详情
@Anonymous
@GetMapping("/reimbursementDetail/{id}") @GetMapping("/reimbursementDetail/{id}")
public AjaxResult getDetail(@PathVariable("id") Integer id) public AjaxResult getDetail(@PathVariable("id") Integer id)
{ {
......
...@@ -12,7 +12,7 @@ import java.util.List; ...@@ -12,7 +12,7 @@ import java.util.List;
public interface FyglProjectCostReimbursementMapper { public interface FyglProjectCostReimbursementMapper {
//列表 //列表
List<FyglProjectCostReimbursementDTO> getList(); List<FyglProjectCostReimbursementDTO> getList(FyglProjectCostReimbursementDTO ReimbursementDTO);
//获取详情 //获取详情
public FyglProjectCostReimbursementDTO getDetail(Integer id); public FyglProjectCostReimbursementDTO getDetail(Integer id);
......
...@@ -7,7 +7,7 @@ import com.ruoyi.domain.vo.FyglDailyReimbursementVo; ...@@ -7,7 +7,7 @@ import com.ruoyi.domain.vo.FyglDailyReimbursementVo;
import java.util.List; import java.util.List;
public interface IFyglProjectCostReimbursementService { public interface IFyglProjectCostReimbursementService {
List<FyglProjectCostReimbursementDTO> getList(); List<FyglProjectCostReimbursementDTO> getList(FyglProjectCostReimbursementDTO ReimbursementDTO);
//获取详情 //获取详情
public FyglProjectCostReimbursementDTO getDetail(Integer id); public FyglProjectCostReimbursementDTO getDetail(Integer id);
......
...@@ -29,8 +29,8 @@ public class IFyglProjectCostReimbursementServiceImpl implements IFyglProjectCos ...@@ -29,8 +29,8 @@ public class IFyglProjectCostReimbursementServiceImpl implements IFyglProjectCos
private SerialNumberGenerator serialNumberGenerator; private SerialNumberGenerator serialNumberGenerator;
@Override @Override
public List<FyglProjectCostReimbursementDTO> getList() { public List<FyglProjectCostReimbursementDTO> getList(FyglProjectCostReimbursementDTO ReimbursementDTO) {
return reimbursementMapper.getList(); return reimbursementMapper.getList(ReimbursementDTO);
} }
//获取报销详情 //获取报销详情
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</insert> </insert>
<select id="getList" resultMap="listDTO"> <select id="getList" resultMap="listDTO" parameterType="com.ruoyi.domain.dto.FyglProjectCostReimbursementDTO">
SELECT SELECT
p.project_number, p.project_number,
r1.id, r1.id,
...@@ -70,6 +70,11 @@ ...@@ -70,6 +70,11 @@
fygl_project_cost_reimbursement r1 fygl_project_cost_reimbursement r1
LEFT JOIN fygl_project_cost_request r2 ON r2.id = r1.rid LEFT JOIN fygl_project_cost_request r2 ON r2.id = r1.rid
LEFT JOIN project_manage p ON p.id = r2.project_id LEFT JOIN project_manage p ON p.id = r2.project_id
<where>
<if test="projectName != null and projectName != ''"> and p.project_name like concat('%',#{projectName},'%') </if>
<if test="projectType != null and projectType != ''"> and p.project_type = #{projectType}</if>
<if test="reimbursmentApproveStatus != null and reimbursmentApproveStatus != ''">r1.reimbursment_approve_status = #{reimbursmentApproveStatus}</if>
</where>
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment