Commit 493dc432 authored by 高宇's avatar 高宇

1 客户管理和条码管理

parent 78c33a9b
...@@ -56,7 +56,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> { ...@@ -56,7 +56,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
@ApiOperation(value="逻辑删除BCustomer", notes="逻辑删除BCustomer") @ApiOperation(value="逻辑删除BCustomer", notes="逻辑删除BCustomer")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = true, dataType = "varchar")}) @ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = true, dataType = "varchar")})
@DeleteMapping("/deleteLogical/{businessId:\\w+}") @DeleteMapping("/deleteLogical/{businessId:\\w+}")
public CyResult deleteLogical(@PathVariable String businessId,BCustomer bCustomer) { public CyResult deleteLogical(@PathVariable Integer businessId,BCustomer bCustomer) {
bCustomer.setBusinessId(businessId); bCustomer.setBusinessId(businessId);
CyPersistModel data = bCustomerServiceImpl.removeLogical(bCustomer); CyPersistModel data = bCustomerServiceImpl.removeLogical(bCustomer);
return CyResultGenUtil.builder(data, return CyResultGenUtil.builder(data,
...@@ -69,7 +69,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> { ...@@ -69,7 +69,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
@ApiOperation(value="删除BCustomer", notes="删除BCustomer") @ApiOperation(value="删除BCustomer", notes="删除BCustomer")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = true, dataType = "varchar")}) @ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = true, dataType = "varchar")})
@DeleteMapping("/delete/{businessId:\\w+}") @DeleteMapping("/delete/{businessId:\\w+}")
public CyResult delete(@PathVariable String businessId,BCustomer bCustomer) { public CyResult delete(@PathVariable Integer businessId,BCustomer bCustomer) {
bCustomer.setBusinessId(businessId); bCustomer.setBusinessId(businessId);
CyPersistModel data = bCustomerServiceImpl.remove(bCustomer); CyPersistModel data = bCustomerServiceImpl.remove(bCustomer);
return CyResultGenUtil.builder(data, return CyResultGenUtil.builder(data,
...@@ -83,7 +83,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> { ...@@ -83,7 +83,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
@ApiOperation(value="修改BCustomer", notes="修改BCustomer") @ApiOperation(value="修改BCustomer", notes="修改BCustomer")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = false, dataType = "varchar")}) @ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = false, dataType = "varchar")})
@PutMapping("/update/{businessId:\\w+}") @PutMapping("/update/{businessId:\\w+}")
public CyResult update(@PathVariable String businessId, @Valid BCustomer bCustomer, BindingResult bindingResult) { public CyResult update(@PathVariable Integer businessId, @Valid BCustomer bCustomer, BindingResult bindingResult) {
bCustomer.setBusinessId(businessId); bCustomer.setBusinessId(businessId);
CyPersistModel data = bCustomerServiceImpl.merge(bCustomer); CyPersistModel data = bCustomerServiceImpl.merge(bCustomer);
return CyResultGenUtil.builder(data, return CyResultGenUtil.builder(data,
......
...@@ -12,13 +12,14 @@ import java.io.Serializable; ...@@ -12,13 +12,14 @@ import java.io.Serializable;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import org.rcisoft.core.entity.CyIdIncreEntity;
/** /**
* Created with cy on 2024年5月11日 下午3:19:37. * Created with cy on 2024年5月11日 下午3:19:37.
*/ */
@Data @Data
@TableName("b_customer") @TableName("b_customer")
public class BCustomer extends CyIdEntity<BCustomer> { public class BCustomer extends CyIdIncreEntity<BCustomer> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment