|
版本:3.7.7
预期:通过自动生成的代码,实现需求里面的某个字段【图片】的维护;
开发过程:自动生成代码【图片bug-1/bug-2】生成代码见图【bug-3】因为新的生成图片方式比这种还无法实现,所以才有支持旧版本的稳妥一些
bug现象:
1、online开发里面的地址cgAutoListController.do?list&id=whhc_item_jpg 这里是可以进行图片的维护,并且跟踪到cgAutoListController.do的代码159行发现
String html = viewEngine.parseTemplate(TemplateUtil.getTempletPath(entity,0, TemplateUtil.TemplateType.LIST), paras);
这里的代码有下面的datagrid查询获取数据
http://127.0.0.1:8080/iwms/cgAut ... em_jpg&field=id,create_name,create_by,create_date,update_name,update_by,update_date,sys_org_code,sys_company_code,bpm_status,item_number,item_jpg
对于数据为【{"total":3,"rows":[{"item_jpg":null,"id":"402880c864c5ce7d0164c5ce7d930000","item_number":"test","bpm_status":"待提交","sys_org_code":"A01","create_date":"2018-07-23 14:23:21","create_by":"admin","create_name":"管理员","sys_company_code":"A01","update_name":"管理员","update_date":"2018-07-23 16:59:08","update_by":"admin"},{"item_jpg":"upload/files/20180724110951jVM1aaRO.jpg","id":"402880c864c5ed310164c5edaac10001","item_number":"erer","bpm_status":"待提交","sys_org_code":"A01","create_date":"2018-07-23 14:57:25","create_by":"admin","create_name":"管理员","sys_company_code":"A01","update_name":null,"update_date":null,"update_by":null},{"item_jpg":"upload/files/20180724110706Ls9S4kM8.jpg","id":"402880c864c5ef1d0164c5ef1df50000","item_number":"434","bpm_status":"待提交","sys_org_code":"A01","create_date":"2018-07-23 14:58:59","create_by":"admin","create_name":"管理员","sys_company_code":"A01","update_name":"管理员","update_date":"2018-07-24 11:07:06","update_by":"admin"}]}】
图片路径【"item_jpg":"upload/files/20180724110951jVM1aaRO.jpg",】
2、自动生成的代码标准datagrid里面无法获取item_jpg,实际的地址是【[B@23f81b71】
实际上2种方式都上传成功,只是第二张代码生成代码部署的方式,datagrid查询的list数据有问题
详见【bug-4/bug-5】
|
|