更改商品更改bug,以及桌码区域bug
This commit is contained in:
@@ -99,7 +99,20 @@
|
|||||||
<version>3.3.2</version>
|
<version>3.3.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>dev</id>
|
||||||
|
<properties>
|
||||||
|
<env>dev</env>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>pro</id>
|
||||||
|
<properties>
|
||||||
|
<env>pro</env>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
<!-- 打包 -->
|
<!-- 打包 -->
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import me.zhengjie.modules.productInfo.productSku.domain.TbProductSku;
|
import me.zhengjie.modules.productInfo.productSku.domain.TbProductSku;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -43,7 +44,7 @@ public class TbProductVo {
|
|||||||
|
|
||||||
private String coverImg;
|
private String coverImg;
|
||||||
|
|
||||||
|
@NotNull(message ="缺少商品类信息")
|
||||||
private Integer categoryId;
|
private Integer categoryId;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -284,6 +284,7 @@ public class TbProductServiceImpl implements TbProductService {
|
|||||||
product.setIsFreeFreight(1);
|
product.setIsFreeFreight(1);
|
||||||
product.setStatus(1);
|
product.setStatus(1);
|
||||||
product.setUpdatedAt(Instant.now().toEpochMilli());
|
product.setUpdatedAt(Instant.now().toEpochMilli());
|
||||||
|
product.setCategoryId(resources.getCategoryId().toString());
|
||||||
|
|
||||||
if (!resources.getGroupSnap().isEmpty()){
|
if (!resources.getGroupSnap().isEmpty()){
|
||||||
ListUtil.JSONArrayChangeString(resources.getGroupSnap());
|
ListUtil.JSONArrayChangeString(resources.getGroupSnap());
|
||||||
|
|||||||
@@ -26,4 +26,6 @@ import me.zhengjie.annotation.Query;
|
|||||||
**/
|
**/
|
||||||
@Data
|
@Data
|
||||||
public class TbShopAreaQueryCriteria{
|
public class TbShopAreaQueryCriteria{
|
||||||
|
@Query
|
||||||
|
private String shopId;
|
||||||
}
|
}
|
||||||
@@ -55,7 +55,7 @@ public class TbMerchantThirdApplyController {
|
|||||||
@GetMapping
|
@GetMapping
|
||||||
@Log("查询/shop/thirdApply")
|
@Log("查询/shop/thirdApply")
|
||||||
@ApiOperation("查询/shop/thirdApply")
|
@ApiOperation("查询/shop/thirdApply")
|
||||||
@PreAuthorize("@el.check('tbMerchantThirdApply:list')")
|
|
||||||
public ResponseEntity<Object> queryTbMerchantThirdApply(TbMerchantThirdApplyQueryCriteria criteria, Pageable pageable){
|
public ResponseEntity<Object> queryTbMerchantThirdApply(TbMerchantThirdApplyQueryCriteria criteria, Pageable pageable){
|
||||||
return new ResponseEntity<>(tbMerchantThirdApplyService.queryAll(criteria,pageable),HttpStatus.OK);
|
return new ResponseEntity<>(tbMerchantThirdApplyService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public class TbMerchantThirdApplyDto implements Serializable {
|
|||||||
/** 自增id */
|
/** 自增id */
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
private String type;
|
private String type ="";
|
||||||
|
|
||||||
/** 商户应用 */
|
/** 商户应用 */
|
||||||
private String appId="";
|
private String appId="";
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ import org.springframework.data.domain.Page;
|
|||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
import me.zhengjie.utils.PageUtil;
|
import me.zhengjie.utils.PageUtil;
|
||||||
import me.zhengjie.utils.QueryHelp;
|
import me.zhengjie.utils.QueryHelp;
|
||||||
|
|
||||||
|
import java.time.Instant;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -90,12 +92,9 @@ public class TbMerchantThirdApplyServiceImpl implements TbMerchantThirdApplyServ
|
|||||||
public void update(TbMerchantThirdApply resources) {
|
public void update(TbMerchantThirdApply resources) {
|
||||||
TbMerchantThirdApply tbMerchantThirdApply = tbMerchantThirdApplyRepository.findById(resources.getId()).orElseGet(TbMerchantThirdApply::new);
|
TbMerchantThirdApply tbMerchantThirdApply = tbMerchantThirdApplyRepository.findById(resources.getId()).orElseGet(TbMerchantThirdApply::new);
|
||||||
ValidationUtil.isNull( tbMerchantThirdApply.getId(),"TbMerchantThirdApply","id",resources.getId());
|
ValidationUtil.isNull( tbMerchantThirdApply.getId(),"TbMerchantThirdApply","id",resources.getId());
|
||||||
// tbMerchantThirdApply1 = tbMerchantThirdApplyRepository.findByAppId(resources.getAppId());
|
tbMerchantThirdApply.setUpdatedAt(Instant.now().toEpochMilli());
|
||||||
// if(tbMerchantThirdApply1 != null && !tbMerchantThirdApply1.getId().equals(tbMerchantThirdApply.getId())){
|
|
||||||
// throw new EntityExistException(TbMerchantThirdApply.class,"app_id",resources.getAppId());
|
|
||||||
// }
|
|
||||||
tbMerchantThirdApply.copy(resources);
|
tbMerchantThirdApply.copy(resources);
|
||||||
tbMerchantThirdApplyRepository.save(tbMerchantThirdApply);
|
tbMerchantThirdApplyRepository.saveAndFlush(tbMerchantThirdApply);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ public class TbShopTableController {
|
|||||||
@PostMapping
|
@PostMapping
|
||||||
@Log("新增/shop/table")
|
@Log("新增/shop/table")
|
||||||
@ApiOperation("新增/shop/table")
|
@ApiOperation("新增/shop/table")
|
||||||
@PreAuthorize("@el.check('tbShopTable:add')")
|
|
||||||
public ResponseEntity<Object> createTbShopTable(@Validated @RequestBody TbShopTable resources){
|
public ResponseEntity<Object> createTbShopTable(@Validated @RequestBody TbShopTable resources){
|
||||||
return new ResponseEntity<>(tbShopTableService.create(resources),HttpStatus.CREATED);
|
return new ResponseEntity<>(tbShopTableService.create(resources),HttpStatus.CREATED);
|
||||||
}
|
}
|
||||||
@@ -75,7 +74,6 @@ public class TbShopTableController {
|
|||||||
@PutMapping
|
@PutMapping
|
||||||
@Log("修改/shop/table")
|
@Log("修改/shop/table")
|
||||||
@ApiOperation("修改/shop/table")
|
@ApiOperation("修改/shop/table")
|
||||||
@PreAuthorize("@el.check('tbShopTable:edit')")
|
|
||||||
public ResponseEntity<Object> updateTbShopTable(@Validated @RequestBody TbShopTable resources){
|
public ResponseEntity<Object> updateTbShopTable(@Validated @RequestBody TbShopTable resources){
|
||||||
tbShopTableService.update(resources);
|
tbShopTableService.update(resources);
|
||||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||||
@@ -84,7 +82,6 @@ public class TbShopTableController {
|
|||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
@Log("删除/shop/table")
|
@Log("删除/shop/table")
|
||||||
@ApiOperation("删除/shop/table")
|
@ApiOperation("删除/shop/table")
|
||||||
@PreAuthorize("@el.check('tbShopTable:del')")
|
|
||||||
public ResponseEntity<Object> deleteTbShopTable(@RequestBody Integer[] ids) {
|
public ResponseEntity<Object> deleteTbShopTable(@RequestBody Integer[] ids) {
|
||||||
tbShopTableService.deleteAll(ids);
|
tbShopTableService.deleteAll(ids);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ spring:
|
|||||||
freemarker:
|
freemarker:
|
||||||
check-template-location: false
|
check-template-location: false
|
||||||
profiles:
|
profiles:
|
||||||
active: dev
|
active: @env@
|
||||||
|
|
||||||
jackson:
|
jackson:
|
||||||
time-zone: GMT+8
|
time-zone: GMT+8
|
||||||
default-property-inclusion: always
|
default-property-inclusion: always
|
||||||
|
|||||||
Reference in New Issue
Block a user