Browse Source

供应商类型调整

master
God 1 year ago
parent
commit
a81e78da93
  1. 10
      yxt-pms-biz/src/main/java/com/yxt/pms/apiadmin/pms/PmsSupplierTypeRest.java
  2. 54
      yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeDown.java
  3. 3
      yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeMapper.java
  4. 8
      yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeService.java

10
yxt-pms-biz/src/main/java/com/yxt/pms/apiadmin/pms/PmsSupplierTypeRest.java

@ -34,6 +34,8 @@ import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List;
/** /**
* Project: yxt-base(仓储基础信息供应商) <br/> * Project: yxt-base(仓储基础信息供应商) <br/>
* File: BaseSupplierTypeFeignFallback.java <br/> * File: BaseSupplierTypeFeignFallback.java <br/>
@ -78,4 +80,12 @@ public class PmsSupplierTypeRest {
baseSupplierTypeService.del(sids); baseSupplierTypeService.del(sids);
return rb.success(); return rb.success();
} }
@ApiOperation("获取供应商类型")
@PostMapping("/selSupplierType")
public ResultBean<List<PmsSupplierTypeDown>> selSupplierType(@RequestParam("orgPath") String orgPath){
ResultBean rb = ResultBean.fireFail();
List<PmsSupplierTypeDown> pmsSupplierTypeDowns = baseSupplierTypeService.selSupplierType(orgPath);
return rb.success().setData(pmsSupplierTypeDowns);
}
} }

54
yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeDown.java

@ -0,0 +1,54 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.pms.biz.pms.pmssuppliertype;
import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* Project: yxt-base(仓储基础信息供应商) <br/>
* File: BaseSupplierTypeVo.java <br/>
* Class: com.yxt.anrui.as.api.pmssuppliertype.BaseSupplierTypeVo <br/>
* Description: 供应商类型 视图数据对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2024-03-13 16:51:56 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
public class PmsSupplierTypeDown implements Vo {
@ApiModelProperty("供应商类型名称")
private String supplierTypeName;
@ApiModelProperty("供应商类型编码")
private String supplierTypeCode;
}

3
yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeMapper.java

@ -53,4 +53,7 @@ public interface PmsSupplierTypeMapper extends BaseMapper<PmsSupplierType> {
@Delete("delete from yxt_base.base_supplier_type where sid = #{sid}") @Delete("delete from yxt_base.base_supplier_type where sid = #{sid}")
void del(String sid); void del(String sid);
@Select("select * from yxt_base.base_supplier_type where createOrgSid = #{createOrgSid}")
List<PmsSupplierTypeDown> selSupplierType(String createOrgSid);
} }

8
yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeService.java

@ -41,6 +41,8 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Project: yxt-base(仓储基础信息供应商) <br/> * Project: yxt-base(仓储基础信息供应商) <br/>
* File: BaseSupplierTypeService.java <br/> * File: BaseSupplierTypeService.java <br/>
@ -99,4 +101,10 @@ public class PmsSupplierTypeService extends MybatisBaseService<PmsSupplierTypeMa
baseMapper.del(sid); baseMapper.del(sid);
} }
} }
public List<PmsSupplierTypeDown> selSupplierType(String orgPath) {
String createOrgSid = sysStaffOrgFeign.getOrgSidByPath(orgPath).getData();
List<PmsSupplierTypeDown> pmsSupplierTypeDowns = baseMapper.selSupplierType(createOrgSid);
return pmsSupplierTypeDowns;
}
} }
Loading…
Cancel
Save