丽知:1、钉钉回调修改。
This commit is contained in:
parent
bf527532d0
commit
a9a81244ac
|
@ -396,26 +396,26 @@ public class CallBackServiceImpl implements CallBackService {
|
|||
String bz = "";
|
||||
String fjJson="";
|
||||
for (GetProcessInstanceResponseBody.GetProcessInstanceResponseBodyResultFormComponentValues formComponentValue : formComponentValues) {
|
||||
if ("费用所属公司".equals(formComponentValue.getValue())) {
|
||||
corpName = formComponentValue.getName();
|
||||
if ("费用所属公司".equals(formComponentValue.getName())) {
|
||||
corpName = formComponentValue.getValue();
|
||||
}
|
||||
if ("费用所属部门".equals(formComponentValue.getValue())) {
|
||||
deptName = formComponentValue.getName();
|
||||
if ("费用所属部门".equals(formComponentValue.getName())) {
|
||||
deptName = formComponentValue.getValue();
|
||||
}
|
||||
if ("项目所属类目".equals(formComponentValue.getValue())) {
|
||||
xmName = formComponentValue.getName();
|
||||
if ("项目所属类目".equals(formComponentValue.getName())) {
|
||||
xmName = formComponentValue.getValue();
|
||||
}
|
||||
if ("费用所属项目".equals(formComponentValue.getValue())) {
|
||||
fyName = formComponentValue.getName();
|
||||
if ("费用所属项目".equals(formComponentValue.getName())) {
|
||||
fyName = formComponentValue.getValue();
|
||||
}
|
||||
if ("申请理由".equals(formComponentValue.getValue())) {
|
||||
ly = formComponentValue.getName();
|
||||
if ("申请理由".equals(formComponentValue.getName())) {
|
||||
ly = formComponentValue.getValue();
|
||||
}
|
||||
if ("申请金额(元)".equals(formComponentValue.getValue())) {
|
||||
je = formComponentValue.getName();
|
||||
if ("申请金额(元)".equals(formComponentValue.getName())) {
|
||||
je = formComponentValue.getValue();
|
||||
}
|
||||
if ("备注".equals(formComponentValue.getValue())) {
|
||||
bz = formComponentValue.getName();
|
||||
if ("备注".equals(formComponentValue.getName())) {
|
||||
bz = formComponentValue.getValue();
|
||||
}
|
||||
if("DDAttachment".equals(formComponentValue.getComponentType())){
|
||||
fjJson = formComponentValue.getValue();
|
||||
|
@ -439,6 +439,9 @@ public class CallBackServiceImpl implements CallBackService {
|
|||
}
|
||||
parentvo.setDwbm(bdCorpEntity.getUnitcode());
|
||||
|
||||
//djlxbm单据类型编码 采购付款单 D3
|
||||
parentvo.setDjlxbm("D3");
|
||||
|
||||
//wldx 往来对象标识(0 客户 1供应商 2部门 3业务员 )
|
||||
parentvo.setWldx("2");
|
||||
|
||||
|
@ -464,6 +467,7 @@ public class CallBackServiceImpl implements CallBackService {
|
|||
billvo.setParentvo(parentvo);
|
||||
billvo.setChildren(children);
|
||||
mapStr = JSONUtil.toJsonStr(billvo);
|
||||
mapStr="{\"billvo\":["+mapStr+"]}";
|
||||
//推送u8c
|
||||
ZTResult ztResult = pushU8CByApiCode.pushByCode(OverallConstant.getOverAllValue("otheroutqzCode"), mapStr);
|
||||
if ("false".equals(ztResult.getFlag())) {
|
||||
|
|
|
@ -29,9 +29,11 @@ public class DingU8cBillDaoImpl extends MybatisGenericDao<DingU8cBillEntity, Str
|
|||
String u8cCodeCorp = dingU8cBillEntityNew.getU8cCodeCorp();
|
||||
String u8cBillCode = dingU8cBillEntityNew.getU8cBillCode();
|
||||
String u8cBillId = dingU8cBillEntityNew.getU8cBillId();
|
||||
String dingTalkProcessId = dingU8cBillEntityNew.getDingTalkProcessId();
|
||||
dingU8cBill.setU8cCodeCorp(u8cCodeCorp);
|
||||
dingU8cBill.setU8cBillCode(u8cBillCode);
|
||||
dingU8cBill.setU8cBillId(u8cBillId);
|
||||
dingU8cBill.setDingTalkProcessId(dingTalkProcessId);
|
||||
dingU8cBill.setSts("Y");
|
||||
List<DingU8cBillEntity> query = this.query(dingU8cBill);
|
||||
if (query.size() == 0) {
|
||||
|
|
|
@ -87,10 +87,11 @@ public class QueryU8CEntityUtil {
|
|||
* 根据公司主键查询全部部门
|
||||
*/
|
||||
public List<BdDeptdocEntity> queryBdDeptDocByPkCorp(String pkCorp){
|
||||
BdDeptdocEntity bdDeptdocEntity = new BdDeptdocEntity();
|
||||
bdDeptdocEntity.setDr(0);
|
||||
bdDeptdocEntity.setPkCorp(pkCorp);
|
||||
List<BdDeptdocEntity> query = bdDeptdocDao.query(bdDeptdocEntity);
|
||||
BdDeptdocEntity entity = new BdDeptdocEntity();
|
||||
entity.setDr(0);
|
||||
entity.setPkCorp(pkCorp);
|
||||
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||
List<BdDeptdocEntity> query = bdDeptdocDao.query(entity);
|
||||
return query;
|
||||
}
|
||||
|
||||
|
@ -98,29 +99,28 @@ public class QueryU8CEntityUtil {
|
|||
* 根据公司主键、部门编码查询部门
|
||||
*/
|
||||
public BdDeptdocEntity queryBdDeptDocByPkCorpAndDeptCode(String pkCorp,String deptCode){
|
||||
BdDeptdocEntity bdDeptdocEntity = new BdDeptdocEntity();
|
||||
bdDeptdocEntity.setDr(0);
|
||||
bdDeptdocEntity.setPkCorp(pkCorp);
|
||||
bdDeptdocEntity.setDeptcode(deptCode);
|
||||
List<BdDeptdocEntity> query = bdDeptdocDao.query(bdDeptdocEntity);
|
||||
BdDeptdocEntity entity = new BdDeptdocEntity();
|
||||
entity.setDr(0);
|
||||
entity.setPkCorp(pkCorp);
|
||||
entity.setDeptcode(deptCode);
|
||||
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||
List<BdDeptdocEntity> query = bdDeptdocDao.query(entity);
|
||||
if (query.size() >= 1) {
|
||||
return query.get(0);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据公司主键、部门名称查询部门
|
||||
*/
|
||||
public BdDeptdocEntity queryBdDeptDocByPkCorpAndDeptName(String pkCorp,String deptName) {
|
||||
BdDeptdocEntity bdDeptdocEntity = new BdDeptdocEntity();
|
||||
bdDeptdocEntity.setDr(0);
|
||||
bdDeptdocEntity.setPkCorp(pkCorp);
|
||||
bdDeptdocEntity.setDeptname(deptName);
|
||||
List<BdDeptdocEntity> query = bdDeptdocDao.query(bdDeptdocEntity);
|
||||
BdDeptdocEntity entity = new BdDeptdocEntity();
|
||||
entity.setDr(0);
|
||||
entity.setPkCorp(pkCorp);
|
||||
entity.setDeptname(deptName);
|
||||
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||
List<BdDeptdocEntity> query = bdDeptdocDao.query(entity);
|
||||
if (query.size() >= 1) {
|
||||
return query.get(0);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue