|
@@ -907,7 +907,10 @@ public class SalesOrderServiceImpl extends ServiceImpl<SalesOrderMapper, SalesOr
|
|
|
SysForm sysForm = sysFormMapper.selectOne(new LambdaQueryWrapper<SysForm>().eq(SysForm::getCompanyId, user.getCompanyId()).eq(SysForm::getCode, "Order").eq(SysForm::getIsCurrent, 1));
|
|
|
WxCorpInfo wxCorpInfo = wxCorpInfoService.getOne(new LambdaQueryWrapper<WxCorpInfo>().eq(WxCorpInfo::getCompanyId, user.getCompanyId()));
|
|
|
String config = sysForm.getConfig();
|
|
|
- JSONObject configOb = JSON.parseObject(config);
|
|
|
+ System.out.println("==>:"+config);
|
|
|
+ // 定位并替换
|
|
|
+ String fixedConfig = config.replace("\"pattern\":\"/^\\d+$/\"", "\"pattern\":\"/^\\\\d+$/\"");
|
|
|
+ JSONObject configOb = JSON.parseObject(fixedConfig); // 现在不会报错
|
|
|
JSONArray configObJSONArray = configOb.getJSONArray("list");
|
|
|
List<List<String>> dataList=new ArrayList<>();
|
|
|
List<String> titleList=new ArrayList<>();
|