Commit b371a2da authored by neo's avatar neo

[DEV] fixed create project and del some not used java

parent c8b6338d
...@@ -285,10 +285,10 @@ public class ProjectServiceImpl implements ProjectService { ...@@ -285,10 +285,10 @@ public class ProjectServiceImpl implements ProjectService {
String maxDbName = projectMapper.maxDbName(project.getYear()); String maxDbName = projectMapper.maxDbName(project.getYear());
String dbName = ""; String dbName = "";
if (!Utils.isEmpty(maxDbName)) { if (Utils.isEmpty(maxDbName)) {
dbName = String.format("%s%s%s", "a", (project.getYear() + "").substring(2), "00000"); dbName = String.format("%s%s%s", "a", (project.getYear() + "").substring(2), "00000");
} else { } else {
dbName = generateProjectDbName(dbName, project.getYear() + ""); dbName = generateProjectDbName(maxDbName, project.getYear() + "");
} }
DbName sbDbName = new DbName(dbName); DbName sbDbName = new DbName(dbName);
......
package pwc.taxtech.atms;
import org.apache.ibatis.io.Resources;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.IOException;
public class ControllerApiTranslator {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(Resources.getResourceAsReader("api_temp.properties"));
String line="";
while ((line=reader.readLine())!=null){
System.out.println(line);
}
}
}
[HttpGet, Route("GetCustomsInvoicesByPeriodId/{periodId}")]
public IHttpActionResult GetCustomsInvoicesByPeriodId(int periodId)
{
return Ok(_customsInvoiceService.GetCustomsInvoicesByPeriodId(periodId));
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment