|
@@ -1057,6 +1057,7 @@ func GetProductPlan(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
|
|
|
billStates := map[string]string{}
|
|
|
billSerialNumber := map[string]string{}
|
|
|
+ billSendTo := map[string]string{}
|
|
|
billIsSend := map[string]bool{}
|
|
|
billReviewed := map[string]int32{}
|
|
|
billIsAck := map[string]bool{}
|
|
@@ -1083,10 +1084,11 @@ func GetProductPlan(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
ok, state := repo.RepoSeachDocMap(apictx.CreateRepoCtx(), &repo.DocSearchOptions{
|
|
|
CollectName: collectName,
|
|
|
Query: repo.Map{"_id": stage.BillId},
|
|
|
- Project: []string{"status", "isSend", "reviewed", "isAck", "serialNumber", "remark"}})
|
|
|
+ Project: []string{"status", "isSend", "reviewed", "isAck", "serialNumber", "sendTo", "remark"}})
|
|
|
if ok {
|
|
|
billStates[stage.BillId] = state["status"].(string)
|
|
|
billSerialNumber[stage.BillId] = state["serialNumber"].(string)
|
|
|
+ billSendTo[stage.BillId] = state["sendTo"].(string)
|
|
|
if v, ok := state["isSend"]; ok {
|
|
|
billIsSend[stage.BillId] = v.(bool)
|
|
|
|
|
@@ -1120,6 +1122,7 @@ func GetProductPlan(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
"billReviewed": billReviewed,
|
|
|
"billIsAck": billIsAck,
|
|
|
"billSerialNumber": billSerialNumber,
|
|
|
+ "billSendTo": billSendTo,
|
|
|
}, nil
|
|
|
}
|
|
|
|