06-26
This commit is contained in:
@@ -49,7 +49,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
*/
|
*/
|
||||||
@Api(tags = "供应商开户行信息")
|
@Api(tags = "供应商开户行信息")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/apiadmin/base/basesupplierbank")
|
@RequestMapping("/apiadmin/supplierbank")
|
||||||
public class SupplierBankRest {
|
public class SupplierBankRest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
*/
|
*/
|
||||||
@Api(tags = "供应商附件")
|
@Api(tags = "供应商附件")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/apiadmin/base/basesupplierfile")
|
@RequestMapping("/apiadmin/supplierfile")
|
||||||
public class SupplierFileRest {
|
public class SupplierFileRest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Api(tags = "供应商信息")
|
@Api(tags = "供应商信息")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/apiadmin/base/basesupplierinfo")
|
@RequestMapping("/apiadmin/supplierinfo")
|
||||||
public class SupplierInfoRest {
|
public class SupplierInfoRest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
*/
|
*/
|
||||||
@Api(tags = "供应商类型")
|
@Api(tags = "供应商类型")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/apiadmin/base/basesuppliertype")
|
@RequestMapping("/apiadmin/suppliertype")
|
||||||
public class SupplierTypeRest {
|
public class SupplierTypeRest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -86,4 +86,14 @@ public class SupplierTypeRest {
|
|||||||
SupplierTypeDetailsVo vo = supplierTypeService.fetchDetailsVoBySid(sid);
|
SupplierTypeDetailsVo vo = supplierTypeService.fetchDetailsVoBySid(sid);
|
||||||
return rb.success().setData(vo);
|
return rb.success().setData(vo);
|
||||||
}
|
}
|
||||||
|
@ApiOperation("根据SID获取一条记录")
|
||||||
|
@GetMapping("/checkSaveCode/{sid}/")
|
||||||
|
public ResultBean<Integer> checkSaveCode(@PathVariable("supplierTypeCode") String supplierTypeCode,@PathVariable("useOrgSid") String useOrgSid){
|
||||||
|
return supplierTypeService.checkSaveCode(supplierTypeCode,useOrgSid);
|
||||||
|
}
|
||||||
|
@ApiOperation("根据SID获取一条记录")
|
||||||
|
@GetMapping("/checkUpdateCode/{sid}/{}")
|
||||||
|
public ResultBean<Integer> checkUpdateCode(@PathVariable("supplierTypeCode") String supplierTypeCode,@PathVariable("useOrgSid") String useOrgSid,@PathVariable("orgSid")String dtoSid){
|
||||||
|
return supplierTypeService.checkUpdateCode(supplierTypeCode,useOrgSid,dtoSid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,4 +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}")
|
||||||
|
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}")
|
||||||
|
int checkUpdateCode(@Param("supplierTypeCode") String supplierTypeCode,@Param("useOrgSid") String useOrgSid,@Param("dtoSid") String dtoSid);
|
||||||
}
|
}
|
||||||
@@ -31,9 +31,11 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|||||||
import com.yxt.common.base.service.MybatisBaseService;
|
import com.yxt.common.base.service.MybatisBaseService;
|
||||||
import com.yxt.common.base.utils.PagerUtil;
|
import com.yxt.common.base.utils.PagerUtil;
|
||||||
import com.yxt.common.core.query.PagerQuery;
|
import com.yxt.common.core.query.PagerQuery;
|
||||||
|
import com.yxt.common.core.result.ResultBean;
|
||||||
import com.yxt.common.core.vo.PagerVo;
|
import com.yxt.common.core.vo.PagerVo;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Project: yxt-base(仓储基础信息供应商) <br/>
|
* Project: yxt-base(仓储基础信息供应商) <br/>
|
||||||
@@ -91,4 +93,11 @@ public class SupplierTypeService extends MybatisBaseService<SupplierTypeMapper,
|
|||||||
BeanUtil.copyProperties(entity, vo);
|
BeanUtil.copyProperties(entity, vo);
|
||||||
return vo;
|
return vo;
|
||||||
}
|
}
|
||||||
|
public ResultBean<Integer> checkSaveCode(String supplierTypeCode, String orgSid){
|
||||||
|
return new ResultBean<Integer>().success().setData(baseMapper.checkSaveCode(supplierTypeCode,orgSid));
|
||||||
|
}
|
||||||
|
public ResultBean<Integer> checkUpdateCode(String supplierTypeCode, String orgSid,String dtoSid){
|
||||||
|
return new ResultBean<Integer>().success().setData(baseMapper.checkUpdateCode(supplierTypeCode,orgSid,dtoSid));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -11,12 +11,12 @@ spring:
|
|||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
discovery:
|
discovery:
|
||||||
namespace: common
|
# namespace: common
|
||||||
server-addr: 39.104.100.138:8848
|
server-addr: 127.0.0.1:8848
|
||||||
register-enabled: false
|
register-enabled: false
|
||||||
redis:
|
redis:
|
||||||
database: 3 # Redis数据库索引(默认为0)
|
database: 3 # Redis数据库索引(默认为0)
|
||||||
host: 39.104.100.138
|
host: 127.0.0.1
|
||||||
jedis:
|
jedis:
|
||||||
pool:
|
pool:
|
||||||
max-active: -1 #连接池最大连接数(使用负值表示没有限制)
|
max-active: -1 #连接池最大连接数(使用负值表示没有限制)
|
||||||
|
|||||||
Reference in New Issue
Block a user