Commit 0a68406ac3c56addd0043a9b892eefe50e063d84

Authored by 房远帅
2 parents ee87f3de 7a9b64fe

Merge branch 'master_0929' into master_after20

1 -alter table base_data_customer modify column mnemonic_code varchar(20) null; 1 +alter table base_data_customer modify column mnemonic_code varchar(100) null;
  2 +
  3 +ALTER TABLE base_data_customer
  4 + MODIFY COLUMN `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '编号',
  5 + MODIFY COLUMN `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '名称',
2 6
3 -- 厂房信息 7 -- 厂房信息
4 create table if not exists base_data_workshop ( 8 create table if not exists base_data_workshop (
@@ -162,11 +162,14 @@ public class ContractDistributorStandardServiceImpl extends @@ -162,11 +162,14 @@ public class ContractDistributorStandardServiceImpl extends
162 return getBaseMapper().query(vo); 162 return getBaseMapper().query(vo);
163 } 163 }
164 164
165 - @Cacheable(value = ContractDistributorStandard.CACHE_NAME, key = "@cacheVariables.tenantId() + #id", unless = "#result == null")  
166 @Override 165 @Override
167 public ContractDistributorStandard findById(String id) { 166 public ContractDistributorStandard findById(String id) {
168 167
169 ContractDistributorStandard data = getBaseMapper().selectById(id); 168 ContractDistributorStandard data = getBaseMapper().selectById(id);
  169 + if (data == null) {
  170 + return null;
  171 + }
  172 +
170 // 获取当前人员的待办任务数据 173 // 获取当前人员的待办任务数据
171 List<FlowTaskDto> flowTaskList = flowTaskWrapperMapper.queryTodoList(new QueryTodoTaskListVo(), SecurityUtil.getCurrentUser().getId()); 174 List<FlowTaskDto> flowTaskList = flowTaskWrapperMapper.queryTodoList(new QueryTodoTaskListVo(), SecurityUtil.getCurrentUser().getId());
172 if (CollectionUtils.isEmpty(flowTaskList)) { 175 if (CollectionUtils.isEmpty(flowTaskList)) {