Commit ccb25a52 authored by lizhichao's avatar lizhichao

应收、应付列表查询接口

parent 67a15ef9
......@@ -101,4 +101,12 @@ public class TTradeProjectController extends BaseController
{
return toAjax(tTradeProjectService.deleteTTradeProjectByIds(tradeIds));
}
@GetMapping("/getIncomeOrPayableList")
public TableDataInfo getIncomeOrPayableList(TTradeProject tTradeProject)
{
startPage();
List<TTradeProject> list = tTradeProjectService.getIncomeOrPayableList(tTradeProject);
return getDataTable(list);
}
}
......@@ -58,4 +58,11 @@ public interface TTradeProjectMapper
* @return 结果
*/
public int deleteTTradeProjectByIds(Long[] tradeIds);
/**
* 查询应收、应付项目列表
* @param tTradeProject
* @return
*/
public List<TTradeProject> getIncomeOrPayableList(TTradeProject tTradeProject);
}
......@@ -65,4 +65,5 @@ public interface ITTradeProjectService
* @return 结果
*/
public int deleteTTradeProjectById(Long tradeId);
public List<TTradeProject> getIncomeOrPayableList(TTradeProject tTradeProject);
}
......@@ -155,4 +155,9 @@ public class TTradeProjectServiceImpl implements ITTradeProjectService
{
return tTradeProjectMapper.deleteTTradeProjectById(tradeId);
}
@Override
public List<TTradeProject> getIncomeOrPayableList(TTradeProject tTradeProject) {
return tTradeProjectMapper.getIncomeOrPayableList(tTradeProject);
}
}
......@@ -212,4 +212,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{tradeId}
</foreach>
</delete>
<select id="getIncomeOrPayableList" parameterType="TTradeProject" resultMap="TTradeProjectResult">
<include refid="selectTTradeProjectVo"/>
<where>
trade_status =3
<if test="applyDeptId != null"> and apply_dept_id = #{applyDeptId}</if>
<if test="tradeTransactor != null"> and trade_transactor = #{tradeTransactor}</if>
<if test="tradeDeptId != null"> and trade_dept_id = #{tradeDeptId}</if>
</where>
order by create_time desc
</select>
</mapper>
\ No newline at end of file
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