作者 钟来

问卷调查添加手机号

... ... @@ -66,7 +66,6 @@ public class ContentGroupManagementController extends BaseController
* 新增分组内容管理
*/
@ApiOperation("新增分组内容管理")
@Log(title = "分组内容管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ContentGroupManagement contentGroupManagement, HttpServletRequest httpServletRequest)
{
... ... @@ -105,7 +104,6 @@ public class ContentGroupManagementController extends BaseController
* 修改分组内容管理
*/
@ApiOperation("修改分组内容管理")
@Log(title = "分组内容管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ContentGroupManagement contentGroupManagement)
{
... ... @@ -117,7 +115,6 @@ public class ContentGroupManagementController extends BaseController
* 删除分组内容管理
*/
@ApiOperation("删除分组内容管理")
@Log(title = "分组内容管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Integer[] ids)
{
... ...
... ... @@ -64,7 +64,6 @@ public class ContentGroupManagementDescribeController extends BaseController
* 新增分组内容管理描述表
*/
@ApiOperation("新增分组内容管理描述表")
@Log(title = "分组内容管理描述表", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ContentGroupManagementDescribe contentGroupManagementDescribe)
{
... ... @@ -77,7 +76,6 @@ public class ContentGroupManagementDescribeController extends BaseController
* 修改分组内容管理描述表
*/
@ApiOperation("修改分组内容管理描述表")
@Log(title = "分组内容管理描述表", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ContentGroupManagementDescribe contentGroupManagementDescribe)
{
... ... @@ -89,7 +87,6 @@ public class ContentGroupManagementDescribeController extends BaseController
* 删除分组内容管理描述表
*/
@ApiOperation("删除分组内容管理描述表")
@Log(title = "分组内容管理描述表", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Integer[] ids)
{
... ...
... ... @@ -11,10 +11,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="id" column="id" />
<result property="sort" column="sort" />
<result property="update_time" column="update_time" />
<result property="phone" column="phone" />
</resultMap>
<sql id="selectContentGroupManagementVo">
select `content`, `create_time`, `group_name`, `id`, `sort`,`update_time` from content_group_management
select `content`, `create_time`, `group_name`, `id`, `sort`,`update_time`,`phone` from content_group_management
</sql>
<select id="selectContentGroupManagementList" parameterType="ContentGroupManagement" resultMap="ContentGroupManagementResult">
... ... @@ -23,6 +24,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="params.beginCreate_time != null and params.beginCreate_time != '' and params.endCreate_time != null and params.endCreate_time != ''"> and create_time between #{params.beginCreate_time} and #{params.endCreate_time}</if>
<if test="group_name != null and group_name != ''"> and group_name like concat('%', #{group_name}, '%')</if>
<if test="id != null "> and id = #{id}</if>
<if test="phone != null and phone != ''">
AND phone like concat('%', #{phone}, '%')
</if>
</where>
order by `sort` desc
</select>
... ... @@ -39,12 +43,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="create_time != null">create_time,</if>
<if test="group_name != null and group_name != ''">group_name,</if>
<if test="sort != null">sort,</if>
<if test="phone != null">phone,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="content != null and content != ''">#{content},</if>
<if test="create_time != null">#{create_time},</if>
<if test="group_name != null and group_name != ''">#{group_name},</if>
<if test="sort != null">#{sort},</if>
<if test="phone != null">#{phone},</if>
</trim>
</insert>
... ... @@ -56,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="group_name != null and group_name != ''">group_name = #{group_name},</if>
<if test="sort != null">sort = #{sort},</if>
<if test="update_time != null">update_time = #{update_time},</if>
<if test="phone != null">phone = #{phone},</if>
</trim>
where id = #{id}
</update>
... ...