Browse Source

//a video

private_deployment
xhxu 2 years ago
parent
commit
edefa86296
2 changed files with 8 additions and 3 deletions
  1. +1
    -1
      suimangCApi/src/main/java/com/iformall/controller/MouldPatchController.java
  2. +7
    -2
      suimangService/src/main/resources/mapper/MouldPatchMapper.xml

+ 1
- 1
suimangCApi/src/main/java/com/iformall/controller/MouldPatchController.java View File

@@ -62,7 +62,7 @@ public class MouldPatchController extends BaseController {
}

@ApiOperation("根据输入文案获取音色")
@GetMapping("voiceList")
@PostMapping("voiceList")
@ApiImplicitParams({
@ApiImplicitParam(name = "pageNum", value = "页数", dataType = "int", paramType = "query", required = true),
@ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", required = true)})


+ 7
- 2
suimangService/src/main/resources/mapper/MouldPatchMapper.xml View File

@@ -14,6 +14,7 @@
<result column="sex" jdbcType="INTEGER" property="sex"/>
<result column="age" jdbcType="INTEGER" property="age"/>
<result column="colour" jdbcType="INTEGER" property="colour"/>
<result column="languages" jdbcType="INTEGER" property="languages"/>
<result column="scene_sign" jdbcType="VARCHAR" property="sceneSign"/>
<result column="sale_price" jdbcType="INTEGER" property="salePrice"/>
<result column="price" jdbcType="INTEGER" property="price"/>
@@ -30,7 +31,7 @@

<sql id="allColumns">
`id`, `tenant_id`, `parent_tenant_id`, `type`, `cover_img`, `cover_picture`, `detail_picture`,
`title`, `sub_title`, `sex`, `age`, `colour`, `scene_sign`, `sale_price`, `price`,
`title`, `sub_title`, `sex`, `age`, `colour`, `languages`, `scene_sign`, `sale_price`, `price`,
`send_type`, `detail`, `remark`, `mould_sm_id`, `status`, `puton_date`,`example_video_id`, `create_date`, `update_date`
</sql>

@@ -72,6 +73,10 @@
and `colour` = #{colour}
</if>

<if test=" null != languages ">
and `languages` = #{languages}
</if>

<if test=" null != sceneSign and '' != sceneSign">
and JSON_CONTAINS(scene_sign,json_array(#{sceneSign}))
</if>
@@ -123,7 +128,7 @@
<select id="findCList" parameterType="com.iformall.domain.po.sm.MouldPatch" resultMap="BaseResultMap">
select
`id`, `type`, `cover_img`, `cover_picture`,
`title`, `sub_title`, `sex`, `age`, `colour`, `scene_sign`, `sale_price`, `price`,
`title`, `sub_title`, `sex`, `age`, `colour`, `languages`, `scene_sign`, `sale_price`, `price`,
`send_type`, `mould_sm_id`, `status`,`example_video_id`, `create_date`, `update_date`
from mould_patch
<include refid="dynamicWhereConditions"/>


Loading…
Cancel
Save