提交 84bfe1fe authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 09585f64
package com.zrqx.core.form.resource.bg.audiolibrary; package com.zrqx.core.form.resource.bg.audiolibrary;
import java.util.List;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.List;
import lombok.Data; import lombok.Data;
@Data @Data
@ApiModel(value="BatchUpdateAudioLibraryForm",description="批量修改音频") @ApiModel(value="BatchUpdateAudioLibraryForm",description="批量修改音频")
...@@ -17,7 +19,7 @@ public class BatchUpdateAudioLibraryForm { ...@@ -17,7 +19,7 @@ public class BatchUpdateAudioLibraryForm {
@ApiModelProperty(value = "自定义分类code") @ApiModelProperty(value = "自定义分类code")
private List<String> diyTypeCode; private List<String> diyTypeCode;
@ApiModelProperty("售价 ") @ApiModelProperty("售价 ")
private String sellingPrice; private BigDecimal sellingPrice;
@ApiModelProperty("价格状态 1:付费 2:免费") @ApiModelProperty("价格状态 1:付费 2:免费")
private Integer priceType; private Integer priceType;
} }
...@@ -38,7 +38,7 @@ public class SaveUpdateClauseLibraryForm { ...@@ -38,7 +38,7 @@ public class SaveUpdateClauseLibraryForm {
@ApiModelProperty("所属部门") @ApiModelProperty("所属部门")
private String department; private String department;
@ApiModelProperty("所属部门") @ApiModelProperty("所属部门")
private String departmentId; private Integer departmentId;
@ApiModelProperty("关键词") @ApiModelProperty("关键词")
private String keyword; private String keyword;
@ApiModelProperty("PDF") @ApiModelProperty("PDF")
......
package com.zrqx.core.form.resource.bg.coursewarelibrary; package com.zrqx.core.form.resource.bg.coursewarelibrary;
import java.util.List;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.List;
import lombok.Data; import lombok.Data;
@Data @Data
@ApiModel(value="BatchUpdateCoursewareLibraryForm",description="批量修改课件") @ApiModel(value="BatchUpdateCoursewareLibraryForm",description="批量修改课件")
...@@ -17,7 +19,7 @@ public class BatchUpdateCoursewareLibraryForm { ...@@ -17,7 +19,7 @@ public class BatchUpdateCoursewareLibraryForm {
@ApiModelProperty("自定义分类code") @ApiModelProperty("自定义分类code")
private List<String> diyTypeCode; private List<String> diyTypeCode;
@ApiModelProperty("售价 ") @ApiModelProperty("售价 ")
private String sellingPrice; private BigDecimal sellingPrice;
@ApiModelProperty("价格状态 1:付费 2:免费") @ApiModelProperty("价格状态 1:付费 2:免费")
private Integer priceType; private Integer priceType;
} }
package com.zrqx.core.form.resource.bg.imagelibrary; package com.zrqx.core.form.resource.bg.imagelibrary;
import java.util.List;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.List;
import lombok.Data; import lombok.Data;
@Data @Data
@ApiModel(value="BatchUpdateImageLibraryForm",description="批量修改图片") @ApiModel(value="BatchUpdateImageLibraryForm",description="批量修改图片")
...@@ -17,7 +19,7 @@ public class BatchUpdateImageLibraryForm { ...@@ -17,7 +19,7 @@ public class BatchUpdateImageLibraryForm {
@ApiModelProperty("自定义分类code") @ApiModelProperty("自定义分类code")
private List<String> diyTypeCode; private List<String> diyTypeCode;
@ApiModelProperty("售价 ") @ApiModelProperty("售价 ")
private String sellingPrice; private BigDecimal sellingPrice;
@ApiModelProperty("价格状态 1:付费 2:免费") @ApiModelProperty("价格状态 1:付费 2:免费")
private Integer priceType; private Integer priceType;
......
package com.zrqx.core.form.resource.bg.pdflibrary; package com.zrqx.core.form.resource.bg.pdflibrary;
import java.util.List;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.List;
import lombok.Data; import lombok.Data;
@Data @Data
@ApiModel(value="BatchUpdatePdfLibraryForm",description="批量修改pdf") @ApiModel(value="BatchUpdatePdfLibraryForm",description="批量修改pdf")
...@@ -17,7 +19,7 @@ public class BatchUpdatePdfLibraryForm { ...@@ -17,7 +19,7 @@ public class BatchUpdatePdfLibraryForm {
@ApiModelProperty(value = "自定义分类code") @ApiModelProperty(value = "自定义分类code")
private List<String> diyTypeCode; private List<String> diyTypeCode;
@ApiModelProperty("售价 ") @ApiModelProperty("售价 ")
private String sellingPrice; private BigDecimal sellingPrice;
@ApiModelProperty("价格状态 1:付费 2:免费") @ApiModelProperty("价格状态 1:付费 2:免费")
private Integer priceType; private Integer priceType;
} }
...@@ -3,6 +3,7 @@ package com.zrqx.core.form.resource.bg.videolibrary; ...@@ -3,6 +3,7 @@ package com.zrqx.core.form.resource.bg.videolibrary;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.List; import java.util.List;
import lombok.Data; import lombok.Data;
...@@ -19,7 +20,7 @@ public class BatchUpdateVideoLibraryForm { ...@@ -19,7 +20,7 @@ public class BatchUpdateVideoLibraryForm {
@ApiModelProperty(value = "自定义分类code") @ApiModelProperty(value = "自定义分类code")
private List<String> diyTypeCode; private List<String> diyTypeCode;
@ApiModelProperty("售价 ") @ApiModelProperty("售价 ")
private String sellingPrice; private BigDecimal sellingPrice;
@ApiModelProperty("价格状态 1:付费 2:免费") @ApiModelProperty("价格状态 1:付费 2:免费")
private Integer priceType; private Integer priceType;
......
...@@ -46,7 +46,7 @@ public class ClauseLibrary { ...@@ -46,7 +46,7 @@ public class ClauseLibrary {
@ApiModelProperty("所属部门") @ApiModelProperty("所属部门")
private String department; private String department;
@ApiModelProperty("所属部门") @ApiModelProperty("所属部门")
private String departmentId; private Integer departmentId;
@ApiModelProperty("关键词") @ApiModelProperty("关键词")
private String keyword; private String keyword;
@ApiModelProperty("PDF") @ApiModelProperty("PDF")
......
...@@ -103,7 +103,7 @@ public class AudioLibraryController { ...@@ -103,7 +103,7 @@ public class AudioLibraryController {
cr.andEqualTo("objectId", str); cr.andEqualTo("objectId", str);
AudioGoods entity = audioGoodsService.selectOneByCriteria(); AudioGoods entity = audioGoodsService.selectOneByCriteria();
if(entity!=null){ if(entity!=null){
entity.setSellingPrice(new BigDecimal(form.getSellingPrice())); entity.setSellingPrice(form.getSellingPrice());
entity.setPriceType(form.getPriceType()); entity.setPriceType(form.getPriceType());
audioGoodsService.updateByCriteria(entity); audioGoodsService.updateByCriteria(entity);
} }
......
...@@ -102,7 +102,7 @@ public class CoursewareLibraryController { ...@@ -102,7 +102,7 @@ public class CoursewareLibraryController {
cr.andEqualTo("objectId", str); cr.andEqualTo("objectId", str);
CoursewareGoods entity = goodsService.selectOneByCriteria(); CoursewareGoods entity = goodsService.selectOneByCriteria();
if(entity!=null){ if(entity!=null){
entity.setSellingPrice(new BigDecimal(form.getSellingPrice())); entity.setSellingPrice(form.getSellingPrice());
entity.setPriceType(form.getPriceType()); entity.setPriceType(form.getPriceType());
goodsService.updateByCriteria(entity); goodsService.updateByCriteria(entity);
} }
......
...@@ -108,7 +108,7 @@ public class ImageLibraryController { ...@@ -108,7 +108,7 @@ public class ImageLibraryController {
cr.andEqualTo("objectId" , str); cr.andEqualTo("objectId" , str);
ImageGoods entity = goodsService.selectOneByCriteria(); ImageGoods entity = goodsService.selectOneByCriteria();
if(entity!=null){ if(entity!=null){
entity.setSellingPrice(new BigDecimal(form.getSellingPrice())); entity.setSellingPrice(form.getSellingPrice());
entity.setPriceType(form.getPriceType()); entity.setPriceType(form.getPriceType());
goodsService.updateByCriteria(entity); goodsService.updateByCriteria(entity);
} }
......
...@@ -102,7 +102,7 @@ public class PdfLibraryController { ...@@ -102,7 +102,7 @@ public class PdfLibraryController {
cr.andEqualTo("objectId",str); cr.andEqualTo("objectId",str);
PdfGoods entity = goodsService.selectOneByCriteria(); PdfGoods entity = goodsService.selectOneByCriteria();
if(entity!=null){ if(entity!=null){
entity.setSellingPrice(new BigDecimal(form.getSellingPrice())); entity.setSellingPrice(form.getSellingPrice());
entity.setPriceType(form.getPriceType()); entity.setPriceType(form.getPriceType());
goodsService.updateByCriteria(entity); goodsService.updateByCriteria(entity);
} }
......
...@@ -119,17 +119,6 @@ public class SeriesController { ...@@ -119,17 +119,6 @@ public class SeriesController {
return CallBack.success(service.selectAll()); return CallBack.success(service.selectAll());
} }
@ApiOperation(value = "名字是否已存在", notes = "名字是否已存在")
@GetMapping(value = ResourceRequestPath.ISEXIST)
public CallBack<Boolean> isExist(String name) {
service.createCriteria().andEqualTo("seriesName", name);
Series series = service.selectOneByCriteria();
if(series!=null){
throw new BaseException(ResponseCodeEnum.REPEST);
}
return CallBack.success();
}
@ApiOperation(value = "批量导入丛书", notes = "批量导入丛书") @ApiOperation(value = "批量导入丛书", notes = "批量导入丛书")
@PostMapping(value = ResourceRequestPath.IMPORT, produces = "application/json;charset=UTF-8") @PostMapping(value = ResourceRequestPath.IMPORT, produces = "application/json;charset=UTF-8")
public CallBack<String> importSeries(@RequestParam("file") MultipartFile file) throws Exception { public CallBack<String> importSeries(@RequestParam("file") MultipartFile file) throws Exception {
......
...@@ -105,7 +105,7 @@ public class VideoLibraryController { ...@@ -105,7 +105,7 @@ public class VideoLibraryController {
cr.andEqualTo("objectId", str); cr.andEqualTo("objectId", str);
VideoGoods entity = goodsService.selectOneByCriteria(); VideoGoods entity = goodsService.selectOneByCriteria();
if(entity!=null){ if(entity!=null){
entity.setSellingPrice(new BigDecimal(form.getSellingPrice())); entity.setSellingPrice(form.getSellingPrice());
entity.setPriceType(form.getPriceType()); entity.setPriceType(form.getPriceType());
goodsService.updateByCriteria(entity); goodsService.updateByCriteria(entity);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论