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 8 create table if not exists base_data_workshop (
... ...
... ... @@ -162,11 +162,14 @@ public class ContractDistributorStandardServiceImpl extends
162 162 return getBaseMapper().query(vo);
163 163 }
164 164
165   - @Cacheable(value = ContractDistributorStandard.CACHE_NAME, key = "@cacheVariables.tenantId() + #id", unless = "#result == null")
166 165 @Override
167 166 public ContractDistributorStandard findById(String id) {
168 167
169 168 ContractDistributorStandard data = getBaseMapper().selectById(id);
  169 + if (data == null) {
  170 + return null;
  171 + }
  172 +
170 173 // 获取当前人员的待办任务数据
171 174 List<FlowTaskDto> flowTaskList = flowTaskWrapperMapper.queryTodoList(new QueryTodoTaskListVo(), SecurityUtil.getCurrentUser().getId());
172 175 if (CollectionUtils.isEmpty(flowTaskList)) {
... ...