...
|
...
|
@@ -1278,7 +1278,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
cooperationContractByte := *(*[]byte)(unsafe.Pointer(&cooperationContract.DividendsIncentivesRules))
|
|
|
cooperationContractHashValue := md5.Sum(cooperationContractByte)
|
|
|
cooperationContractHashString := hex.EncodeToString(cooperationContractHashValue[:])
|
|
|
//if !cooperationContract.DividendsIncentivesRuleSliceEqualBCE(cooperationContractFound.DividendsIncentivesRules, cooperationContract.DividendsIncentivesRules) {
|
|
|
|
|
|
if cooperationContractFoundHashString != cooperationContractHashString {
|
|
|
// 业绩分红-->业绩分红
|
|
|
|
...
|
...
|
@@ -1309,7 +1309,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
// 拼接规则变更
|
|
|
incentivesRuleChangeDetail = dividendsIncentivesRuleOriginalTmp + " 变更为 " + dividendsIncentivesRuleChangedTmp
|
|
|
}
|
|
|
} else if cooperationContractFound.IncentivesType == domain.MONEY_INCENTIVES { // 金额激励规则内容变更
|
|
|
} else if cooperationContractFound.IncentivesType == domain.TYPE_MONEY_INCENTIVES { // 金额激励规则内容变更
|
|
|
// 计算原合约哈希值
|
|
|
cooperationContractFoundByte := *(*[]byte)(unsafe.Pointer(&cooperationContractFound.MoneyIncentivesRules))
|
|
|
cooperationContractFoundHashValue := md5.Sum(cooperationContractFoundByte)
|
...
|
...
|
@@ -1320,7 +1320,6 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
cooperationContractHashValue := md5.Sum(cooperationContractByte)
|
|
|
cooperationContractHashString := hex.EncodeToString(cooperationContractHashValue[:])
|
|
|
|
|
|
//if !cooperationContract.MoneyIncentivesRuleSliceEqualBCE(cooperationContractFound.MoneyIncentivesRules, cooperationContract.MoneyIncentivesRules) {
|
|
|
if cooperationContractFoundHashString != cooperationContractHashString {
|
|
|
incentivesRuleChange = cooperationContract.ReturnIncentivesName(domain.IncentivesType(cooperationContractFound.IncentivesType)) + "-->" + cooperationContract.ReturnIncentivesName(domain.IncentivesType(cooperationContract.IncentivesType))
|
|
|
//【第一阶段:20,2021-01-01~2021-12-31,,,;第二阶段:20,2021-01-01~2021-12-31,30,10】变更为【第一阶段:20,2021-01-01~2021-12-31,,,;】
|
...
|
...
|
@@ -1361,8 +1360,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
cooperationContractHashValue := md5.Sum(cooperationContractByte)
|
|
|
cooperationContractHashString := hex.EncodeToString(cooperationContractHashValue[:])
|
|
|
|
|
|
//if !cooperationContract.UndertakerSliceEqualBCE(cooperationContractFound.Undertakers, cooperationContract.Undertakers) { // 【1(张三,李四,王五)2(买买买,,)】变更为【1(张三,,)】
|
|
|
if cooperationContractFoundHashString != cooperationContractHashString {
|
|
|
if cooperationContractFoundHashString != cooperationContractHashString { // 【1(张三,李四,王五)2(买买买,,)】变更为【1(张三,,)】
|
|
|
// 原承接人
|
|
|
var undertakersOriginal string
|
|
|
for i, undertaker := range cooperationContractFound.Undertakers {
|
...
|
...
|
|