Showing
3 changed files
with
4 additions
and
5 deletions
| ... | @@ -85,7 +85,7 @@ public class JsonToJava { | ... | @@ -85,7 +85,7 @@ public class JsonToJava { |
| 85 | */ | 85 | */ |
| 86 | public static boolean createJsonFile(String jsonString, String filePath, String fileName) { | 86 | public static boolean createJsonFile(String jsonString, String filePath, String fileName) { |
| 87 | boolean flag = true; | 87 | boolean flag = true; |
| 88 | - String fullPath = filePath + File.separator + fileName + ".json"; | 88 | + String fullPath = filePath + File.separator + fileName; |
| 89 | 89 | ||
| 90 | // 生成json格式文件 | 90 | // 生成json格式文件 |
| 91 | try { | 91 | try { | ... | ... |
| ... | @@ -12,10 +12,10 @@ public interface AttachmentExtMapper { | ... | @@ -12,10 +12,10 @@ public interface AttachmentExtMapper { |
| 12 | @Select("SELECT a.FILE_PATH, c.DEST_IATA_CODE, c.CONSIGNMENT_CODE, c.SHIPPER_CONTACT_NAME, c.SHIPPER_EMAIL, c.SHIPPER_PHONE, c.SHIPPER_ACCOUNT, c.ORIGIN_COUNTRY " + | 12 | @Select("SELECT a.FILE_PATH, c.DEST_IATA_CODE, c.CONSIGNMENT_CODE, c.SHIPPER_CONTACT_NAME, c.SHIPPER_EMAIL, c.SHIPPER_PHONE, c.SHIPPER_ACCOUNT, c.ORIGIN_COUNTRY " + |
| 13 | "FROM T_BIZ_ATTACHMENT a " + | 13 | "FROM T_BIZ_ATTACHMENT a " + |
| 14 | "JOIN T_BIZ_CONSIGNMENT c ON a.BIZ_ID = c.ID " + | 14 | "JOIN T_BIZ_CONSIGNMENT c ON a.BIZ_ID = c.ID " + |
| 15 | - "WHERE a.BIZ_ID = #{bizId}") | 15 | + "WHERE a.BIZ_ID = #{bizId,jdbcType=NUMERIC}") |
| 16 | List<PushZipEmailDto> findAttachmentDetailsByBizId(@Param("bizId") Long bizId); | 16 | List<PushZipEmailDto> findAttachmentDetailsByBizId(@Param("bizId") Long bizId); |
| 17 | 17 | ||
| 18 | - @Select("SELECT * FROM T_BIZ_ATTACHMENT WHERE UPLOAD_RECORD_ID = #{uploadRecordId} AND BIZ_ID = #{consignmentId} AND STATUS = 1") | 18 | + @Select("SELECT * FROM T_BIZ_ATTACHMENT WHERE UPLOAD_RECORD_ID = #{uploadRecordId,jdbcType=NUMERIC} AND BIZ_ID = #{consignmentId,jdbcType=NUMERIC} AND STATUS = 1") |
| 19 | List<Attachment> queryAttachmentInfo(@Param("uploadRecordId") Long uploadRecordId,@Param("consignmentId") Long consignmentId); | 19 | List<Attachment> queryAttachmentInfo(@Param("uploadRecordId") Long uploadRecordId,@Param("consignmentId") Long consignmentId); |
| 20 | 20 | ||
| 21 | /** | 21 | /** | ... | ... |
| ... | @@ -205,8 +205,7 @@ public class Imp001GenerateUtil { | ... | @@ -205,8 +205,7 @@ public class Imp001GenerateUtil { |
| 205 | */ | 205 | */ |
| 206 | private String generateWorkPath(String consignmentCode,Long consignmentId){ | 206 | private String generateWorkPath(String consignmentCode,Long consignmentId){ |
| 207 | String yyyyMMdd = DateUtil.format(new Date()); | 207 | String yyyyMMdd = DateUtil.format(new Date()); |
| 208 | - String fileDir = propertiesConfig.getImp001PathWork() + BaseSeparatorConstants.SEPARATOR_SLASH + | 208 | + String fileDir = propertiesConfig.getImp001PathWork() + yyyyMMdd + BaseSeparatorConstants.SEPARATOR_SLASH + |
| 209 | - yyyyMMdd + BaseSeparatorConstants.SEPARATOR_SLASH + | ||
| 210 | consignmentCode + BaseSeparatorConstants.SEPARATOR_UNDERLINE + consignmentId + BaseSeparatorConstants.SEPARATOR_SLASH; | 209 | consignmentCode + BaseSeparatorConstants.SEPARATOR_UNDERLINE + consignmentId + BaseSeparatorConstants.SEPARATOR_SLASH; |
| 211 | //如果目录不存在则创建完整目录 | 210 | //如果目录不存在则创建完整目录 |
| 212 | nioFileUtils.mkdirs(fileDir); | 211 | nioFileUtils.mkdirs(fileDir); | ... | ... |
-
Please register or login to post a comment