|
@@ -80,43 +80,6 @@ public class SupplierInfoServiceImpl extends ServiceImpl<SupplierInfoMapper, Sup
|
|
|
return page;
|
|
|
}
|
|
|
|
|
|
-// /**
|
|
|
-// * 供应商分页维多利亚用
|
|
|
-// */
|
|
|
-// @Override
|
|
|
-// public Page<SupplierInfoVo> getPageByWdly(SupplierInfoSelectDto dto) {
|
|
|
-// IWrapper<SupplierInfo> wrapper = getWrapper();
|
|
|
-// wrapper.orderByDesc("si", SupplierInfo::getId);
|
|
|
-// wrapper.eq("si", SupplierInfo::getType, dto.getType());
|
|
|
-// wrapper.keyword(dto,
|
|
|
-// new SqlField("si", SupplierInfo::getName),
|
|
|
-// new SqlField("si", SupplierInfo::getCode)
|
|
|
-// );
|
|
|
-// //根据账期过滤
|
|
|
-// Integer accountPeriodType = dto.getAccountPeriodType();
|
|
|
-// if (ObjectUtil.isNotEmpty(accountPeriodType)) {
|
|
|
-// if (1 == accountPeriodType) {
|
|
|
-// wrapper.isNotNull("json_unquote( si.victoriatourist_json -> '$.accountPeriod' )");
|
|
|
-// wrapper.apply("json_unquote( si.victoriatourist_json -> '$.accountPeriod' ) !=''");
|
|
|
-// wrapper.apply("json_unquote( si.victoriatourist_json -> '$.accountPeriod' ) !='0'");
|
|
|
-// } else {
|
|
|
-// wrapper.isNull("json_unquote( si.victoriatourist_json -> '$.accountPeriod' )");
|
|
|
-// wrapper.or();
|
|
|
-// wrapper.apply("json_unquote( si.victoriatourist_json -> '$.accountPeriod' ) =''");
|
|
|
-// wrapper.or();
|
|
|
-// wrapper.apply("json_unquote( si.victoriatourist_json -> '$.accountPeriod' ) ='0'");
|
|
|
-// }
|
|
|
-// }
|
|
|
-// Page<SupplierInfoVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
-//
|
|
|
-// List<SupplierInfoVo> records = page.getRecords();
|
|
|
-// if (records.size() == 0) {
|
|
|
-// return page;
|
|
|
-// }
|
|
|
-// CustomizeAreaUtil.setAreaName(records);
|
|
|
-// return page;
|
|
|
-// }
|
|
|
-
|
|
|
@Override
|
|
|
public SupplierInfoVo detail(Long id) {
|
|
|
SupplierInfo SupplierInfo = this.getById(id);
|
|
@@ -125,18 +88,6 @@ public class SupplierInfoServiceImpl extends ServiceImpl<SupplierInfoMapper, Sup
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
-// @Override
|
|
|
-// public SupplierInfoVo detailByWdly(Long id) {
|
|
|
-// SupplierInfoVo result = detail(id);
|
|
|
-//
|
|
|
-// //辅助前端 将账期和退换货期限 两个字段转为字符串
|
|
|
-// JSONObject json = ObjectUtil.isNotEmpty(result.getVictoriatouristJson()) ? JSONObject.parseObject(result.getVictoriatouristJson()) : new JSONObject();
|
|
|
-// json.put("accountPeriod",json.getString("accountPeriod"));
|
|
|
-// json.put("returnPeriod",json.getString("returnPeriod"));
|
|
|
-// result.setVictoriatouristJson(JSONObject.toJSONString(json,JSONWriter.Feature.WriteLongAsString));
|
|
|
-// return result;
|
|
|
-// }
|
|
|
-
|
|
|
@DSTransactional
|
|
|
@Override
|
|
|
public void add(SupplierInfoDto supplierInfoDto) {
|