build:依赖 工具
parent
5f5cc9aa7e
commit
76a23fa933
|
@ -67,6 +67,12 @@
|
|||
<artifactId>mcwl-myInvitation</artifactId>
|
||||
<version>3.8.8</version>
|
||||
</dependency>
|
||||
<!-- 公共模块-->
|
||||
<dependency>
|
||||
<groupId>com.mcwl</groupId>
|
||||
<artifactId>mcwl-common</artifactId>
|
||||
<version>3.8.8</version>
|
||||
</dependency>
|
||||
<!-- 资源中心模块-->
|
||||
<dependency>
|
||||
<groupId>com.mcwl</groupId>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
package com.mcwl.web.controller.resource;
|
||||
import com.mcwl.common.annotation.Anonymous;
|
||||
import com.mcwl.common.core.controller.BaseController;
|
||||
import com.mcwl.common.core.domain.AjaxResult;
|
||||
import com.mcwl.common.core.page.TableDataInfo;
|
||||
|
@ -16,6 +17,7 @@ import java.util.List;
|
|||
* @Description 商品
|
||||
* @Date:2024/12/31 10:48
|
||||
*/
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/MallProduct")
|
||||
public class MallProductController extends BaseController {
|
||||
|
@ -41,7 +43,7 @@ public class MallProductController extends BaseController {
|
|||
|
||||
|
||||
/**
|
||||
* 获取定时任务详细信息
|
||||
* 获取详细信息
|
||||
*/
|
||||
@GetMapping(value = "/{jobId}")
|
||||
public AjaxResult getInfo(@PathVariable("jobId") Long jobId)
|
||||
|
@ -50,9 +52,9 @@ public class MallProductController extends BaseController {
|
|||
}
|
||||
|
||||
/**
|
||||
* 新增定时任务
|
||||
* 新增
|
||||
*/
|
||||
@PostMapping
|
||||
@PostMapping("/add")
|
||||
public AjaxResult add(@RequestBody MallProduct mallProduct)
|
||||
{
|
||||
mallProduct.setCreateBy(getUsername());
|
||||
|
@ -60,9 +62,9 @@ public class MallProductController extends BaseController {
|
|||
}
|
||||
|
||||
/**
|
||||
* 修改定时任务
|
||||
* 修改
|
||||
*/
|
||||
@PutMapping
|
||||
@PutMapping("/upda")
|
||||
public AjaxResult edit(@RequestBody MallProduct mallProduct)
|
||||
{
|
||||
mallProduct.setUpdateBy(getUsername());
|
||||
|
@ -71,12 +73,12 @@ public class MallProductController extends BaseController {
|
|||
|
||||
|
||||
/**
|
||||
* 删除定时任务
|
||||
* 删除定
|
||||
*/
|
||||
@DeleteMapping("/{Ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] Ids)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@RequestBody Long[] ids)
|
||||
{
|
||||
mallProductRuleInfoService.deleteMallProductByIds(Ids);
|
||||
mallProductRuleInfoService.deleteMallProductByIds(ids);
|
||||
return success();
|
||||
}
|
||||
|
||||
|
|
|
@ -116,11 +116,11 @@ mybatis-plus:
|
|||
autoMappingBehavior: PARTIAL
|
||||
# MyBatis 自动映射时未知列或未知属性处理策
|
||||
# NONE:不做处理 WARNING:打印相关警告 FAILING:抛出异常和详细信息
|
||||
autoMappingUnknownColumnBehavior: NONE
|
||||
autoMappingUnknownColumnBehavior: FAILING
|
||||
# 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
# 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl
|
||||
# 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
|
||||
logImpl: org.apache.ibatis.logging.slf4j.Slf4jImpl
|
||||
logImpl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
# 是否打印 Logo banner
|
||||
banner: false
|
||||
|
|
|
@ -4,6 +4,8 @@ import java.io.Serializable;
|
|||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
|
@ -18,6 +20,7 @@ public class BaseEntity implements Serializable
|
|||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 搜索值 */
|
||||
@TableField(exist = false)
|
||||
@JsonIgnore
|
||||
private String searchValue;
|
||||
|
||||
|
@ -39,6 +42,7 @@ public class BaseEntity implements Serializable
|
|||
private String remark;
|
||||
|
||||
/** 请求参数 */
|
||||
@TableField(exist = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Map<String, Object> params;
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ import java.math.BigDecimal;
|
|||
public class MallProduct extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
|
|
|
@ -55,7 +55,7 @@ public class MallProductServiceImpl extends ServiceImpl<MallProductMapper,MallPr
|
|||
|
||||
@Override
|
||||
public void deleteMallProductByIds(Long[] ids) {
|
||||
postMapper.deleteById(ids);
|
||||
postMapper.deleteBatchIds(ids);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue