040fbf90 by 夏齐

首次提交

1 parent 4e277aa8
......@@ -140,7 +140,7 @@ public class EciHttpUtil {
* @param documentId 合同文档ID
* @return
*/
public String download(String documentId,String bh) {
public String download(String documentId,String bh,String htlx,String areacode) {
String url = hostUrl + "/document/download" + "?documentId=" + documentId;
InputStream in = null;
String absolutePath = "";
......@@ -170,7 +170,7 @@ public class EciHttpUtil {
in =conn.getInputStream();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy");
String dateDir = simpleDateFormat.format(new Date());
File savePath = new File("D:\\ECI\\" + dateDir+bh);
File savePath = new File("E:\\ECI\\"+areacode+"\\"+ htlx+dateDir+bh);
if (!savePath.exists()) {
savePath.mkdirs();
}
......
......@@ -12,7 +12,7 @@ public class QysTask {
@Autowired
private EciService eciService;
@Scheduled(cron="0 0/5 * * * ?")
@Scheduled(cron="0 0/1 * * * ?")
public void accessCreateContract() {
System.out.println("===========创建合同定时任务进来了=========");
eciService.accessCreateContract();
......
......@@ -16,14 +16,14 @@ public class ZhjTask {
private ZhjDatasSynService zhjDatasSynService;
//@Scheduled(cron="0 0 21 * * ? ")
@Scheduled(cron="0 0 21 * * ? ")
public void execute() {
System.out.println("===========每天晚上九点定时任务进来了=========");
zhjDatasSynService.send_bdcYwInfo();
System.out.println("===========每天晚上九点定时任务走了=========");
}
//@Scheduled(cron="0 0 21 ? * 2")
@Scheduled(cron="0 0 20 15 * ? ")
public void executeQyInfo() {
System.out.println("===========每天晚上九点定时任务进来了=========");
zhjDatasSynService.synQyInfo();
......
......@@ -59,6 +59,8 @@ public interface RegBusBdcqzsdjxxMapper extends BaseMapper<RegBusBdcqzsdjxxDo> {
public void updateBdcqzsjbxxInfo(String id);
public void updateBdcqzsjbxxInfoByYwh(String ywh);
public Map getQlrInfoByYwh(String ywh);
public String getQlrInfoByYwhAndqlr(@Param("ywh") String ywh, @Param("qlrmc") String qlrmc);
......
......@@ -20,6 +20,7 @@ spring:
primary: master
datasource:
master:
#url: jdbc:oracle:thin:@172.16.56.4:1521:ODM
url: jdbc:oracle:thin:@172.16.56.21:1521:orcl
driver-class-name: oracle.jdbc.driver.OracleDriver
username: regs
......@@ -54,11 +55,12 @@ mybatis-plus:
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
app:
hostUrl: http://172.16.56.41:9182
bdcdjzmlc: 2890537670326468622
bdcqzslc: 2890537800123400234
AppToken: OAduCx5qJD
AppSecret: DifsZNwDnamuRh9jS0gSOTJFvmmKtT
hostUrl: http://172.16.56.60:9182
bdcdjzmlc: 2905681381004489569
bdcqzslc: 2905684509636506505
AppToken: lv2M681jcM
AppSecret: mZWAKA2p7vvnTZMNuUKRHaCL3LTgHA
areacode: 610702
management:
......
......@@ -4,6 +4,9 @@
<update id="updateBdcqzsjbxxInfo">
update reg_bus_bdcqzsdjxx set ISCJDZZZ='1' where ID=#{id}
</update>
<update id="updateBdcqzsjbxxInfoByYwh">
update reg_bus_bdcqzsdjxx set ISCJDZZZ='1' where ywh=#{ywh}
</update>
<select id="getZsdjInfoList" resultType="com.pashanhoo.zhj.entity.RegBusBdcqzsdjxxDo" parameterType="com.pashanhoo.zhj.entity.SynZhjInfoDo">
select * from reg_bus_bdcqzsdjxx where
......@@ -94,6 +97,7 @@
from dual
</select>
<select id="getBdcqzsjbxxInfo" resultType="java.util.Map">
select * from (
select c.id,
c.ywh,
c.bdcdyh,
......@@ -116,12 +120,12 @@
to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'YYYY') as y,
to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'MM') as m,
to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'dd') as d,
c.bdcqzbh as bh
c.bdcqzbh as bh,row_number() over (partition by ywh,bdcqzbh order by ywh desc) rn
from reg_bus_bdcqzsdjxx c
where c.del_flag = '0'
and c.isxydzzz = '1'
and c.iscjdzzz = '0'
and dbsj is not null
and dbsj is not null ) where rn=1
</select>
<select id="getBdcqzsjbxxInfoByYwh" resultType="java.util.Map">
......@@ -152,8 +156,8 @@
where c.del_flag = '0'
and c.isxydzzz = '1'
and c.iscjdzzz = '0'
and c.ywh=#{ywh}
and dbsj is not null
and c.ywh =#{ywh}
and c.dbsj is not null
</select>
<select id="getQlrInfoByYwh" resultType="java.util.Map">
select wm_concat(qlrmc) as qlrmc,wm_concat(zjh) as zjh from reg_bus_qlr c where ywh =#{ywh} and del_flag='0' and qszt='1' order by sxh
......