|
发表于 2020-9-10 16:36:49
|
显示全部楼层
@Test
public void txFundSave2() throws Exception {
ProjectInformation pi = new ProjectInformation();
BusProjectBaseGq busProjectBaseGq = new BusProjectBaseGq();
pi.setBusProjectBaseGq(busProjectBaseGq);
request.setParameter("zbid", "123");
MultipartFile file = FileUtils.getMulFileByPath("C://测试.txt");
MultipartFile[] files = {file, file};
SysAttachment sysAttachment = new SysAttachment();
sysAttachment.setDelFlag("0");
SysAttachment sysAttachment2 = new SysAttachment();
sysAttachment.setDelFlag("1");
ArrayList<SysAttachment> attList = new ArrayList<>();
attList.add(sysAttachment);
attList.add(sysAttachment2);
pi.setAttList(attList);
request.setParameter("txfund", "mobile");
controller.txFundSave(pi, model, request, busProjectBaseGq, redirectAttributes, files);
} |
|