|
|
@ -51,18 +51,32 @@ public class CustomerFootBarRedis { |
|
|
|
} |
|
|
|
|
|
|
|
public void deleteIcForm(String formCode,String customerId) { |
|
|
|
String key = RedisKeys.getIcFormKey(formCode,customerId); |
|
|
|
String key = RedisKeys.getIcFormKeyForAdd(formCode,customerId); |
|
|
|
redisUtils.delete(key); |
|
|
|
} |
|
|
|
|
|
|
|
public void setCustomerFormResultDTO(String formCode,String customerId, CustomerFormResultDTO value){ |
|
|
|
String key = RedisKeys.getIcFormKey(formCode,customerId); |
|
|
|
public void setCustomerFormResultDTO(String formCode,String customerId, CustomerFormResultDTO value,Boolean dynamic){ |
|
|
|
String key=""; |
|
|
|
if (null != dynamic && dynamic) { |
|
|
|
//新增表单
|
|
|
|
key = RedisKeys.getIcFormKeyForAdd(formCode,customerId); |
|
|
|
}else{ |
|
|
|
//导出
|
|
|
|
key = RedisKeys.getIcFormKeyForExport(formCode,customerId); |
|
|
|
} |
|
|
|
Map<String, Object> map = BeanUtil.beanToMap(value, false, true); |
|
|
|
redisUtils.hMSet(key, map); |
|
|
|
} |
|
|
|
|
|
|
|
public CustomerFormResultDTO getCustomerFormResultDTO(String formCode,String customerId){ |
|
|
|
String key = RedisKeys.getIcFormKey(formCode,customerId); |
|
|
|
public CustomerFormResultDTO getCustomerFormResultDTO(String formCode,String customerId,Boolean dynamic){ |
|
|
|
String key=""; |
|
|
|
if (null != dynamic && dynamic) { |
|
|
|
//新增表单
|
|
|
|
key = RedisKeys.getIcFormKeyForAdd(formCode,customerId); |
|
|
|
}else{ |
|
|
|
//导出
|
|
|
|
key = RedisKeys.getIcFormKeyForExport(formCode,customerId); |
|
|
|
} |
|
|
|
Map<String, Object> resultMap = redisUtils.hGetAll(key); |
|
|
|
if (CollectionUtils.isEmpty(resultMap)) { |
|
|
|
return null; |
|
|
|