优化代码

This commit is contained in:
不做码农 2021-11-22 17:30:18 +08:00
parent 7b06d3a844
commit fa86af4fbf
2 changed files with 6 additions and 1 deletions

View File

@ -88,6 +88,10 @@ namespace ZR.CodeGenerator
{ {
return InputDtoContent; return InputDtoContent;
} }
else if (dbFieldInfo.HtmlType == GenConstants.HTML_DATETIME)
{
return InputDtoContent;
}
else if (dbFieldInfo.IsInsert || dbFieldInfo.IsEdit || dbFieldInfo.IsPk || dbFieldInfo.IsIncrement) else if (dbFieldInfo.IsInsert || dbFieldInfo.IsEdit || dbFieldInfo.IsPk || dbFieldInfo.IsIncrement)
{ {
InputDtoContent += $" public {dbFieldInfo.CsharpType}{GetModelRequired(dbFieldInfo)} {dbFieldInfo.CsharpField} {{ get; set; }}\r\n"; InputDtoContent += $" public {dbFieldInfo.CsharpType}{GetModelRequired(dbFieldInfo)} {dbFieldInfo.CsharpField} {{ get; set; }}\r\n";

View File

@ -62,6 +62,7 @@
<li>Quartz.Net</li> <li>Quartz.Net</li>
<li>MySql</li> <li>MySql</li>
<li>Mapster</li> <li>Mapster</li>
<li>Epplus</li>
<li>...</li> <li>...</li>
</ul> </ul>
</el-col> </el-col>
@ -98,7 +99,7 @@
</div> </div>
<div class="body"> <div class="body">
<span class="tip">如果觉得有用你可以请作者喝杯咖啡表示鼓励</span> <span class="tip">如果觉得有用你可以请作者喝杯咖啡表示鼓励</span>
<img src="http://ss.izhaorui.cn/pay.jpg" alt="donate" width="80%" /> <img src="@/assets/image/reward.jpg" alt="donate" width="80%" />
</div> </div>
</el-card> </el-card>
</el-col> </el-col>