修改接口

This commit is contained in:
haozq 2025-09-11 13:56:15 +08:00
parent 1bda8a9957
commit 5ec39da241
2 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ import com.bonus.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -25,11 +26,11 @@ public class ProductScreenController {
*/
@PostMapping("/getProductList")
public AjaxResult getProductList(TbProduct product ){
public AjaxResult getProductList(@RequestBody TbProduct product ){
return service.getProductList(product) ;
}
@PostMapping("/getProductDetails")
public AjaxResult getProductDetails(TbProduct product ){
public AjaxResult getProductDetails(@RequestBody TbProduct product ){
return service.getProductDetails(product) ;
}

View File

@ -14,7 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join sys_user su on su.user_id=tpt.create_user
where tpt.del_flag=0
<if test="name != null and name != ''"> and tpt.name like concat('%',#{name},'%')</if>
<if test="linkUrl != null and linkUrl != ''"> and tpt.type_id = #{typeId}</if>
<if test="typeId != null and typeId != ''"> and tpt.type_id = #{typeId}</if>
<if test="typeName != null and typeName != ''"> and sdd.dict_label like concat('%', #{typeName}, '%')</if>
<if test="isLink != null and isLink != ''"> and tpt.is_access = #{isAccess}</if>
<if test="introduction != null and introduction != ''"> and tpt.introduction like concat('%', #{typeName},'%')</if>