更改商品更改bug,以及桌码区域bug

This commit is contained in:
liuyingfang
2024-02-27 17:02:18 +08:00
parent 1b81592de0
commit 26d8fb9c05
9 changed files with 27 additions and 13 deletions

View File

@@ -99,7 +99,20 @@
<version>3.3.2</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>dev</id>
<properties>
<env>dev</env>
</properties>
</profile>
<profile>
<id>pro</id>
<properties>
<env>pro</env>
</properties>
</profile>
</profiles>
<!-- 打包 -->
<build>
<plugins>

View File

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
import lombok.Data;
import me.zhengjie.modules.productInfo.productSku.domain.TbProductSku;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
@@ -43,7 +44,7 @@ public class TbProductVo {
private String coverImg;
@NotNull(message ="缺少商品类信息")
private Integer categoryId;

View File

@@ -284,6 +284,7 @@ public class TbProductServiceImpl implements TbProductService {
product.setIsFreeFreight(1);
product.setStatus(1);
product.setUpdatedAt(Instant.now().toEpochMilli());
product.setCategoryId(resources.getCategoryId().toString());
if (!resources.getGroupSnap().isEmpty()){
ListUtil.JSONArrayChangeString(resources.getGroupSnap());

View File

@@ -26,4 +26,6 @@ import me.zhengjie.annotation.Query;
**/
@Data
public class TbShopAreaQueryCriteria{
@Query
private String shopId;
}

View File

@@ -55,7 +55,7 @@ public class TbMerchantThirdApplyController {
@GetMapping
@Log("查询/shop/thirdApply")
@ApiOperation("查询/shop/thirdApply")
@PreAuthorize("@el.check('tbMerchantThirdApply:list')")
public ResponseEntity<Object> queryTbMerchantThirdApply(TbMerchantThirdApplyQueryCriteria criteria, Pageable pageable){
return new ResponseEntity<>(tbMerchantThirdApplyService.queryAll(criteria,pageable),HttpStatus.OK);
}

View File

@@ -30,7 +30,7 @@ public class TbMerchantThirdApplyDto implements Serializable {
/** 自增id */
private Integer id;
private String type;
private String type ="";
/** 商户应用 */
private String appId="";

View File

@@ -30,6 +30,8 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import me.zhengjie.utils.PageUtil;
import me.zhengjie.utils.QueryHelp;
import java.time.Instant;
import java.util.List;
import java.util.Map;
import java.io.IOException;
@@ -90,12 +92,9 @@ public class TbMerchantThirdApplyServiceImpl implements TbMerchantThirdApplyServ
public void update(TbMerchantThirdApply resources) {
TbMerchantThirdApply tbMerchantThirdApply = tbMerchantThirdApplyRepository.findById(resources.getId()).orElseGet(TbMerchantThirdApply::new);
ValidationUtil.isNull( tbMerchantThirdApply.getId(),"TbMerchantThirdApply","id",resources.getId());
// tbMerchantThirdApply1 = tbMerchantThirdApplyRepository.findByAppId(resources.getAppId());
// if(tbMerchantThirdApply1 != null && !tbMerchantThirdApply1.getId().equals(tbMerchantThirdApply.getId())){
// throw new EntityExistException(TbMerchantThirdApply.class,"app_id",resources.getAppId());
// }
tbMerchantThirdApply.setUpdatedAt(Instant.now().toEpochMilli());
tbMerchantThirdApply.copy(resources);
tbMerchantThirdApplyRepository.save(tbMerchantThirdApply);
tbMerchantThirdApplyRepository.saveAndFlush(tbMerchantThirdApply);
}
@Override

View File

@@ -61,7 +61,6 @@ public class TbShopTableController {
@PostMapping
@Log("新增/shop/table")
@ApiOperation("新增/shop/table")
@PreAuthorize("@el.check('tbShopTable:add')")
public ResponseEntity<Object> createTbShopTable(@Validated @RequestBody TbShopTable resources){
return new ResponseEntity<>(tbShopTableService.create(resources),HttpStatus.CREATED);
}
@@ -75,7 +74,6 @@ public class TbShopTableController {
@PutMapping
@Log("修改/shop/table")
@ApiOperation("修改/shop/table")
@PreAuthorize("@el.check('tbShopTable:edit')")
public ResponseEntity<Object> updateTbShopTable(@Validated @RequestBody TbShopTable resources){
tbShopTableService.update(resources);
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
@@ -84,7 +82,6 @@ public class TbShopTableController {
@DeleteMapping
@Log("删除/shop/table")
@ApiOperation("删除/shop/table")
@PreAuthorize("@el.check('tbShopTable:del')")
public ResponseEntity<Object> deleteTbShopTable(@RequestBody Integer[] ids) {
tbShopTableService.deleteAll(ids);
return new ResponseEntity<>(HttpStatus.OK);

View File

@@ -5,7 +5,8 @@ spring:
freemarker:
check-template-location: false
profiles:
active: dev
active: @env@
jackson:
time-zone: GMT+8
default-property-inclusion: always