供应商类型保存回显
This commit is contained in:
@@ -87,12 +87,12 @@ public class SupplierTypeRest {
|
|||||||
return rb.success().setData(vo);
|
return rb.success().setData(vo);
|
||||||
}
|
}
|
||||||
@ApiOperation("根据SID获取一条记录")
|
@ApiOperation("根据SID获取一条记录")
|
||||||
@GetMapping("/checkSaveCode/{sid}/")
|
@GetMapping("/checkSaveCode/{supplierTypeCode}/{useOrgSid}")
|
||||||
public ResultBean<Integer> checkSaveCode(@PathVariable("supplierTypeCode") String supplierTypeCode,@PathVariable("useOrgSid") String useOrgSid){
|
public ResultBean<Integer> checkSaveCode(@PathVariable("supplierTypeCode") String supplierTypeCode,@PathVariable("useOrgSid") String useOrgSid){
|
||||||
return supplierTypeService.checkSaveCode(supplierTypeCode,useOrgSid);
|
return supplierTypeService.checkSaveCode(supplierTypeCode,useOrgSid);
|
||||||
}
|
}
|
||||||
@ApiOperation("根据SID获取一条记录")
|
@ApiOperation("根据SID获取一条记录")
|
||||||
@GetMapping("/checkUpdateCode/{sid}/{}")
|
@GetMapping("/checkUpdateCode/{supplierTypeCode}/{useOrgSid}/{dtoSid}")
|
||||||
public ResultBean<Integer> checkUpdateCode(@PathVariable("supplierTypeCode") String supplierTypeCode,@PathVariable("useOrgSid") String useOrgSid,@PathVariable("orgSid")String dtoSid){
|
public ResultBean<Integer> checkUpdateCode(@PathVariable("supplierTypeCode") String supplierTypeCode,@PathVariable("useOrgSid") String useOrgSid,@PathVariable("orgSid")String dtoSid){
|
||||||
return supplierTypeService.checkUpdateCode(supplierTypeCode,useOrgSid,dtoSid);
|
return supplierTypeService.checkUpdateCode(supplierTypeCode,useOrgSid,dtoSid);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,8 @@ public class SupplierType extends BaseEntity {
|
|||||||
|
|
||||||
@ApiModelProperty("供应商类型名称")
|
@ApiModelProperty("供应商类型名称")
|
||||||
private String supplierTypeName; // 供应商类型名称
|
private String supplierTypeName; // 供应商类型名称
|
||||||
|
@ApiModelProperty("供应商类型编码")
|
||||||
|
private String supplierTypeCode;
|
||||||
@ApiModelProperty("使用组织sid")
|
@ApiModelProperty("使用组织sid")
|
||||||
private String useOrgSid; // 使用组织sid
|
private String useOrgSid; // 使用组织sid
|
||||||
@ApiModelProperty("创建组织名称")
|
@ApiModelProperty("创建组织名称")
|
||||||
|
|||||||
@@ -51,6 +51,8 @@ public class SupplierTypeDetailsVo implements Vo {
|
|||||||
|
|
||||||
@ApiModelProperty("供应商类型名称")
|
@ApiModelProperty("供应商类型名称")
|
||||||
private String supplierTypeName; // 供应商类型名称
|
private String supplierTypeName; // 供应商类型名称
|
||||||
|
@ApiModelProperty("供应商类型编码")
|
||||||
|
private String supplierTypeCode;
|
||||||
@ApiModelProperty("使用组织sid")
|
@ApiModelProperty("使用组织sid")
|
||||||
private String useOrgSid; // 使用组织sid
|
private String useOrgSid; // 使用组织sid
|
||||||
@ApiModelProperty("创建组织名称")
|
@ApiModelProperty("创建组织名称")
|
||||||
|
|||||||
@@ -52,6 +52,8 @@ public class SupplierTypeDto implements Dto {
|
|||||||
|
|
||||||
@ApiModelProperty("供应商类型名称")
|
@ApiModelProperty("供应商类型名称")
|
||||||
private String supplierTypeName; // 供应商类型名称
|
private String supplierTypeName; // 供应商类型名称
|
||||||
|
@ApiModelProperty("供应商类型编码")
|
||||||
|
private String supplierTypeCode;
|
||||||
@ApiModelProperty("使用组织sid")
|
@ApiModelProperty("使用组织sid")
|
||||||
private String useOrgSid; // 使用组织sid
|
private String useOrgSid; // 使用组织sid
|
||||||
@ApiModelProperty("创建组织名称")
|
@ApiModelProperty("创建组织名称")
|
||||||
|
|||||||
@@ -57,9 +57,9 @@ public interface SupplierTypeMapper extends BaseMapper<SupplierType> {
|
|||||||
|
|
||||||
@Select("select * from supplier_type")
|
@Select("select * from supplier_type")
|
||||||
List<SupplierTypeVo> selectListVo();
|
List<SupplierTypeVo> selectListVo();
|
||||||
@Select("SELECT COUNT(*) FROM base_supplier_type WHERE supplierTypeCode = #{supplierTypeCode} AND useOrgSid = #{useOrgSid}")
|
@Select("SELECT COUNT(*) FROM supplier_type WHERE supplierTypeCode = #{supplierTypeCode} AND useOrgSid = #{useOrgSid}")
|
||||||
int checkSaveCode(@Param("supplierTypeCode") String supplierTypeCode,@Param("useOrgSid") String useOrgSid);
|
int checkSaveCode(@Param("supplierTypeCode") String supplierTypeCode,@Param("useOrgSid") String useOrgSid);
|
||||||
|
|
||||||
@Select("SELECT COUNT(*) FROM base_supplier_type WHERE supplierTypeCode = #{supplierTypeCode} AND useOrgSid = #{useOrgSid} AND sid != #{dtoSid}")
|
@Select("SELECT COUNT(*) FROM supplier_type WHERE supplierTypeCode = #{supplierTypeCode} AND useOrgSid = #{useOrgSid} AND sid != #{dtoSid}")
|
||||||
int checkUpdateCode(@Param("supplierTypeCode") String supplierTypeCode,@Param("useOrgSid") String useOrgSid,@Param("dtoSid") String dtoSid);
|
int checkUpdateCode(@Param("supplierTypeCode") String supplierTypeCode,@Param("useOrgSid") String useOrgSid,@Param("dtoSid") String dtoSid);
|
||||||
}
|
}
|
||||||
@@ -50,6 +50,8 @@ public class SupplierTypeQuery implements Query {
|
|||||||
|
|
||||||
@ApiModelProperty("供应商类型名称")
|
@ApiModelProperty("供应商类型名称")
|
||||||
private String supplierTypeName; // 供应商类型名称
|
private String supplierTypeName; // 供应商类型名称
|
||||||
|
@ApiModelProperty("供应商类型编码")
|
||||||
|
private String supplierTypeCode;
|
||||||
@ApiModelProperty("使用组织sid")
|
@ApiModelProperty("使用组织sid")
|
||||||
private String useOrgSid; // 使用组织sid
|
private String useOrgSid; // 使用组织sid
|
||||||
@ApiModelProperty("创建组织名称")
|
@ApiModelProperty("创建组织名称")
|
||||||
|
|||||||
@@ -52,6 +52,8 @@ public class SupplierTypeVo implements Vo {
|
|||||||
|
|
||||||
@ApiModelProperty("供应商类型名称")
|
@ApiModelProperty("供应商类型名称")
|
||||||
private String supplierTypeName; // 供应商类型名称
|
private String supplierTypeName; // 供应商类型名称
|
||||||
|
@ApiModelProperty("供应商类型编码")
|
||||||
|
private String supplierTypeCode;
|
||||||
@ApiModelProperty("使用组织sid")
|
@ApiModelProperty("使用组织sid")
|
||||||
private String useOrgSid; // 使用组织sid
|
private String useOrgSid; // 使用组织sid
|
||||||
@ApiModelProperty("创建组织名称")
|
@ApiModelProperty("创建组织名称")
|
||||||
|
|||||||
Reference in New Issue
Block a user