202404 免责声明
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -25,4 +25,6 @@ hs_err_pid*
|
|||||||
|
|
||||||
*/target
|
*/target
|
||||||
|
|
||||||
|
target
|
||||||
|
|
||||||
*.iml
|
*.iml
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ public class ListenKeyFrame {
|
|||||||
frame.add(label);
|
frame.add(label);
|
||||||
frame.add(buttonIn);
|
frame.add(buttonIn);
|
||||||
frame.add(buttonOut);
|
frame.add(buttonOut);
|
||||||
// frame.add(jTextField); // 注释
|
frame.add(jTextField); // 注释
|
||||||
// frame.add(buttonSubmit); // 注释
|
frame.add(buttonSubmit); // 注释
|
||||||
frame.add(buttonPlay);
|
frame.add(buttonPlay);
|
||||||
frame.setFocusableWindowState(true);
|
frame.setFocusableWindowState(true);
|
||||||
frame.setAlwaysOnTop(true);
|
frame.setAlwaysOnTop(true);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
|
|||||||
* @since 2017-06-19
|
* @since 2017-06-19
|
||||||
*/
|
*/
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
@EnableScheduling
|
//@EnableScheduling
|
||||||
@MapperScan(value = {"com.ydd.oms.mapper","com.sv.mapper"})
|
@MapperScan(value = {"com.ydd.oms.mapper","com.sv.mapper"})
|
||||||
public class OmsApplication {
|
public class OmsApplication {
|
||||||
|
|
||||||
|
|||||||
@@ -27,10 +27,10 @@ public class DisclaimersController extends OmsController {
|
|||||||
/**
|
/**
|
||||||
* 查询免责声明信息
|
* 查询免责声明信息
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/notice/disclaimers", method = RequestMethod.POST)
|
@RequestMapping(value = "/notice/disclaimers", method = RequestMethod.GET)
|
||||||
public ResponseDTO findById() {
|
public ResponseDTO findById() {
|
||||||
return ResponseDTO.ok()
|
return ResponseDTO.ok()
|
||||||
.addAttribute("aboutUs", disclaimersService.findById(1));
|
.addAttribute("disclaimers", disclaimersService.findById(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -32,3 +32,9 @@ CREATE TABLE `sv_disclaimers` (
|
|||||||
`deleted` int(3) unsigned DEFAULT '0' COMMENT '删除标识位: 0正常 1删除',
|
`deleted` int(3) unsigned DEFAULT '0' COMMENT '删除标识位: 0正常 1删除',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='免责声明';
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='免责声明';
|
||||||
|
|
||||||
|
-- 新增免责声明菜单
|
||||||
|
INSERT INTO `smart_venue`.`sys_menu`(`status`, `name`, `en_name`, `url`, `icon`, `parent_id`, `sort`, `remark`, `created_id`, `modified_id`, `created_time`, `modified_time`, `deleted`) VALUES
|
||||||
|
(0, '免责声明', '免责声明', 'disclaimers/edit', '', 36, 7, '', 0, 0, NOW(), NOW(), 0);
|
||||||
|
|
||||||
|
INSERT sys_role_menu VALUES ('1','52');
|
||||||
|
|||||||
@@ -11,9 +11,5 @@ public interface DisclaimersMapper {
|
|||||||
|
|
||||||
Disclaimers selectByPrimaryKey(Integer id);
|
Disclaimers selectByPrimaryKey(Integer id);
|
||||||
|
|
||||||
int updateByPrimaryKeySelective(Disclaimers record);
|
|
||||||
|
|
||||||
int updateByPrimaryKeyWithBLOBs(Disclaimers record);
|
|
||||||
|
|
||||||
int updateByPrimaryKey(Disclaimers record);
|
int updateByPrimaryKey(Disclaimers record);
|
||||||
}
|
}
|
||||||
@@ -35,6 +35,7 @@ public class DisclaimersService extends BaseServiceImpl {
|
|||||||
// 需要更新或者创建
|
// 需要更新或者创建
|
||||||
if (disclaimers.getId() != null && disclaimers.getId() > 0) {
|
if (disclaimers.getId() != null && disclaimers.getId() > 0) {
|
||||||
// 更新
|
// 更新
|
||||||
|
disclaimers.setPlatformId(1);
|
||||||
disclaimersMapper.updateByPrimaryKey(disclaimers);
|
disclaimersMapper.updateByPrimaryKey(disclaimers);
|
||||||
} else {
|
} else {
|
||||||
// 新建
|
// 新建
|
||||||
|
|||||||
@@ -105,7 +105,7 @@
|
|||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="com.sv.entity.Disclaimers" >
|
<update id="updateByPrimaryKey" parameterType="com.sv.entity.Disclaimers" >
|
||||||
update sv_disclaimers
|
update sv_disclaimers
|
||||||
<set >
|
<set >
|
||||||
<if test="platformId != null" >
|
<if test="platformId != null" >
|
||||||
@@ -132,25 +132,4 @@
|
|||||||
</set>
|
</set>
|
||||||
where id = #{id,jdbcType=INTEGER}
|
where id = #{id,jdbcType=INTEGER}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sv.entity.Disclaimers" >
|
|
||||||
update sv_disclaimers
|
|
||||||
set platform_id = #{platformId,jdbcType=INTEGER},
|
|
||||||
created_id = #{createdId,jdbcType=INTEGER},
|
|
||||||
modified_id = #{modifiedId,jdbcType=INTEGER},
|
|
||||||
created_time = #{createdTime,jdbcType=TIMESTAMP},
|
|
||||||
modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
|
|
||||||
deleted = #{deleted,jdbcType=INTEGER},
|
|
||||||
description = #{description,jdbcType=LONGVARCHAR}
|
|
||||||
where id = #{id,jdbcType=INTEGER}
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKey" parameterType="com.sv.entity.Disclaimers" >
|
|
||||||
update sv_disclaimers
|
|
||||||
set platform_id = #{platformId,jdbcType=INTEGER},
|
|
||||||
created_id = #{createdId,jdbcType=INTEGER},
|
|
||||||
modified_id = #{modifiedId,jdbcType=INTEGER},
|
|
||||||
created_time = #{createdTime,jdbcType=TIMESTAMP},
|
|
||||||
modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
|
|
||||||
deleted = #{deleted,jdbcType=INTEGER}
|
|
||||||
where id = #{id,jdbcType=INTEGER}
|
|
||||||
</update>
|
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user