新购接口优化

This commit is contained in:
sxu 2024-11-08 09:54:17 +08:00
parent a22186df3d
commit 18bb839e02
2 changed files with 2 additions and 23 deletions

View File

@ -152,7 +152,7 @@ public class PurchaseCheckInfoController extends BaseController {
*/ */
@ApiOperation(value = "导出新购验收任务详细列表") @ApiOperation(value = "导出新购验收任务详细列表")
@PreventRepeatSubmit @PreventRepeatSubmit
//@RequiresPermissions("purchase:details:export") //@RequiresPermissions("purchase:info:export")
@SysLog(title = "新购验收任务详细", businessType = OperaType.EXPORT, logType = 1,module = "物资新购->导出新购验收任务详细") @SysLog(title = "新购验收任务详细", businessType = OperaType.EXPORT, logType = 1,module = "物资新购->导出新购验收任务详细")
@PostMapping("/exportDetails") @PostMapping("/exportDetails")
public void exportDetails(HttpServletResponse response, PurchaseCheckInfo purchaseCheckInfo) { public void exportDetails(HttpServletResponse response, PurchaseCheckInfo purchaseCheckInfo) {

View File

@ -77,28 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectPurchaseCheckDetailsListFromInfo" parameterType="com.bonus.material.purchase.domain.PurchaseCheckInfo" resultMap="PurchaseCheckDetailsResult"> <select id="selectPurchaseCheckDetailsListFromInfo" parameterType="com.bonus.material.purchase.domain.PurchaseCheckInfo" resultMap="PurchaseCheckDetailsResult">
<include refid="selectPurchaseCheckDetailsVo"/> <include refid="selectPurchaseCheckDetailsVo"/>
<where> where task_id = #{taskId}
<if test="taskId != null "> and task_id = #{taskId}</if>
<if test="typeId != null "> and type_id = #{typeId}</if>
<if test="purchasePrice != null "> and purchase_price = #{purchasePrice}</if>
<if test="purchaseTaxPrice != null "> and purchase_tax_price = #{purchaseTaxPrice}</if>
<if test="purchaseNum != null "> and purchase_num = #{purchaseNum}</if>
<if test="checkNum != null "> and check_num = #{checkNum}</if>
<if test="bindNum != null "> and bind_num = #{bindNum}</if>
<if test="checkResult != null and checkResult != ''"> and check_result = #{checkResult}</if>
<if test="supplierId != null "> and supplier_id = #{supplierId}</if>
<if test="status != null "> and status = #{status}</if>
<if test="productionTime != null "> and production_time = #{productionTime}</if>
<if test="checkUrlName != null and checkUrlName != ''"> and check_url_name like concat('%', #{checkUrlName}, '%')</if>
<if test="checkUrl != null and checkUrl != ''"> and check_url = #{checkUrl}</if>
<if test="inputNum != null "> and input_num = #{inputNum}</if>
<if test="inputStatus != null and inputStatus != ''"> and input_status = #{inputStatus}</if>
<if test="inputTime != null "> and input_time = #{inputTime}</if>
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="fixCode != null "> and fix_code = #{fixCode}</if>
</where>
</select> </select>
<select id="selectPurchaseCheckDetailsById" parameterType="Long" resultMap="PurchaseCheckDetailsResult"> <select id="selectPurchaseCheckDetailsById" parameterType="Long" resultMap="PurchaseCheckDetailsResult">