|
@@ -34,8 +34,8 @@ type LvName string
|
|
|
const (
|
|
|
CheckSuccess LvName = "申报成功"
|
|
|
CheckFail LvName = "检查失败"
|
|
|
- CheckOmit LvName = "有遗漏"
|
|
|
- CheckAbnormal LvName = "有异常"
|
|
|
+ CheckOmit LvName = "有遗漏"
|
|
|
+ CheckAbnormal LvName = "有异常"
|
|
|
)
|
|
|
|
|
|
func GeneratePath(suffix string) string {
|
|
@@ -457,3 +457,21 @@ func CheckError(ctx context.Context, task *models.TaxTask, err error) {
|
|
|
task.Result.BusinessLog = errStr
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+func TimeFormatM(str string, Type int) string {
|
|
|
+ if str == "" {
|
|
|
+ return ""
|
|
|
+ }
|
|
|
+
|
|
|
+ if Type == 1 {
|
|
|
+ data, _ := time.Parse("2006年1月2日", str)
|
|
|
+ return data.Format("2006-01-02")
|
|
|
+ }
|
|
|
+ return str
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+func DelSpace(str string) string {
|
|
|
+ return strings.Replace(str, " ", "", -1)
|
|
|
+}
|