最新代码
This commit is contained in:
@@ -9,10 +9,10 @@ import com.starry.common.enums.BusinessType;
|
||||
import com.starry.common.result.R;
|
||||
import com.starry.common.utils.ConvertUtil;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.Valid;
|
||||
|
||||
/**
|
||||
* 公告Controller
|
||||
@@ -62,7 +62,7 @@ public class PlayNoticeInfoController {
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:create')")
|
||||
@Log(title = "公告", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/create")
|
||||
public R create(@Valid @RequestBody PlayNoticeInfoAddVo vo) {
|
||||
public R create(@Validated @RequestBody PlayNoticeInfoAddVo vo) {
|
||||
PlayNoticeInfoEntity entity = ConvertUtil.entityToVo(vo, PlayNoticeInfoEntity.class);
|
||||
boolean success = playNoticeInfoService.create(entity);
|
||||
if (success) {
|
||||
|
||||
@@ -5,6 +5,8 @@ import com.starry.common.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 服务项目对象 play_commodity_info
|
||||
*
|
||||
@@ -45,7 +47,7 @@ public class PlayCommodityInfoEntity extends BaseEntity<PlayCommodityInfoEntity>
|
||||
/**
|
||||
* 服务单价
|
||||
*/
|
||||
private String price;
|
||||
private BigDecimal price;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user