tao.mo

task-schedule | 修改 | 文件路径调整

mt
2024年12月19日14:38:14
......@@ -85,7 +85,7 @@ public class JsonToJava {
*/
public static boolean createJsonFile(String jsonString, String filePath, String fileName) {
boolean flag = true;
String fullPath = filePath + File.separator + fileName + ".json";
String fullPath = filePath + File.separator + fileName;
// 生成json格式文件
try {
......
......@@ -12,10 +12,10 @@ public interface AttachmentExtMapper {
@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 " +
"FROM T_BIZ_ATTACHMENT a " +
"JOIN T_BIZ_CONSIGNMENT c ON a.BIZ_ID = c.ID " +
"WHERE a.BIZ_ID = #{bizId}")
"WHERE a.BIZ_ID = #{bizId,jdbcType=NUMERIC}")
List<PushZipEmailDto> findAttachmentDetailsByBizId(@Param("bizId") Long bizId);
@Select("SELECT * FROM T_BIZ_ATTACHMENT WHERE UPLOAD_RECORD_ID = #{uploadRecordId} AND BIZ_ID = #{consignmentId} AND STATUS = 1")
@Select("SELECT * FROM T_BIZ_ATTACHMENT WHERE UPLOAD_RECORD_ID = #{uploadRecordId,jdbcType=NUMERIC} AND BIZ_ID = #{consignmentId,jdbcType=NUMERIC} AND STATUS = 1")
List<Attachment> queryAttachmentInfo(@Param("uploadRecordId") Long uploadRecordId,@Param("consignmentId") Long consignmentId);
/**
......
......@@ -205,8 +205,7 @@ public class Imp001GenerateUtil {
*/
private String generateWorkPath(String consignmentCode,Long consignmentId){
String yyyyMMdd = DateUtil.format(new Date());
String fileDir = propertiesConfig.getImp001PathWork() + BaseSeparatorConstants.SEPARATOR_SLASH +
yyyyMMdd + BaseSeparatorConstants.SEPARATOR_SLASH +
String fileDir = propertiesConfig.getImp001PathWork() + yyyyMMdd + BaseSeparatorConstants.SEPARATOR_SLASH +
consignmentCode + BaseSeparatorConstants.SEPARATOR_UNDERLINE + consignmentId + BaseSeparatorConstants.SEPARATOR_SLASH;
//如果目录不存在则创建完整目录
nioFileUtils.mkdirs(fileDir);
......