新购绑定

This commit is contained in:
mashuai 2024-10-22 16:32:55 +08:00
parent ef3e01353c
commit de3594b947
2 changed files with 11 additions and 7 deletions

View File

@ -83,7 +83,9 @@ public class PurchaseBindController extends BaseController {
* @param response
* @param purchaseDto
*/
@ApiOperation(value = "二维码生成下载")
@PostMapping(value = "/downloadQrCode")
@PreventRepeatSubmit
@RequiresPermissions("purchase:bpmPurchaseInfo:query")
public void downloadQrCode(HttpServletResponse response, PurchaseDto purchaseDto) {
purchaseBindService.downloadQrCode(response, purchaseDto);

View File

@ -56,14 +56,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="qrUrl != null">
qr_url,
</if>
<if test="id != null">
<if test="taskId != null">
task_id,
</if>
<if test="createBy != null">
create_by,
</if>
create_time,
del_flag
del_flag,
status
</trim>
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
<if test="qrCode != null">
@ -75,13 +76,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="qrUrl != null">
#{qrUrl},
</if>
<if test="id != null">
#{id},
<if test="taskId != null">
#{taskId},
</if>
<if test="createBy != null">
#{createBy},
</if>
NOW(),
0,
0
</trim>
</insert>
@ -180,10 +182,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="taskId != null">
AND pm.task_id = #{taskId}
</if>
<if test="typeId != null '">
<if test="typeId != null">
AND pm.type_id = #{typeId}
</if>
<if test="purchaseId != null '">
<if test="purchaseId != null">
AND pcd.id = #{purchaseId}
</if>
</select>