|
|
@@ -233,6 +233,48 @@ public class STKServiceImpl implements STKService {
|
|
|
",'"+custvendDTOS.get(i).getReg_url()+"','"+custvendDTOS.get(i).getReg_address()+"'" +
|
|
|
",case when '"+custvendDTOS.get(i).getCreat_time()+"' = 'null' then null else to_date(to_char(to_timestamp('"+custvendDTOS.get(i).getCreat_time()+"','yyyy-mm-dd hh24:mi:ssxff'),'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss') end" +
|
|
|
",case when '"+custvendDTOS.get(i).getUpdate_time()+"' = 'null' then null else to_date(to_char(to_timestamp('"+custvendDTOS.get(i).getUpdate_time()+"','yyyy-mm-dd hh24:mi:ssxff'),'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss') end,'"+custvendDTOS.get(i).getSerial()+"')");
|
|
|
+ sqls.add("update STK_CUSTVEND2 set UID_TYPENAME = case when UID_TYPE = '01' then '统一社会信用代码' when UID_TYPE = '02' then '邓氏编码' " +
|
|
|
+ "when UID_TYPE = '03' then '身份证号码(大陆)' when UID_TYPE = '04' then '护照号码(包括港澳身份证号码)' when UID_TYPE = '06' then '身份证护照组合' " +
|
|
|
+ "when UID_TYPE = '99' then '其他编码' end where id = " + custvendDTOS.get(i).getId());
|
|
|
+ sqls.add("update STK_CUSTVEND2 set CUSTOMER_TYPENAME = case when CUSTOMER_TYPE = 'C0201' then '单位客户' when CUSTOMER_TYPE = 'C0202' then '个人客户' " +
|
|
|
+ "when CUSTOMER_TYPE = 'S0201' then '单位供应商' when CUSTOMER_TYPE = 'S0202' then '个人供应商' end where id = " + custvendDTOS.get(i).getId());
|
|
|
+ sqls.add("update STK_CUSTVEND2 set IS_VALIDNAME = case when IS_VALID = '1' then '有效' else '无效' end, " +
|
|
|
+ "ISTEMPORARYNAME = case when ISTEMPORARY = '1' then '是' else '否' end where id = " + custvendDTOS.get(i).getId());
|
|
|
+ }
|
|
|
+ baseDao.execute(sqls);
|
|
|
+ }
|
|
|
+
|
|
|
+ //客商信息(当天)
|
|
|
+ @Override
|
|
|
+ public void getCustvendDay(TravellingMerchantVo travellingMerchantVo , Boolean isdelete) {
|
|
|
+ if(null == travellingMerchantVo.getData() || CollectionUtils.isEmpty(travellingMerchantVo.getData().getList())){
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+ List<CustvendDTO> custvendDTOS = travellingMerchantVo.getData().getList();
|
|
|
+ List<String> sqls = new ArrayList<>();
|
|
|
+ for (int i = 0; i < custvendDTOS.size(); i++) {
|
|
|
+ sqls.add("delete from STK_CUSTVEND2 where id = " + custvendDTOS.get(i).getId());
|
|
|
+ sqls.add("insert into STK_CUSTVEND2(ID,S_ID,S_CODE,NAME,UID_TYPE,UID2,CUSTOMER_TYPE,IS_VALID,CREATED_ORG,CREATED_SYSTEM,ISTEMPORARY,MDM_CODE,REG_COUNTRY, " +
|
|
|
+ "REG_PLACE,REG_REP,REG_CAPTIAL,REG_PERIOD,REG_BIZSCOPE," +
|
|
|
+ "REG_FOUNDEDDATE," +
|
|
|
+ "REG_URL,REG_ADDRESS," +
|
|
|
+ "CREAT_TIME," +
|
|
|
+ "UPDATE_TIME,SERIAL) " +
|
|
|
+ "values ("+custvendDTOS.get(i).getId()+","+custvendDTOS.get(i).getS_id()+",'"+custvendDTOS.get(i).getS_code()+"','"+custvendDTOS.get(i).getName()+"'" +
|
|
|
+ ",'"+custvendDTOS.get(i).getUid_type()+"','"+custvendDTOS.get(i).getUid()+"','"+custvendDTOS.get(i).getCustomer_type()+"','"+custvendDTOS.get(i).getIs_valid()+"'" +
|
|
|
+ ",'"+custvendDTOS.get(i).getCreated_org()+"','"+custvendDTOS.get(i).getCreated_system()+"','"+custvendDTOS.get(i).getIstemporary()+"','"+custvendDTOS.get(i).getMdm_code()+"','"+custvendDTOS.get(i).getReg_country()+"'" +
|
|
|
+ ",'"+custvendDTOS.get(i).getReg_place()+"','"+custvendDTOS.get(i).getReg_rep()+"','"+custvendDTOS.get(i).getReg_captial()+"','"+custvendDTOS.get(i).getReg_period()+"','"+custvendDTOS.get(i).getReg_bizscope()+"'" +
|
|
|
+ ",case when '"+custvendDTOS.get(i).getReg_foundeddate()+"' = 'null' then null else to_date(to_char(to_timestamp('"+custvendDTOS.get(i).getReg_foundeddate()+"','yyyy-mm-dd hh24:mi:ssxff'),'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss') end" +
|
|
|
+ ",'"+custvendDTOS.get(i).getReg_url()+"','"+custvendDTOS.get(i).getReg_address()+"'" +
|
|
|
+ ",case when '"+custvendDTOS.get(i).getCreat_time()+"' = 'null' then null else to_date(to_char(to_timestamp('"+custvendDTOS.get(i).getCreat_time()+"','yyyy-mm-dd hh24:mi:ssxff'),'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss') end" +
|
|
|
+ ",case when '"+custvendDTOS.get(i).getUpdate_time()+"' = 'null' then null else to_date(to_char(to_timestamp('"+custvendDTOS.get(i).getUpdate_time()+"','yyyy-mm-dd hh24:mi:ssxff'),'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss') end,'"+custvendDTOS.get(i).getSerial()+"')");
|
|
|
+ sqls.add("update STK_CUSTVEND2 set UID_TYPENAME = case when UID_TYPE = '01' then '统一社会信用代码' when UID_TYPE = '02' then '邓氏编码' " +
|
|
|
+ "when UID_TYPE = '03' then '身份证号码(大陆)' when UID_TYPE = '04' then '护照号码(包括港澳身份证号码)' when UID_TYPE = '06' then '身份证护照组合' " +
|
|
|
+ "when UID_TYPE = '99' then '其他编码' end where id = " + custvendDTOS.get(i).getId());
|
|
|
+ sqls.add("update STK_CUSTVEND2 set CUSTOMER_TYPENAME = case when CUSTOMER_TYPE = 'C0201' then '单位客户' when CUSTOMER_TYPE = 'C0202' then '个人客户' " +
|
|
|
+ "when CUSTOMER_TYPE = 'S0201' then '单位供应商' when CUSTOMER_TYPE = 'S0202' then '个人供应商' end where id = " + custvendDTOS.get(i).getId());
|
|
|
+ sqls.add("update STK_CUSTVEND2 set IS_VALIDNAME = case when IS_VALID = '1' then '有效' else '无效' end, " +
|
|
|
+ "ISTEMPORARYNAME = case when ISTEMPORARY = '1' then '是' else '否' end where id = " + custvendDTOS.get(i).getId());
|
|
|
}
|
|
|
baseDao.execute(sqls);
|
|
|
}
|
|
|
@@ -245,7 +287,7 @@ public class STKServiceImpl implements STKService {
|
|
|
if(null == cashFlowItemsVo.getData()){
|
|
|
return ;
|
|
|
}
|
|
|
- List<CashFlowItemsDataVo> cashFlowItemsDataVo = cashFlowItemsVo.getData();
|
|
|
+ List<CashFlowItemsDataVo> cashFlowItemsDataVo = cashFlowItemsVo.getData().getList();
|
|
|
List<String> sqls = new ArrayList<>();
|
|
|
if (isdelete) {
|
|
|
sqls.add("delete from STK_CASHFLOWDJ");
|
|
|
@@ -278,7 +320,7 @@ public class STKServiceImpl implements STKService {
|
|
|
if(null == accountantProjectVo.getData()){
|
|
|
return ;
|
|
|
}
|
|
|
- List<AccountantProjectDataVo> accountantProjectDataVo = accountantProjectVo.getData();
|
|
|
+ List<AccountantProjectDataVo> accountantProjectDataVo = accountantProjectVo.getData().getList();
|
|
|
List<String> sqls = new ArrayList<>();
|
|
|
if (isdelete) {
|
|
|
sqls.add("delete from STK_CATEGORYDJ");
|